frontwork
v1.1.4
Published
Tools for Front End Web Developers Work.
Downloads
10
Readme
Frontwork
Tools for Front End Web Developers Work.
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!!');
});