mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-22 14:55:03 +01:00
Add hugo-installer to site package.json
This installs a local copy of the Hugo binary that we need to build the site. Otherwise the user would have to install it via their sy- stem package manager. This also adds a new npm "build:site" script to build the site using our local version of Hugo. Note: this is slightly annoying, but after toying with "easier" op- tions like Hexo that integrate with the JavaScript ecosystem more naturally, I ended up preferring Hugo anyways. Hexo's not nearly as powerful or well documented as Hugo. Note note: there is also the `hugo-bin` package on NPM, but it is very out of date.
This commit is contained in:
parent
29c91c4ed4
commit
392a49f854
2337
site/package-lock.json
generated
2337
site/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -5,8 +5,10 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build:css": "sass --style expanded source/scss/style.scss assets/css/style.css.tmp && cleancss -O1 --format breakWith=lf --with-rebase assets/css/style.css.tmp -o assets/css/style.min.css",
|
"build:css": "sass --style expanded source/scss/style.scss assets/css/style.css.tmp && cleancss -O1 --format breakWith=lf --with-rebase assets/css/style.css.tmp -o assets/css/style.min.css",
|
||||||
"build:js": "uglifyjs node_modules/jquery/dist/jquery.slim.min.js node_modules/bootstrap/dist/js/bootstrap.min.js -o assets/js/bundle.min.js",
|
"build:js": "uglifyjs node_modules/jquery/dist/jquery.slim.min.js node_modules/bootstrap/dist/js/bootstrap.min.js -o assets/js/bundle.min.js",
|
||||||
"build": "npm run build:css && npm run build:js && npm run clean",
|
"build:site": "./bin/hugo",
|
||||||
"clean": "rm assets/css/style.css.tmp assets/css/style.css.tmp.map"
|
"build": "npm run build:css && npm run build:js && npm run clean && npm run build:site",
|
||||||
|
"clean": "rm assets/css/style.css.tmp assets/css/style.css.tmp.map",
|
||||||
|
"postinstall": "hugo-installer --version 0.89.2"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ISEAL",
|
"ISEAL",
|
||||||
@ -19,6 +21,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bootstrap": "^5.1.1",
|
"bootstrap": "^5.1.1",
|
||||||
"clean-css-cli": "^5.3.3",
|
"clean-css-cli": "^5.3.3",
|
||||||
|
"hugo-installer": "^3.1.0",
|
||||||
"jquery": "^3.6.0",
|
"jquery": "^3.6.0",
|
||||||
"sass": "^1.41.1",
|
"sass": "^1.41.1",
|
||||||
"uglify-js": "^3.14.2"
|
"uglify-js": "^3.14.2"
|
||||||
|
Loading…
Reference in New Issue
Block a user