-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
27 lines (27 loc) · 2.27 KB
/
package.json
File metadata and controls
27 lines (27 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"name": "universal-charter",
"version": "1.0.0",
"description": "Universal Charter for Digital Governance",
"scripts": {
"build": "docker build -f .github/Dockerfile.local -t universal-charter-local .",
"generate": "mkdir -p ./output && docker run --name temp-charter universal-charter-local bash -c 'cd charter && npx markdown-transclusion v1.md --strip-frontmatter > v1-expanded.md && echo \"Expanded markdown generated\"' && docker cp temp-charter:/workspace/charter/v1-expanded.md ./output/v1-expanded.md && docker rm temp-charter && echo \"Expanded markdown copied to ./output/v1-expanded.md\"",
"website": "mkdir -p ./output && docker run --name temp-charter universal-charter-local bash -c 'cd charter && npx markdown-transclusion v1.md --strip-frontmatter > v1-expanded.md && node ../.github/scripts/build-site.js && echo \"Website built\"' && docker cp temp-charter:/workspace/index.html ./output/index.html && docker rm temp-charter && echo \"Website copied to ./output/index.html\"",
"build:generate": "npm run build && npm run generate",
"build:website": "npm run build && npm run website",
"build:all": "npm run build && npm run generate && npm run website",
"shell": "docker run --rm -it -v $(pwd):/workspace universal-charter-local",
"clean": "docker rmi universal-charter-local 2>/dev/null || true",
"dev": "rm -rf ./output && mkdir -p ./output && npm run build && docker run --name temp-charter universal-charter-local bash -c 'cd charter && npx markdown-transclusion v1.md --strip-frontmatter > v1-expanded.md && node ../.github/scripts/build-site.js && echo \"Site built\"' && docker cp temp-charter:/workspace/. ./output/ && docker rm temp-charter && echo \"Full artifact saved to ./output/\" && (command -v open >/dev/null && open ./output/index.html || command -v xdg-open >/dev/null && xdg-open ./output/index.html || echo \"Please open ./output/index.html manually\")"
},
"keywords": ["governance", "digital", "charter"],
"license": "MIT",
"author": "flyingrobots",
"repository": {
"type": "git",
"url": "git+https://github.com/UniversalCharter/universal-charter.git"
},
"bugs": {
"url": "https://github.com/UniversalCharter/universal-charter/issues"
},
"homepage": "https://universalcharter.github.io/universal-charter/"
}