forked from ipld/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
15 lines (15 loc) · 905 Bytes
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"scripts": {
"prepare:base": "rm -rf html && mkdir html && cp -a .vuepress/ html/.vuepress/ && mv html/.vuepress/README.md html/",
"prepare:content": "cp -a schemas/ html/schemas/",
"prepare:ipldsch": "cd html && find . -name \\*.ipldsch -exec sh -c \"echo '---\\neditLink: false\\n---\\n\\n\\`\\`\\`ipldsch' > {}.md && cat {} >> {}.md && echo '\\`\\`\\`' >> {}.md\" \\;",
"prepare:json": "find html/ -name \\*.json -exec sh -c \"echo '---\\neditLink: false\\n---\\n\\n\\`\\`\\`json' > {}.md && cat {} >> {}.md && echo '\\`\\`\\`' >> {}.md\" \\;",
"build": "npm run build:prepare && vuepress build",
"build:prepare": "set -e; for t in prepare:base prepare:content prepare:ipldsch prepare:json; do npm run $t; done",
"dev": "npm run build:prepare && vuepress dev",
"serve": "npm run build:prepare && vuepress dev"
},
"dependencies": {
"vuepress": "^1.5.4"
}
}