Skip to content

Commit 8b05db3

Browse files
committed
Add watch script
1 parent 1292d27 commit 8b05db3

File tree

2 files changed

+109
-1
lines changed

2 files changed

+109
-1
lines changed

package-lock.json

Lines changed: 106 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"graphql:schema": "node scripts/graphql.js",
1616
"graphql:validate": "node scripts/graphql-validate.js",
1717
"serve": "cd build/docs/gatsby && gatsby develop",
18-
"test": "speccheck -v"
18+
"test": "speccheck -v",
19+
"watch": "nodemon --watch src --ext yaml,md,json --exec \"npm run build && cp ./openrpc.json build/docs/gatsby/src/openrpc.json && npm run serve\""
1920
},
2021
"repository": {
2122
"type": "git",
@@ -38,6 +39,7 @@
3839
"graphql-request": "~4.1.0",
3940
"js-yaml": "~4.1.0",
4041
"json-schema-merge-allof": "~0.8.1",
42+
"nodemon": "^3.0.0",
4143
"remark-gfm": "~4.0.1",
4244
"typescript": "~5.6.2"
4345
}

0 commit comments

Comments
 (0)