|
5 | 5 | "ng": "ng", |
6 | 6 | "config:watch": "nodemon", |
7 | 7 | "test:rest": "ts-node --project ./tsconfig.ts-node.json scripts/test-rest.ts", |
8 | | - "start": "yarn run start:prod", |
9 | | - "start:dev": "nodemon --exec \"cross-env NODE_ENV=development yarn run serve\"", |
10 | | - "start:prod": "yarn run build:prod && cross-env NODE_ENV=production yarn run serve:ssr", |
11 | | - "start:mirador:prod": "yarn run build:mirador && yarn run start:prod", |
12 | | - "preserve": "yarn base-href", |
| 8 | + "start": "npm run start:prod", |
| 9 | + "start:dev": "nodemon --exec \"cross-env NODE_ENV=development npm run serve\"", |
| 10 | + "start:prod": "npm run build:prod && cross-env NODE_ENV=production npm run serve:ssr", |
| 11 | + "start:mirador:prod": "npm run build:mirador && npm run start:prod", |
| 12 | + "preserve": "npm run base-href", |
13 | 13 | "serve": "ts-node --project ./tsconfig.ts-node.json scripts/serve.ts", |
14 | 14 | "serve:ssr": "node dist/server/main", |
15 | 15 | "analyze": "webpack-bundle-analyzer dist/browser/stats.json", |
16 | 16 | "build": "ng build --configuration development", |
17 | 17 | "build:stats": "ng build --stats-json", |
18 | | - "build:prod": "cross-env NODE_ENV=production yarn run build:ssr", |
| 18 | + "build:prod": "cross-env NODE_ENV=production npm run build:ssr", |
19 | 19 | "build:ssr": "ng build --configuration production && ng run dspace-angular:server:production", |
20 | 20 | "build:lint": "rimraf 'lint/dist/**/*.js' 'lint/dist/**/*.js.map' && tsc -b lint/tsconfig.json", |
21 | 21 | "test": "ng test --source-map=true --watch=false --configuration test", |
22 | 22 | "test:watch": "nodemon --exec \"ng test --source-map=true --watch=true --configuration test\"", |
23 | 23 | "test:headless": "ng test --source-map=true --watch=false --configuration test --browsers=ChromeHeadless --code-coverage", |
24 | | - "test:lint": "yarn build:lint && yarn test:lint:nobuild", |
| 24 | + "test:lint": "npm run build:lint && npm run test:lint:nobuild", |
25 | 25 | "test:lint:nobuild": "jasmine --config=lint/jasmine.json", |
26 | | - "lint": "yarn build:lint && yarn lint:nobuild", |
| 26 | + "lint": "npm run build:lint && npm run lint:nobuild", |
27 | 27 | "lint:nobuild": "ng lint", |
28 | | - "lint-fix": "yarn build:lint && ng lint --fix=true", |
| 28 | + "lint-fix": "npm run build:lint && ng lint --fix=true", |
29 | 29 | "docs:lint": "ts-node --project ./lint/tsconfig.json ./lint/generate-docs.ts", |
30 | 30 | "e2e": "cross-env NODE_ENV=production ng e2e", |
31 | 31 | "clean:dev:config": "rimraf src/assets/config.json", |
|
36 | 36 | "clean:json": "rimraf *.records.json", |
37 | 37 | "clean:node": "rimraf node_modules", |
38 | 38 | "clean:cli": "rimraf .angular/cache", |
39 | | - "clean:prod": "yarn run clean:dist && yarn run clean:log && yarn run clean:doc && yarn run clean:coverage && yarn run clean:json", |
40 | | - "clean": "yarn run clean:prod && yarn run clean:dev:config && yarn run clean:cli && yarn run clean:node", |
| 39 | + "clean:prod": "npm run clean:dist && npm run clean:log && npm run clean:doc && npm run clean:coverage && npm run clean:json", |
| 40 | + "clean": "npm run clean:prod && npm run clean:dev:config && npm run clean:cli && npm run clean:node", |
41 | 41 | "sync-i18n": "ts-node --project ./tsconfig.ts-node.json scripts/sync-i18n-files.ts", |
42 | 42 | "build:mirador": "webpack --config webpack/webpack.mirador.config.ts", |
43 | 43 | "merge-i18n": "ts-node --project ./tsconfig.ts-node.json scripts/merge-i18n-files.ts", |
|
46 | 46 | "env:yaml": "ts-node --project ./tsconfig.ts-node.json scripts/env-to-yaml.ts", |
47 | 47 | "base-href": "ts-node --project ./tsconfig.ts-node.json scripts/base-href.ts", |
48 | 48 | "check-circ-deps": "npx madge --exclude '(bitstream|bundle|collection|config-submission-form|eperson|item|version)\\.model\\.ts$' --circular --extensions ts ./", |
49 | | - "postinstall": "yarn build:lint || echo 'Skipped DSpace ESLint plugins.'" |
| 49 | + "postinstall": "npm run build:lint || echo 'Skipped DSpace ESLint plugins.'" |
50 | 50 | }, |
51 | 51 | "browser": { |
52 | 52 | "fs": false, |
|
0 commit comments