package.json 7.7 KB
Newer Older
1
{
2
  "name": "kubernetes-dashboard",
3
  "version": "2.0.0-beta1",
4 5 6 7 8
  "repository": {
    "type": "git",
    "url": "https://github.com/kubernetes/dashboard.git"
  },
  "license": "Apache-2.0",
9
  "scripts": {
10
    "start": "concurrently \"npm run start:backend\" \"npm run start:frontend --kubernetes-dashboard:bind_address=$npm_package_config_bind_address\"",
11
    "start:https": "concurrently \"npm run start:backend:https\" \"npm run start:frontend:https\"",
12 13
    "start:frontend": "npm run postversion && ng serve --aot --progress=false --proxy-config aio/proxy.conf.json --host=$npm_package_config_bind_address",
    "start:frontend:https": "node aio/scripts/version.js && ng serve --progress=false --aot --proxy-config aio/https-proxy.conf.json --ssl --host=$npm_package_config_bind_address",
14
    "start:backend": "gulp serve --kubeconfig $npm_package_config_kubeconfig",
S
Sebastian Florek 已提交
15 16
    "start:backend:https": "gulp serve --kubeconfig $npm_package_config_kubeconfig --autoGenerateCerts true",
    "start:prod": "npm run build && ./$npm_package_config_dashboard_binary_path --kubeconfig $npm_package_config_kubeconfig --locale-config $npm_package_config_dashboard_locale_config --auto-generate-certificates --bind-address $npm_package_config_bind_address",
17 18 19 20 21
    "build": "./aio/scripts/build.sh",
    "build:cross": "./aio/scripts/build.sh -c",
    "build:frontend": "npm run clean && ng build --aot --prod --outputPath=$npm_package_config_frontend_build_dir",
    "build:backend": "npm run clean && gulp backend:prod",
    "build:backend:cross": "npm run clean && gulp backend:prod:cross",
S
Sebastian Florek 已提交
22 23 24 25
    "docker:build": "npm run clean && npm run build:cross && gulp docker-image:release:cross",
    "docker:build:head": "npm run clean && npm run build:cross && gulp docker-image:head:cross",
    "docker:push": "npm run docker:build && gulp push-to-docker:release:cross",
    "docker:push:head": "npm run docker:build:head && gulp push-to-docker:head:cross",
26
    "test": "npm run test:frontend && npm run test:backend && npm run test:e2e",
27 28 29
    "test:frontend": "ng test --karma-config ./aio/karma.conf.js --watch=false",
    "test:frontend:coverage": "ng test --karma-config ./aio/karma.conf.js --watch=false --code-coverage",
    "test:frontend:watch": "ng test --karma-config ./aio/karma.conf.js",
30 31 32 33
    "test:backend": "go test github.com/kubernetes/dashboard/src/app/backend/...",
    "test:backend:coverage": "./aio/scripts/coverage-backend.sh",
    "test:coverage": "npm run test:frontend:coverage && npm run test:backend:coverage",
    "test:e2e": "ng e2e",
S
Sebastian Florek 已提交
34
    "pretest:e2e": "webdriver-manager update --standalone false --versions.chrome 2.45 --gecko false",
J
Jeffrey Sica 已提交
35 36
    "cluster:start": "./aio/scripts/start-cluster.sh",
    "cluster:stop": "./aio/scripts/stop-cluster.sh",
S
Shu Muto 已提交
37
    "check": "concurrently \"npm run check:backend\" \"npm run check:frontend\" \"npm run check:license\" \"npm run check:i18n\"",
S
Shu Muto 已提交
38
    "check:backend": "golangci-lint run -c .golangci.yml src/app/backend/...",
M
Marcin Maciaszczyk 已提交
39 40 41 42
    "check:frontend": "concurrently \"npm run check:frontend:ts\" \"npm run check:frontend:scss\" \"npm run check:frontend:html\"",
    "check:frontend:ts": "gts check",
    "check:frontend:scss": "./aio/scripts/format.sh --styles --check && ./node_modules/sass-lint/bin/sass-lint.js -c .sass-lint.yml 'src/app/frontend/**/*.scss' -v -q",
    "check:frontend:html": "./aio/scripts/format.sh --html --check",
43
    "check:license": "gulp check-license-headers",
44
    "check:i18n": "ng xi18n --outFile ../i18n/messages.xlf && xliffmerge",
S
Shu Muto 已提交
45
    "fix": "concurrently \"npm run fix:backend\" \"npm run fix:frontend\" \"npm run fix:license\" \"npm run fix:i18n\"",
46
    "fix:backend": "golangci-lint run -c .golangci.yml --fix src/app/backend/...",
M
Marcin Maciaszczyk 已提交
47 48
    "fix:frontend": "concurrently \"npm run fix:frontend:ts\" \"npm run fix:frontend:scss\" \"npm run fix:frontend:html\"",
    "fix:frontend:ts": "gts fix",
49
    "fix:frontend:scss": "scssfmt -r 'src/**/*.scss'",
M
Marcin Maciaszczyk 已提交
50 51
    "fix:frontend:html": "./aio/scripts/format.sh --html",
    "fix:license": "gulp update-license-headers",
52
    "fix:i18n": "ng xi18n --outFile ../i18n/messages.xlf && xliffmerge",
M
Marcin Maciaszczyk 已提交
53
    "clean": "rm -rf .go_workspace .tmp coverage dist npm-debug.log",
54
    "postversion": "node aio/scripts/version.js",
55
    "postinstall": "node aio/scripts/version.js && ./node_modules/protractor/bin/webdriver-manager update --gecko=false --versions.standalone=3.141.59 && curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1"
56
  },
57 58
  "husky": {
    "hooks": {
59
      "pre-commit": "lint-staged"
60 61
    }
  },
62 63 64 65
  "lint-staged": {
    "src/**/*.ts": [
      "gts fix",
      "git add"
66 67 68 69
    ],
    "src/**/*.scss": [
      "scssfmt",
      "git add"
70 71
    ],
    "src/**/*.go": [
72
      "golangci-lint run -c .golangci.yml --fix",
73
      "git add"
S
Shu Muto 已提交
74 75
    ],
    "src/**/*.html": [
S
Sebastian Florek 已提交
76
      "./aio/scripts/pre-commit-i18n.sh",
S
Shu Muto 已提交
77
      "git add"
78 79
    ]
  },
80 81 82 83 84 85 86 87 88 89
  "xliffmergeOptions": {
    "srcDir": "i18n",
    "genDir": "i18n",
    "defaultLanguage": "en",
    "languages": [
      "fr",
      "ja"
    ],
    "beautifyOutput": true
  },
90
  "dependencies": {
S
Sebastian Florek 已提交
91
    "@angular/animations": "8.0.3",
92
    "@angular/cdk": "8.0.2",
S
Sebastian Florek 已提交
93 94 95
    "@angular/common": "8.0.3",
    "@angular/compiler": "8.0.3",
    "@angular/core": "8.0.3",
96
    "@angular/flex-layout": "8.0.0-beta.26",
S
Sebastian Florek 已提交
97 98
    "@angular/forms": "8.0.3",
    "@angular/http": "7.2.15",
99
    "@angular/material": "8.0.2",
S
Sebastian Florek 已提交
100 101 102
    "@angular/platform-browser": "8.0.3",
    "@angular/platform-browser-dynamic": "8.0.3",
    "@angular/router": "8.0.3",
103 104
    "@types/c3": "0.7.0",
    "@types/d3": "5.7.2",
105
    "@types/d3-scale": "2.1.1",
106
    "@types/file-saver": "2.0.1",
S
Sebastian Florek 已提交
107
    "ace-builds": "1.4.5",
108
    "c3": "0.7.2",
S
Sebastian Florek 已提交
109 110
    "core-js": "3.1.4",
    "d3": "5.9.7",
111
    "file-saver": "2.0.2",
112
    "hammerjs": "2.0.8",
113
    "js-yaml": "3.13.1",
114
    "material-design-icons": "3.0.1",
115
    "ng2-ace-editor": "0.3.9",
116
    "ngx-cookie-service": "2.2.0",
117
    "ngx-filter-pipe": "2.1.2",
S
Sebastian Florek 已提交
118
    "normalize.css": "8.0.1",
119
    "roboto-fontface": "0.10.0",
120 121
    "rxjs": "6.5.2",
    "rxjs-compat": "6.5.2",
122
    "sockjs-client": "1.3.0",
S
Sebastian Florek 已提交
123
    "web-animations-js": "2.3.2",
J
Jeffrey Sica 已提交
124
    "xterm": "3.14.4",
125
    "zone.js": "0.9.1"
126
  },
127
  "devDependencies": {
128
    "@angular-devkit/build-angular": "0.800.6",
129
    "@angular/cli": "8.1.0",
S
Sebastian Florek 已提交
130 131
    "@angular/compiler-cli": "8.0.3",
    "@angular/language-service": "8.0.3",
132
    "@types/jasmine": "3.3.13",
133
    "@types/jasminewd2": "2.0.6",
134
    "@types/js-yaml": "3.12.1",
135
    "@types/node": "12.6.2",
136
    "@types/lodash": "4.14.136",
137 138 139 140 141
    "babel": "6.23.0",
    "babel-preset-env": "1.7.0",
    "babel-register": "6.26.0",
    "clang-format": "1.2.4",
    "codelyzer": "4.5.0",
142
    "concurrently": "4.1.1",
143
    "del": "5.0.0",
144
    "git-describe": "4.0.4",
145
    "gts": "0.9.0",
146
    "gulp": "4.0.2",
147
    "gulp-filter": "6.0.0",
148 149
    "gulp-header-license": "1.0.9",
    "gulp-license-check": "1.2.1",
150
    "husky": "3.0.0",
151
    "jasmine-core": "3.4.0",
152
    "jasmine-spec-reporter": "4.2.1",
153
    "js-beautify": "1.10.0",
154
    "karma": "4.1.0",
155 156
    "karma-chrome-launcher": "2.2.0",
    "karma-cli": "2.0.0",
157
    "karma-coverage-istanbul-reporter": "2.0.5",
158 159
    "karma-firefox-launcher": "1.1.0",
    "karma-jasmine": "2.0.1",
160
    "karma-jasmine-html-reporter": "1.4.2",
161
    "lint-staged": "9.1.0",
162
    "lite-server": "2.4.0",
163
    "lodash": "4.17.12",
164
    "minimatch": "3.0.4",
S
Sebastian Florek 已提交
165
    "minimist": "1.2.0",
166
    "ngx-i18nsupport": "^0.17.1",
167
    "node-gyp": "5.0.2",
168
    "node-sass": "4.12.0",
169 170 171
    "protractor": "5.4.1",
    "q": "1.5.1",
    "raw-loader": "1.0.0",
172
    "sass-lint": "1.13.1",
173
    "sass-loader": "7.1.0",
174
    "scssfmt": "1.0.7",
175
    "semver": "6.2.0",
176
    "source-map-explorer": "2.0.1",
177
    "tar": "4.4.8",
178
    "through2": "3.0.1",
179
    "ts-node": "8.3.0",
180 181
    "tslint": "5.16.0",
    "typescript": "3.4.5",
182 183
    "webdriver-manager": "12.1.4",
    "webpack-dev-server": "3.5.1"
184 185
  },
  "engines": {
186
    "node": ">=10.9.0",
187
    "npm": ">=6.0.0"
188 189
  }
}