]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/package.json
import 15.2.0 Octopus source
[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",
11fdf7f2
TL
33 "test": "npm run test:config && jest --watch",
34 "test:ci": "npm run test:config && JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter",
35 "test:config": "if [ ! -e 'src/unit-test-configuration.ts' ]; then cp 'src/unit-test-configuration.ts.sample' 'src/unit-test-configuration.ts'; fi",
eafe8130 36 "e2e": "npm run env_build && npm run e2e:update && ng e2e --webdriverUpdate=false",
9f95a23c 37 "e2e:ci": "npm run env_build && npm run e2e:update && ng e2e --dev-server-target --webdriverUpdate=false",
eafe8130 38 "e2e:update": "npx webdriver-manager update --gecko=false --versions.chrome=$(google-chrome --version | awk '{ print $3 }')",
11fdf7f2
TL
39 "lint:tslint": "ng lint",
40 "lint:prettier": "prettier --list-different \"{src,e2e}/**/*.{ts,scss}\"",
9f95a23c
TL
41 "lint:html": "htmllint src/app/**/*.html && html-linter --config html-linter.config.json",
42 "lint:tsc": "npm run test:config && tsc -p src/tsconfig.app.json --noEmit && tsc -p tsconfig.spec.json --noEmit && tsc -p e2e/tsconfig.e2e.json --noEmit",
11fdf7f2
TL
43 "lint": "npm run lint:tsc && npm run lint:tslint && npm run lint:prettier && npm run lint:html",
44 "fix:prettier": "prettier --write \"{src,e2e}/**/*.{ts,scss}\"",
45 "fix:tslint": "npm run lint:tslint -- --fix",
9f95a23c 46 "fixmod": "pretty-quick --pattern \"{src,e2e}/**/*.{ts,scss}\" --branch HEAD",
81eedcae 47 "fix": "npm run fix:tslint; npm run fix:prettier",
9f95a23c 48 "fix:audit": "npx npm-force-resolutions",
81eedcae
TL
49 "compodoc": "compodoc",
50 "doc-build": "compodoc -p src/tsconfig.app.json",
51 "doc-serve": "compodoc --port 8444 -s src/tsconfig.app.json"
11fdf7f2
TL
52 },
53 "private": true,
54 "jest": {
55 "preset": "jest-preset-angular",
56 "setupFilesAfterEnv": [
57 "<rootDir>/src/setupJest.ts"
58 ],
59 "transformIgnorePatterns": [
9f95a23c 60 "node_modules/(?!@ngrx|ngx-bootstrap|@progress|simplebar)"
11fdf7f2
TL
61 ],
62 "transform": {
9f95a23c
TL
63 "^.+\\.(ts|html)$": "ts-jest",
64 "^.+\\.(js)$": "babel-jest"
11fdf7f2
TL
65 },
66 "setupFiles": [
67 "jest-canvas-mock"
68 ],
69 "coverageReporters": [
70 "cobertura",
71 "html"
72 ],
73 "modulePathIgnorePatterns": [
74 "<rootDir>/coverage/"
75 ],
76 "testMatch": [
77 "**/*.spec.ts"
78 ],
79 "testURL": "http://localhost/"
80 },
81 "dependencies": {
9f95a23c
TL
82 "@angular/animations": "8.2.14",
83 "@angular/common": "8.2.14",
84 "@angular/compiler": "8.2.14",
85 "@angular/core": "8.2.14",
86 "@angular/forms": "8.2.14",
87 "@angular/platform-browser": "8.2.14",
88 "@angular/platform-browser-dynamic": "8.2.14",
89 "@angular/router": "8.2.14",
90 "@auth0/angular-jwt": "2.1.1",
11fdf7f2 91 "@ngx-translate/i18n-polyfill": "1.0.0",
9f95a23c
TL
92 "@swimlane/ngx-datatable": "15.0.2",
93 "angular-tree-component": "8.5.6",
94 "async-mutex": "0.1.4",
95 "bootstrap": "4.3.1",
96 "chart.js": "2.8.0",
97 "detect-browser": "4.7.0",
98 "fork-awesome": "1.1.7",
99 "lodash": "4.17.15",
11fdf7f2 100 "moment": "2.24.0",
9f95a23c
TL
101 "ng-block-ui": "2.1.7",
102 "ng-bootstrap-form-validation": "5.0.0",
103 "ng-click-outside": "5.3.0",
104 "ng2-charts": "2.3.0",
105 "ngx-bootstrap": "5.1.2",
106 "ngx-toastr": "11.0.0",
107 "rxjs": "6.5.3",
108 "simplebar-angular": "2.0.1",
109 "swagger-ui-dist": "3.23.11",
110 "tslib": "1.10.0",
111 "zone.js": "0.9.1"
11fdf7f2
TL
112 },
113 "devDependencies": {
9f95a23c
TL
114 "@angular-devkit/build-angular": "0.803.23",
115 "@angular/cli": "8.3.23",
116 "@angular/compiler-cli": "8.2.14",
117 "@angular/language-service": "8.2.14",
118 "@compodoc/compodoc": "1.1.11",
119 "@types/jasmine": "3.4.0",
11fdf7f2 120 "@types/jasminewd2": "2.0.6",
9f95a23c
TL
121 "@types/jest": "24.0.23",
122 "@types/lodash": "4.14.141",
123 "@types/node": "12.7.8",
124 "@types/simplebar": "2.4.2",
125 "codelyzer": "5.1.2",
11fdf7f2 126 "html-linter": "1.1.1",
9f95a23c
TL
127 "htmllint-cli": "0.0.7",
128 "jasmine-core": "3.5.0",
11fdf7f2 129 "jasmine-spec-reporter": "4.2.1",
9f95a23c
TL
130 "jest": "24.9.0",
131 "jest-canvas-mock": "2.2.0",
132 "jest-preset-angular": "8.0.0",
11fdf7f2 133 "jest-silent-reporter": "0.1.2",
9f95a23c
TL
134 "ng-bullet": "^1.0.3",
135 "ng-mocks": "^9.0.0",
136 "npm-force-resolutions": "0.0.3",
137 "npm-run-all": "4.1.5",
138 "prettier": "1.18.2",
139 "pretty-quick": "1.11.1",
11fdf7f2 140 "protractor": "5.4.2",
9f95a23c
TL
141 "protractor-fail-fast": "3.1.0",
142 "protractor-screenshoter-plugin": "0.10.3",
143 "replace-in-file": "4.1.3",
eafe8130 144 "transifex-i18ntool": "1.1.0",
9f95a23c
TL
145 "ts-node": "8.4.1",
146 "tslint": "5.20.0",
147 "typescript": "3.5.3"
148 },
149 "resolutions": {
150 "lodash": "4.17.15",
151 "mem": "4.3.0",
152 "fsevents": "2.1.2"
11fdf7f2
TL
153 }
154}