mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 21:14:09 +01:00
This commit adds a bit of helper code to the top-level package.json to always ensure that the `themes/docsy` submodule is checked out and that its nodejs dependencies are installed. Thus, we can remove the need to download git submodules directly. Instead they will be loaded when running `npm i`. We also don't need to load submodules recursively anymore, as docsy has removed any submodules from its repo since the last time we updated the theme. The `--depth 1` bit of `git submodule update --init --depth 1` tells git to only check out the latest commit of any submodules - saving bandwidth and space.
31 lines
923 B
JSON
31 lines
923 B
JSON
{
|
|
"name": "matrix-spec",
|
|
"version": "0.0.1",
|
|
"description": "Hugo theme for the Matrix specification.",
|
|
"main": "none.js",
|
|
"scripts": {
|
|
"get-proposals": "node ./scripts/proposals.js",
|
|
"get:submodule": "git submodule update --init --depth 1",
|
|
"_prepare:docsy": "cd themes/docsy && npm install",
|
|
"prepare": "npm run get:submodule && npm run _prepare:docsy",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/matrix-org/matrix-spec.git"
|
|
},
|
|
"author": "The Matrix.org Foundation C.I.C.",
|
|
"private": true,
|
|
"license": "Apache-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/matrix-org/matrix-spec"
|
|
},
|
|
"homepage": "https://github.com/matrix-org/matrix-spec#readme",
|
|
"devDependencies": {
|
|
"autoprefixer": "^10.4.2",
|
|
"node-fetch": "^2.6.7",
|
|
"postcss-cli": "^9.1.0",
|
|
"postcss": "^8.4.6"
|
|
}
|
|
}
|