Skip to content

Commit 74fd91a

Browse files
committed
Update the build process to support more files
1 parent 816c908 commit 74fd91a

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ Labels are assigned based on [Sensible Github Labels](https://github.com/Releque
2525
## Authoring and Building
2626

2727
### Specification
28-
To build the spec files to HTML from the Markdown sources, run `npm run build`.
29-
You can also build each individually with `npm run build-core` and `npm run
30-
build-validation`.
28+
To build the spec files to HTML from the Markdown sources, run `npm run
29+
build-all`.
30+
You can also build each individually with `npm run build -- filename.md`
31+
(Example: `npm run build -- jsonschema-core.md`). You can also use wildcards to
32+
build multiple specs at the same time: `npm run build -- jsonschema-*.md`.
3133

3234
The spec is built using [Remark](https://remark.js.org/), a markdown engine with
3335
good support for plugins and lots of existing plugins we can use.

build/build.js

+19-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
"main": "index.js",
77
"scripts": {
88
"lint": "eslint build/",
9-
"build": "npm run build-core && npm run build-validation && npm run build-propertyDependencies",
10-
"build-core": "node build/build.js < jsonschema-core.md > jsonschema-core.html",
11-
"build-validation": "node build/build.js < jsonschema-validation.md > jsonschema-validation.html",
12-
"build-propertyDependencies": "node build/build.js < proposals/propertyDependencies.md > proposals/propertyDependencies.html"
9+
"build-all": "node build/build.js jsonschema-*.md proposals/*.md",
10+
"build": "node build/build.js"
1311
},
1412
"license": "MIT",
1513
"dependencies": {

0 commit comments

Comments
 (0)