Skip to content

Commit 4d70510

Browse files
committed
Use native Node.js watch instead of nodemon
Modern Node.js can watch natively so we don't need nodemon anymore.
1 parent 2d31afb commit 4d70510

File tree

2 files changed

+2
-120
lines changed

2 files changed

+2
-120
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
"version": "10.0.0-next",
44
"scripts": {
55
"ng": "ng",
6-
"config:watch": "nodemon",
76
"test:rest": "ts-node --project ./tsconfig.ts-node.json scripts/test-rest.ts",
87
"start": "npm run start:prod",
9-
"start:dev": "nodemon --exec \"cross-env NODE_ENV=development npm run serve\"",
8+
"start:dev": "cross-env NODE_ENV=development npm run serve --watch",
109
"start:prod": "npm run build:prod && cross-env NODE_ENV=production npm run serve:ssr",
1110
"start:mirador:prod": "npm run build:mirador && npm run start:prod",
1211
"preserve": "npm run base-href",
@@ -19,7 +18,7 @@
1918
"build:ssr": "ng build --configuration production && ng run dspace-angular:server:production",
2019
"build:lint": "rimraf 'lint/dist/**/*.js' 'lint/dist/**/*.js.map' && tsc -b lint/tsconfig.json",
2120
"test": "ng test --source-map=true --watch=false --configuration test",
22-
"test:watch": "nodemon --exec \"ng test --source-map=true --watch=true --configuration test\"",
21+
"test:watch": "ng test --source-map=true --watch=true --configuration test",
2322
"test:headless": "ng test --source-map=true --watch=false --configuration test --browsers=ChromeHeadless --code-coverage",
2423
"test:lint": "npm run build:lint && npm run test:lint:nobuild",
2524
"test:lint:nobuild": "jasmine --config=lint/jasmine.json",
@@ -225,7 +224,6 @@
225224
"karma-mocha-reporter": "2.2.5",
226225
"ng-mocks": "^14.13.5",
227226
"ngx-mask": "14.2.4",
228-
"nodemon": "^2.0.22",
229227
"postcss": "^8.5",
230228
"postcss-import": "^14.0.0",
231229
"postcss-loader": "^4.0.3",

0 commit comments

Comments
 (0)