Guest User

Untitled

a guest
Apr 26th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. "scripts": {
  2. "reset": "npm run clean && npm run create",
  3. "clean": "cross-conf-env rimraf ./dist",
  4. "create": "cross-conf-env mkdirp ${npm_package_config_dist}assets/css/fonts/ ${npm_package_config_dist}assets/js/ ${npm_package_config_dist}assets/images/",
  5. "watch:js": "npm run build:js -- -w",
  6. "watch:styles": "concurrently -kr 'npm run build:styles -- -w' 'npm run lint:styles -- -w' 'npm run copyfiles -- -w'",
  7. "watch:views": "npm run build:views -- -Pw",
  8. "watch:all": "concurrently -kr 'npm run watch:js' 'npm run watch:styles' 'npm run watch:views'",
  9. "build:all": "npm run build:js && npm run build:views && npm run build:styles && npm run copyfiles",
  10. "build:js": "webpack",
  11. "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",
  12. "build:views": "cross-conf-env pug -O ./options.json $npm_package_config_views_dev -o $npm_package_config_views_dist",
  13. "copyfiles": "cpx "./dev/util/style.json" "./dist/assets" && cpx "./dev/views/index.json" "./dist/assets"",
  14. "lint:styles": "cross-conf-env stylint ${npm_package_config_styles_dev}**/ -c ./.stylintrc",
  15. "lint:js": "cross-conf-env eslint ${npm_package_config_js_dev}** ${npm_package_config_js_dev}* -c ./.eslintrc",
  16. "lint": "npm run lint:styles -s && npm run lint:js -s",
  17. "optimize:images": "node ./tools/imagemin.js",
  18. "critical:path": "npm run build:views && node ./tools/critical-path.js",
  19. "build:prod": "npm run build:js -- -p && npm run build:styles -- -c && npm run optimize:images && npm run critical:path",
  20. "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",
  21. "precommit": "npm run lint -s",
  22. "prepush": "npm run lint -s",
  23. "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'",
  24. "start": "npm run reset && npm run optimize:images && concurrently -kr 'npm run watch:all' 'npm run serve'"
  25. },
Add Comment
Please, Sign In to add comment