mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-18 12:57:06 +01:00
Alan Orth
392a49f854
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.
30 lines
1.0 KiB
JSON
30 lines
1.0 KiB
JSON
{
|
|
"name": "iseal-schema",
|
|
"version": "0.0.1",
|
|
"description": "Generate ISEAL Core Metadata Set documentation website.",
|
|
"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: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:site": "./bin/hugo",
|
|
"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": [
|
|
"ISEAL",
|
|
"dublin-core",
|
|
"dcterms",
|
|
"metadata"
|
|
],
|
|
"author": "Alan Orth",
|
|
"license": "GPL-3.0-only",
|
|
"devDependencies": {
|
|
"bootstrap": "^5.1.1",
|
|
"clean-css-cli": "^5.3.3",
|
|
"hugo-installer": "^3.1.0",
|
|
"jquery": "^3.6.0",
|
|
"sass": "^1.41.1",
|
|
"uglify-js": "^3.14.2"
|
|
}
|
|
}
|