]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/package.json
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / package.json
CommitLineData
11fdf7f2
TL
1{
2 "name": "ceph-dashboard",
3 "version": "0.0.0",
4 "license": "MIT",
eafe8130
TL
5 "config": {
6 "locale": "en-US"
7 },
11fdf7f2
TL
8 "scripts": {
9 "ng": "ng",
10 "start": "npm run env_build && ng serve --host 0.0.0.0",
9f95a23c
TL
11 "build": "export _locale=${LOCALE:-$npm_package_config_locale}; if [ ${_locale} = $npm_package_config_locale ]; then export _file=; else export _file=src/locale/messages.${_locale}.xlf; fi; ng build --outputPath=dist/${_locale} --i18nFile=${_file} --i18nLocale=${_locale}",
12 "prebuild": "npm run env_build",
13 "build:cs": "LOCALE=cs npm run build",
14 "build:de-DE": "LOCALE=de-DE npm run build",
15 "build:en-US": "LOCALE=en-US npm run build",
16 "build:es-ES": "LOCALE=es-ES npm run build",
17 "build:fr-FR": "LOCALE=fr-FR npm run build",
18 "build:id-ID": "LOCALE=id-ID npm run build",
19 "build:it-IT": "LOCALE=it-IT npm run build",
20 "build:ja-JP": "LOCALE=ja-JP npm run build",
21 "build:ko-KR": "LOCALE=ko-KR npm run build",
22 "build:pl-PL": "LOCALE=pl-PL npm run build",
23 "build:pt-BR": "LOCALE=pt-BR npm run build",
24 "build:zh-CN": "LOCALE=zh-CN npm run build",
25 "build:zh-TW": "LOCALE=zh-TW npm run build",
11fdf7f2 26 "env_build": "cp src/environments/environment.tpl.ts src/environments/environment.prod.ts && cp src/environments/environment.tpl.ts src/environments/environment.ts && node ./environment.build.js",
eafe8130
TL
27 "i18n": "npm run i18n:extract && npm run i18n:push && npm run i18n:pull && npm run i18n:merge",
28 "i18n:extract": "ng xi18n --i18n-format xlf --i18n-locale en-US --output-path locale --progress=false && ngx-extractor -i 'src/**/*.ts' -f xlf -o src/locale/messages.xlf -l en-US",
29 "i18n:push": "npx i18ntool push -c i18n.config.json",
30 "i18n:pull": "npx i18ntool pull -c i18n.config.json",
31 "i18n:merge": "npx i18ntool merge -c i18n.config.json",
32 "i18n:token": "npx i18ntool config token",
f6b5b4d7
TL
33 "test": "jest --watch",
34 "test:ci": "JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter",
e306af50
TL
35 "e2e": "start-test 4200 'cypress open'",
36 "e2e:ci": "start-test 4200 'cypress run -b chrome --headless'",
11fdf7f2 37 "lint:tslint": "ng lint",
e306af50 38 "lint:prettier": "prettier --list-different \"{src,cypress}/**/*.{ts,scss}\"",
9f95a23c 39 "lint:html": "htmllint src/app/**/*.html && html-linter --config html-linter.config.json",
f6b5b4d7 40 "lint:tsc": "tsc -p src/tsconfig.app.json --noEmit && tsc -p tsconfig.spec.json --noEmit && tsc -p cypress/tsconfig.json --noEmit",
11fdf7f2 41 "lint": "npm run lint:tsc && npm run lint:tslint && npm run lint:prettier && npm run lint:html",
e306af50 42 "fix:prettier": "prettier --write \"{src,cypress}/**/*.{ts,scss}\"",
11fdf7f2 43 "fix:tslint": "npm run lint:tslint -- --fix",
e306af50 44 "fixmod": "pretty-quick --pattern \"{src,cypress}/**/*.{ts,scss}\" --branch HEAD",
81eedcae 45 "fix": "npm run fix:tslint; npm run fix:prettier",
9f95a23c 46 "fix:audit": "npx npm-force-resolutions",
81eedcae
TL
47 "compodoc": "compodoc",
48 "doc-build": "compodoc -p src/tsconfig.app.json",
49 "doc-serve": "compodoc --port 8444 -s src/tsconfig.app.json"
11fdf7f2
TL
50 },
51 "private": true,
52 "jest": {
53 "preset": "jest-preset-angular",
54 "setupFilesAfterEnv": [
55 "<rootDir>/src/setupJest.ts"
56 ],
57 "transformIgnorePatterns": [
9f95a23c 58 "node_modules/(?!@ngrx|ngx-bootstrap|@progress|simplebar)"
11fdf7f2
TL
59 ],
60 "transform": {
9f95a23c
TL
61 "^.+\\.(ts|html)$": "ts-jest",
62 "^.+\\.(js)$": "babel-jest"
11fdf7f2
TL
63 },
64 "setupFiles": [
65 "jest-canvas-mock"
66 ],
67 "coverageReporters": [
68 "cobertura",
69 "html"
70 ],
71 "modulePathIgnorePatterns": [
72 "<rootDir>/coverage/"
73 ],
74 "testMatch": [
75 "**/*.spec.ts"
76 ],
77 "testURL": "http://localhost/"
78 },
79 "dependencies": {
9f95a23c
TL
80 "@angular/animations": "8.2.14",
81 "@angular/common": "8.2.14",
82 "@angular/compiler": "8.2.14",
83 "@angular/core": "8.2.14",
84 "@angular/forms": "8.2.14",
85 "@angular/platform-browser": "8.2.14",
86 "@angular/platform-browser-dynamic": "8.2.14",
87 "@angular/router": "8.2.14",
88 "@auth0/angular-jwt": "2.1.1",
11fdf7f2 89 "@ngx-translate/i18n-polyfill": "1.0.0",
e306af50
TL
90 "@swimlane/ngx-datatable": "16.0.3",
91 "@types/file-saver": "^2.0.1",
9f95a23c
TL
92 "angular-tree-component": "8.5.6",
93 "async-mutex": "0.1.4",
e306af50 94 "bootstrap": "4.4.1",
9f95a23c 95 "chart.js": "2.8.0",
e306af50
TL
96 "detect-browser": "5.0.0",
97 "file-saver": "^2.0.2",
9f95a23c
TL
98 "fork-awesome": "1.1.7",
99 "lodash": "4.17.15",
11fdf7f2 100 "moment": "2.24.0",
e306af50 101 "ng-block-ui": "2.1.8",
9f95a23c 102 "ng-bootstrap-form-validation": "5.0.0",
e306af50 103 "ng-click-outside": "6.0.0",
9f95a23c 104 "ng2-charts": "2.3.0",
e306af50
TL
105 "ngx-bootstrap": "5.5.0",
106 "ngx-toastr": "11.3.3",
801d1391 107 "rxjs": "6.5.4",
e306af50
TL
108 "simplebar-angular": "2.1.0",
109 "swagger-ui-dist": "3.25.0",
110 "tslib": "1.11.1",
9f95a23c 111 "zone.js": "0.9.1"
11fdf7f2
TL
112 },
113 "devDependencies": {
e306af50
TL
114 "@angular-devkit/build-angular": "0.803.26",
115 "@angular/cli": "8.3.26",
9f95a23c
TL
116 "@angular/compiler-cli": "8.2.14",
117 "@angular/language-service": "8.2.14",
118 "@compodoc/compodoc": "1.1.11",
801d1391 119 "@types/jest": "25.1.4",
e306af50
TL
120 "@types/lodash": "4.14.149",
121 "@types/node": "12.12.34",
122 "@types/simplebar": "5.1.1",
123 "codelyzer": "5.2.2",
124 "cypress": "4.4.0",
11fdf7f2 125 "html-linter": "1.1.1",
9f95a23c 126 "htmllint-cli": "0.0.7",
f6b5b4d7 127 "jest": "25.5.4",
9f95a23c 128 "jest-canvas-mock": "2.2.0",
f6b5b4d7 129 "jest-preset-angular": "8.2.0",
801d1391
TL
130 "jest-silent-reporter": "0.2.1",
131 "ng-bullet": "1.0.3",
f6b5b4d7 132 "ng-mocks": "9.3.0",
9f95a23c
TL
133 "npm-force-resolutions": "0.0.3",
134 "npm-run-all": "4.1.5",
e306af50 135 "prettier": "2.0.2",
801d1391 136 "pretty-quick": "2.0.1",
e306af50
TL
137 "replace-in-file": "5.0.2",
138 "start-server-and-test": "1.11.0",
eafe8130 139 "transifex-i18ntool": "1.1.0",
e306af50
TL
140 "ts-node": "8.8.1",
141 "tslint": "6.1.0",
9f95a23c
TL
142 "typescript": "3.5.3"
143 },
144 "resolutions": {
9f95a23c
TL
145 "mem": "4.3.0",
146 "fsevents": "2.1.2"
11fdf7f2
TL
147 }
148}