Skip to content

Commit

Permalink
CLI: Add deploy function
Browse files Browse the repository at this point in the history
Signed-off-by: Khusika Dhamar Gusti <[email protected]>
  • Loading branch information
Khusika Dhamar Gusti committed Jun 1, 2021
1 parent 6d0eb9a commit 0548952
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"babel": "npx babel src/js --out-file assets/js/theme.min.js --source-maps && npx babel src/js --out-file assets/js/themes.min.js",
"build": "npm run babel && hugo -v --source=exampleSite --themesDir ../ --gc",
"build-lunr-segmentit": "browserify src/lib/lunr.segmentit.js -o assets/lib/lunr/lunr.segmentit.js -t babelify --presets @babel/preset-env --presets minify",
"purgejs": "mkdir -p exampleSite/src/js && sed '238,265d;273,275d;593,597d;615,636d;639,642d;727d' src/js/theme.js > exampleSite/src/js/theme.js && npx babel exampleSite/src/js --out-file exampleSite/assets/js/themes.min.js --presets minify",
"deploy": "npm run purgejs && hugo -v --source=exampleSite --themesDir ../ --gc --minify",
"start": "npm run babel && hugo server --source=exampleSite --themesDir ../ -D --disableFastRender",
"start-production": "npm run babel && hugo server --source=exampleSite --themesDir ../ -D --disableFastRender -e production",
"copy": "rm -rf resources && cp -rf exampleSite/resources resources",
Expand Down

0 comments on commit 0548952

Please sign in to comment.