Skip to content

Commit 0d2b471

Browse files
committed
replace watch with nodemon
1 parent 6dc1b4f commit 0d2b471

File tree

2 files changed

+536
-74
lines changed

2 files changed

+536
-74
lines changed

package.json

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,30 @@
33
"version": "1.0.0",
44
"description": "TinyMCE documentation",
55
"repository": "[email protected]:tinymce/tinymce-docs-4x.git",
6-
"author": "Tiny Technologies",
7-
"license": "CC-BY-NC-SA-3.0",
86
"bugs": {
97
"url": "https://github.com/tinymce/tinymce-docs/issues"
108
},
119
"homepage": "https://github.com/tinymce/tinymce-docs#readme",
1210
"scripts": {
13-
"build": "antora antora-playbook.yml",
14-
"watch": "watch --interval=15 --ignoreDirectoryPattern='/(build|\\.git)\\\//' \"yarn build\" ./",
11+
"watch": "nodemon --exec antora antora-playbook.yml",
1512
"server": "http-server build/site/ --port 4000",
1613
"serve": "npm-run-all -p watch server"
1714
},
15+
"author": "Tiny Technologies Inc",
16+
"license": "CC-BY-NC-SA-3.0",
17+
"nodemonConfig": {
18+
"execMap": {
19+
"build": "antora antora-playbook.yml"
20+
},
21+
"watch": ["modules/*"],
22+
"delay": "2500ms",
23+
"ext": "*"
24+
},
1825
"devDependencies": {
19-
"@antora/cli": "^2.3.3",
20-
"@antora/site-generator-default": "^2.3.3",
21-
"ecstatic": "^4.1.3",
26+
"@antora/cli": "^2.3.4",
27+
"@antora/site-generator-default": "^2.3.4",
2228
"http-server": "^0.12.3",
23-
"npm-run-all": "^4.1.5",
24-
"watch": "^1.0.2"
29+
"nodemon": "^2.0.7",
30+
"npm-run-all": "^4.1.5"
2531
}
26-
}
32+
}

0 commit comments

Comments
 (0)