Add watch mode
This commit is contained in:
parent
e5ebebbcd7
commit
f7c2a55788
2 changed files with 4086 additions and 17 deletions
4097
package-lock.json
generated
4097
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -17,7 +17,9 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc && npm run copy-js",
|
"build": "tsc && npm run copy-js",
|
||||||
"copy-js": "copyfiles -u 1 src/*.js lib/"
|
"dev": "concurrently 'tsc --watch' 'npm run copy-js:watch'",
|
||||||
|
"copy-js": "copyfiles -u 1 src/*.js lib/",
|
||||||
|
"copy-js:watch": "nodemon -w src --ext js --exec 'npm run copy-js'"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "^14.14.31",
|
"@types/node": "^14.14.31",
|
||||||
|
@ -43,8 +45,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/yargs-parser": "^20.2.0",
|
"@types/yargs-parser": "^20.2.0",
|
||||||
|
"concurrently": "^6.0.0",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"estree-walker": "^3.0.0",
|
"estree-walker": "^3.0.0",
|
||||||
|
"nodemon": "^2.0.7",
|
||||||
"preact": "^10.5.12",
|
"preact": "^10.5.12",
|
||||||
"preact-render-to-string": "^5.1.14",
|
"preact-render-to-string": "^5.1.14",
|
||||||
"typescript": "^4.2.3"
|
"typescript": "^4.2.3"
|
||||||
|
|
Loading…
Reference in a new issue