1.1.4 • Published 6 years ago

frontwork v1.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Frontwork

Tools for Front End Web Developers Work.

NPM Build Status MIT License

Specification

  • Compile EJS & Lint HTML

  • Compile & Lint SCSS

  • Transpile & Bundle & Lint JavaScript (Webpack)

  • Compress Images

  • Generate Iconfont

  • Generate Styleguide

  • Live Reload (Browsersync)

  • Prepared SCSS and JavaScript - Frontwork CSS

Installation

NPM

$ npm install --save frontwork

Usage

CLI

Options:
  --init         whether to initialize. [boolean] [default: false]
  --watch        whether to watch the files. [boolean] [default: false]
  --production   whether to product. [boolean] [default: false]
  --version, -v  show this version. [boolean]
  --help, -h     show this help. [boolean]

Initialize

Install the source files.

$ npx frontwork --init

Watch

Watch the source files and processes the task if there are changes.

$ npx frontwork --watch

Production

Delete unnecessary files and Compress all files.

$ npx frontwork --production

JavaScript

frontwork({
  init: true,
  watch: false,
  production: false
}).then(() => {
  console.log('Complete!!');
});

Changelog

License