Skip to content

Commit

Permalink
Add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
qwtel committed Aug 31, 2019
1 parent 6b6baef commit 2285f9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _includes/scripts/load-js.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
"clean": "rm -f assets/js/hydejack-*.js",
"test": "exit 0",
"format": "prettier --write \"_js/src/**/*.js\"",
"build": "npm run build:js & npm run build:css & wait",
"build": "npm run build:js & npm run build:css & npm run build:scripts & wait",
"build:js": "webpack --mode production",
"build:js:stats": "webpack --mode production --progress --colors --json > stats.json",
"build:css": ".scripts/build-css.js",
"build:scripts": " for f in $(find _includes/scripts -type f ! -name '*.min.js'); do g=${f%.js}; uglifyjs $f -c -m > $g.min.js; done",
"watch": "npm run watch:js & npm run watch:css",
"watch:js": "webpack --watch --mode development --progress --colors",
"build:js:stats": "webpack --mode production --progress --colors --json > stats.json",
"watch:css": "npm run build:css && onchange '_sass/**/*.scss' -e '_sass/**/__*/*' -- npm run build:css '{{changed}}'",
"serve": "bundle exec jekyll serve --port=$npm_package_config_port --host=0.0.0.0",
"dev": "npm run watch & npm run serve",
Expand Down

0 comments on commit 2285f9d

Please sign in to comment.