Last active
May 24, 2016 09:46
-
-
Save iksi/2573af58d909df928060 to your computer and use it in GitHub Desktop.
npm boilerplate package for web projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "<project>", | |
"private": true, | |
"scripts": { | |
"css": "postcss --use postcss-import --use postcss-modular-scale-plus --use postcss-custom-properties --use postcss-custom-media --use css-mqpacker --css-mqpacker.sort --use postcss-calc --use autoprefixer --autoprefixer.browsers 'last 2 versions' --use cssnano --cssnano.safe", | |
"build:css": "npm run css -- --output assets/css/full.min.css assets/css/src/index.css", | |
"watch:css": "npm run css -- --watch --output assets/css/full.min.css assets/css/src/index.css", | |
"js": "uglifyjs --no-mangle --quotes=1", | |
"build:js": "npm run js -- --compress drop_console=true --output assets/js/full.min.js assets/js/src/lib/*.js assets/js/src/*.js", | |
"watch:js": "watch 'npm run js -- --compress --output assets/js/full.min.js assets/js/src/lib/*.js assets/js/src/*.js' assets/js/src", | |
"svg": "svgo --enable=removeTitle --enable=removeDimensions --enable=sortAttrs", | |
"watch:svg": "watch 'npm run svg -- --folder assets/images/src --output assets/images' assets/images/src", | |
"build:svg": "npm run svg -- --folder assets/images/src --output assets/images" | |
}, | |
"devDependencies": { | |
"css-mqpacker": "*", | |
"cssnano": "*", | |
"postcss": "*", | |
"postcss-cli": "*", | |
"postcss-custom-media": "*", | |
"postcss-custom-properties": "*", | |
"postcss-import": "*", | |
"postcss-modular-scale-plus": "*", | |
"svgo": "*", | |
"uglifyjs": "*", | |
"watch": "*" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment