Genie is a small packages.json that replace gulp/gruntfiles.
See, all you gotta do is rub that lamp, and I'll say: "Mr. Aladdin, sir, what will your pleasure be?"
To run one of the scripts, simply use the following syntax npm run <scriptname>
Compile es6 javacsript into es5 compatible javascript.
- input:
src
directory - output:
dist/es5
directory
Verify the linting of the javascript files (using jshint and jscs).
- input: All the available javascript files.
- exclude:
.node_modules
and.bower_components
Uglify and minify the javascript files
- input: Every
.js
files inside thedist/es5
directory - output:
dist/app.min.js
Compile the scss files into css.
- input:
src/styles/style.scss
. - output:
dist/style.css
directory
Parse css and add prefixes.
- input:
dist/style.css
- output:
dist/style.css
synchronise your browser on file changes
- files:
dst/style.css
,src/**/*.js
and**/*.html
- address:
localhost:3000
Run the scss
and autoprefixer
scripts.
Run the linting
, babel
and uglify
scripts.
Run build:css
and build:js
.
Run build:css
when a scss file is modified.
run serve
and watch:css
in parallele.
This script is published under the MIT license