Last active
February 27, 2018 22:49
-
-
Save jbristowe/8dac09525678bca6971678f6c1065a8d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"version": "npm run release", | |
"preversion": "npm test", | |
"postversion": "git push && git push --tags", | |
"clean": "npm-run-all -p clean:*", | |
"clean:build": "rimraf build", | |
"clean:dist": "rimraf dist", | |
"clean:release": "rimraf release", | |
"build": "webpack --display-error-details", | |
"build:release": "cross-env NODE_ENV=production npm run build", | |
"build:package": "cross-env NODE_ENV=package npm run build", | |
"build:ts": "tsc", | |
"build:aot": "ngc", | |
"build:sass": "node-sass -r build/ -o build/", | |
"build:css": "postcss --use autoprefixer dist/*.css -d dist/", | |
"copy:build": "cpx -v \"src/**/*\" \"build\"", | |
"copy:styles": "cpx -v \"build/**/*.css\" \"release\"", | |
"watch": "webpack --display-error-details --watch", | |
"start": "webpack-dev-server", | |
"start:hmr": "webpack-dev-server --env.HMR", | |
"release": "npm-run-all build:release", | |
"package": "npm-run-all -s clean copy:build build:sass package:replace-scss package:aot build:package package:minify copy:styles clean:build", | |
"package:ts": "tsc --outDir release", | |
"package:aot": "ngc -p tsconfig-aot.json", | |
"package:replace-scss": "node ./config/replace-scss.js", | |
"package:css": "node-sass -o release/ src/themes && node-sass -o release/components src/components", | |
"package:minify": "uglifyjs release/index.js --source-map --compress --mangle --screw-ie8 --output release/index.min.js", | |
"deploy": "node ./config/deploy.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment