-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
164 lines (164 loc) · 9.28 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"name": "metis-ui",
"version": "6.0.0",
"license": "MIT",
"scripts": {
"check-circular": "dpdm --no-warning --no-tree pdm --no-warning --no-tree projects/metis/src/main.ts projects/metis/src/main.ts",
"check-circular:sandbox": "dpdm --no-warning --no-tree pdm --no-warning --no-tree projects/sandbox/src/main.ts projects/sandbox/src/main.ts",
"ng": "ng",
"start-metis": "ng serve metis",
"start-sandbox": "ng serve sandbox",
"start": "npm run start-metis",
"build-metis": "ng build metis",
"build-sandbox": "ng build sandbox",
"build-shared": "ng build shared",
"build": "npm run build-shared && npm run build-metis && npm run build-sandbox",
"clean": "rm -rf ./dist && rm -rf ./projects/**/dist && rm -rf ./projects/**/coverage",
"prettier": "prettier --write '{tools/**/*.{ts,js,json,mjs},shared-styles/**/*.scss,projects/**/{shared-styles,src,cypress,test-data}/**/*.{ts,js,json,scss,html}}' '*.{scss,js,json}'",
"prettier:ci": "prettier --list-different '(tools/**/*.{ts,js,json,mjs},shared-styles/**/*.scss,projects/**/{src,cypress,test-data}/**/*.{ts,js,json,scss,html}}' '*.{js,json}'",
"lint-any": "eslint --ext .js,.ts projects/${npm_config_project} --fix",
"lint:ci-any": "eslint --ext .ts projects/${npm_config_project}/src/app",
"lint-metis": "npm run lint-any --project=metis",
"lint:ci-metis": "npm run lint:ci-any --project=metis",
"lint-sandbox": "npm run lint-any --project=sandbox",
"lint:ci-sandbox": "npm run lint:ci-any --project=sandbox",
"lint-shared": "npm run lint-any --project=shared",
"lint:ci-shared": "eslint --ext .ts projects/shared/src/lib",
"lint": "npm run lint-metis && npm run lint-sandbox && npm run lint-shared",
"lint:ci": "npm run lint:ci-metis && npm run lint:ci-sandbox && npm run lint:ci-shared",
"fix": "npm run prettier && npm run lint",
"test:dev-metis": "ng test metis --code-coverage",
"test:dev-sandbox": "ng test sandbox --code-coverage",
"test:dev-shared": "ng test shared --code-coverage",
"test:dev": "npm run test:dev-shared && npm run test:dev-sandbox && npm run test:dev-metis",
"test": "npm run prettier:ci && npm run lint:ci && npm run build-shared && npm run template-check && npm run test:e2e",
"test:ci-any": "ng test ${npm_config_project} --progress=false --watch=false --code-coverage --source-map=false",
"test:ci-metis": "npm run test:ci-any --project=metis",
"test:ci-sandbox": "npm run test:ci-any --project=sandbox",
"test:ci-shared": "npm run test:ci-any --project=shared",
"test:ci": "npm run test:ci-sandbox && npm run test:ci-shared && npm run test:ci-metis",
"prep-test-data": "node tools/test-data-prep/rename-files-to-mjs.mjs projects/${npm_config_project}/dist/out-tsc",
"test:accessibility-any": "npm run tsc-test-data --project=${npm_config_project} && npm run prep-test-data --project=${npm_config_project} && ((node --experimental-specifier-resolution=node --use_strict ./projects/${npm_config_project}/dist/out-tsc/projects/${npm_config_project}/test-data/index.mjs) & (npm run cypress:ci-accessibility-any --project=${npm_config_project}; fuser -k 3000/tcp))",
"test:e2e-any": "npm run tsc-test-data --project=${npm_config_project} && npm run prep-test-data --project=${npm_config_project} && ((node --experimental-specifier-resolution=node --use_strict ./projects/${npm_config_project}/dist/out-tsc/projects/${npm_config_project}/test-data/index.mjs) & (npm run cypress:ci-any --project=${npm_config_project}; fuser -k 3000/tcp))",
"test:e2e-metis": "npm run test:e2e-any --project=metis",
"test:e2e-sandbox": "npm run test:e2e-any --project=sandbox",
"test:accessibility-metis": "npm run test:accessibility-any --project=metis",
"test:accessibility-sandbox": "npm run test:accessibility-any --project=sandbox",
"test:accessibility": "npm run test:accessibility-metis && npm run test:accessibility-sandbox",
"test:e2e": "npm run test:e2e-metis && npm run test:e2e-sandbox",
"template-check-any": "ng build ${npm_config_project} --progress=false --output-path=tmp/template-check --aot",
"template-check-metis": "npm run template-check-any --project=metis",
"template-check-sandbox": "npm run template-check-any --project=sandbox",
"template-check-shared": "echo 'no templates available in shared yet'",
"template-check": "npm run template-check-metis && npm run template-check-sandbox && npm run template-check-shared",
"tsc-test-data": "tsc --project projects/${npm_config_project}/src/tsconfig.test-data.json",
"tsc": "npm run tsc-test-data --project=metis && npm run tsc-test-data --project=sandbox",
"cypress:ci-any": "run-p --race start:ci-any cypress:run --project=${npm_config_project}",
"cypress:ci-accessibility-any": "run-p --race start:ci-any cypress:run-accessibility --project=${npm_config_project}",
"cypress:run": "sleep 10 && cypress run --project projects/${npm_config_project} --browser=chrome --config '{\"component\": {}, \"e2e\": { \"excludeSpecPattern\": \"**/**a11y.cy.ts\"}}'",
"cypress:run-accessibility": "sleep 10 && cypress run --project projects/${npm_config_project} --spec **/*a11y.cy.ts",
"cypress:open-sandbox": "cypress open --project projects/sandbox",
"cypress": "cypress open --project projects/metis",
"start:ci-any": "ng serve --project=${npm_config_project} --port 4280 --live-reload=false --configuration=e2e",
"start:ci-sandbox": "ng serve --project=sandbox --port 4280 --live-reload=false --configuration=e2e",
"start:ci-metis": "ng serve --project=metis --port 4280 --live-reload=false --configuration=e2e",
"start:ci": "npm run start:ci-metis",
"start:ci-data-any": "npm run tsc-test-data && npm run prep-test-data --project=${npm_config_project} && node --experimental-specifier-resolution=node ./projects/${npm_config_project}/dist/out-tsc/projects/${npm_config_project}/test-data/index.mjs",
"start:ci-data-metis": "npm run start:ci-data-any --project=metis",
"start:ci-data-sandbox": "npm run start:ci-data-any --project=sandbox",
"start:ci-data": "npm run start:ci-data-metis",
"dist-any": "ng build ${npm_config_project} --progress=false --configuration production && cp -R dist/shared/. projects/${npm_config_project}/dist/${npm_config_project}",
"dist-metis": "npm run dist-any --project=metis",
"dist-sandbox": "npm run dist-any --project=sandbox",
"dist-shared": "ng build --project=shared --configuration production && cp -r dist/shared projects/shared/dist",
"dist": "npm run dist-metis",
"i18n": "ng xi18n --output-path locale --out-file messages.en-GB.xlf",
"lite": "test -d ./dist && lite-server --baseDir=./dist || echo '(run dist first)'"
},
"private": true,
"engines": {
"node": ">= v18.10.0",
"npm": ">=10.1.0"
},
"dependencies": {
"@angular-devkit/build-angular": "^17.1.1",
"@angular/common": "^17.1.1",
"@angular/core": "^17.1.1",
"@angular/forms": "^17.1.1",
"@angular/localize": "^17.1.1",
"@angular/platform-browser": "^17.1.1",
"@angular/platform-browser-dynamic": "^17.1.1",
"@angular/router": "^17.1.1",
"@ctrl/ngx-codemirror": "^7.0.0",
"@europeana/metis-ui-consent-management": "^0.0.16",
"@europeana/metis-ui-maintenance-utils": "^0.0.12",
"@types/ws": "^8.5.5",
"chart.js": "^4.4.0",
"chartjs-plugin-datalabels": "^2.2.0",
"codemirror": "^5.65.15",
"core-js": "^2.6.12",
"jasmine": "^5.1.0",
"jspdf": "^2.5.1",
"loader-utils": "^3.2.1",
"lodash-es": "^4.17.20",
"metis-ui-consent-management": "^0.0.4",
"ng2-charts": "^5.0.3",
"ngx-cookie-service": "^17.0.1",
"ngx-matomo-client": "^6.0.2",
"rxjs": "^7.5.5",
"sass-loader": "^12.3.0",
"tslib": "^2.0.0",
"vkbeautify": "^0.99.3",
"zone.js": "^0.14.3"
},
"devDependencies": {
"@angular/cli": "^17.1.1",
"@angular/compiler": "^17.1.1",
"@angular/compiler-cli": "^17.1.1",
"@angular/language-service": "^17.1.1",
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.4",
"@cypress/webpack-preprocessor": "^5.12.2",
"@europeana/metis-ui-test-utils": "^0.0.18",
"@types/codemirror": "0.0.71",
"@types/jasmine": "^3.10.2",
"@types/jasminewd2": "^2.0.8",
"@types/vkbeautify": "^0.99.2",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/eslint-plugin-tslint": "^5.62.0",
"@typescript-eslint/parser": "^6.20.0",
"@typescript-eslint/types": "^5.62.0",
"angular2-template-loader": "^0.6.2",
"axe-core": "^4.8.2",
"babel-loader": "^8.2.3",
"cypress": "^13.3.0",
"cypress-axe": "^1.5.0",
"dpdm": "^3.10.0",
"eslint": "^8.56.0",
"eslint-plugin-rxjs": "^5.0.3",
"http-server": "^14.1.1",
"jasmine-core": "~3.8.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "^6.4.2",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "^2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.7.0",
"lite-server": "^2.6.1",
"ng-packagr": "^17.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"tar": "^4.4.18",
"ts-loader": "^9.3.1",
"typescript": "^5.3.3",
"typescript-eslint": "^0.0.1-alpha.0",
"wallaby-webpack": "^3.9.16",
"webpack": "^5.76.0"
},
"prettier": {
"arrowParens": "always",
"printWidth": 100,
"singleQuote": true,
"trailingComma": "none"
}
}