Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "scripts": {
- "reset": "npm run clean && npm run create",
- "clean": "cross-conf-env rimraf ./dist",
- "create": "cross-conf-env mkdirp ${npm_package_config_dist}assets/css/fonts/ ${npm_package_config_dist}assets/js/ ${npm_package_config_dist}assets/images/",
- "watch:js": "npm run build:js -- -w",
- "watch:styles": "concurrently -kr 'npm run build:styles -- -w' 'npm run lint:styles -- -w' 'npm run copyfiles -- -w'",
- "watch:views": "npm run build:views -- -Pw",
- "watch:all": "concurrently -kr 'npm run watch:js' 'npm run watch:styles' 'npm run watch:views'",
- "build:all": "npm run build:js && npm run build:views && npm run build:styles && npm run copyfiles",
- "build:js": "webpack",
- "build:styles": "cross-conf-env stylus -u s-grid -u poststylus --with '[require("rucksack-css")(), require("autoprefixer"), require("postcss-flexibility"), require("lost")(), require("typographic"), require("rupture")]' -u rupture --sourcemap-inline $npm_package_config_styles_dev -o $npm_package_config_styles_dist",
- "build:views": "cross-conf-env pug -O ./options.json $npm_package_config_views_dev -o $npm_package_config_views_dist",
- "copyfiles": "cpx "./dev/util/style.json" "./dist/assets" && cpx "./dev/views/index.json" "./dist/assets"",
- "lint:styles": "cross-conf-env stylint ${npm_package_config_styles_dev}**/ -c ./.stylintrc",
- "lint:js": "cross-conf-env eslint ${npm_package_config_js_dev}** ${npm_package_config_js_dev}* -c ./.eslintrc",
- "lint": "npm run lint:styles -s && npm run lint:js -s",
- "optimize:images": "node ./tools/imagemin.js",
- "critical:path": "npm run build:views && node ./tools/critical-path.js",
- "build:prod": "npm run build:js -- -p && npm run build:styles -- -c && npm run optimize:images && npm run critical:path",
- "build:dev": "npm run reset && npm run build:js -- --bail && npm run lint:styles && npm run build:styles && npm run build:views && npm run optimize:images",
- "precommit": "npm run lint -s",
- "prepush": "npm run lint -s",
- "serve": "cross-conf-env browser-sync start -s $npm_package_config_dist -f '${npm_package_config_dist}**/*.html', '${npm_package_config_styles_dist}*.css', '${npm_package_config_js_dist}*.js'",
- "start": "npm run reset && npm run optimize:images && concurrently -kr 'npm run watch:all' 'npm run serve'"
- },
Add Comment
Please, Sign In to add comment