summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authoramzrk22020-05-31 16:31:27 +0800
committeramzrk22020-05-31 16:31:27 +0800
commit8009dfd8f5d33211a07d01319715fc3993979138 (patch)
tree5effe87db759b4bd2d62e0abeb170c2eca900428 /package.json
parentbde0e702941721e0f408390478a1f497cf8a7a31 (diff)
downloadhugo-theme-fuji-8009dfd8f5d33211a07d01319715fc3993979138.tar.gz
hugo-theme-fuji-8009dfd8f5d33211a07d01319715fc3993979138.tar.bz2
hugo-theme-fuji-8009dfd8f5d33211a07d01319715fc3993979138.zip
Scripts adjustment
Diffstat (limited to 'package.json')
-rw-r--r--package.json9
1 files changed, 8 insertions, 1 deletions
diff --git a/package.json b/package.json
index e6592f3..7e7f66b 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,13 @@
},
"homepage": "https://github.com/amzrk2/hugo-theme-fuji#readme",
"devDependencies": {
- "@primer/css": "14.4.0"
+ "@babel/cli": "^7.10.1",
+ "@babel/core": "^7.10.2",
+ "@primer/css": "14.4.0",
+ "uglify-js": "^3.9.4"
+ },
+ "scripts": {
+ "babel": "babel static/assets/js/fuji.dev.js --out-file static/assets/js/fuji.js",
+ "js": "uglifyjs static/assets/js/fuji.js -o static/assets/js/fuji.min.js -c --source-map"
}
}