forked from ipld/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
14 lines (14 loc) · 951 Bytes
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"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:vue": "vuepress build html --no-cache",
"build": "set -e; for t in prepare:base prepare:content prepare:ipldsch prepare:json build:vue; do npm run $t; done",
"serve": "echo '\n\n\u001b[1mView IPLD Specs @ http://localhost:1337/\u001b[22m\n\n'; npx st --dir html/.vuepress/dist --no-cache --index index.html"
},
"dependencies": {
"vuepress": "^1.2.0"
}
}