package.json 6.8 KB
Newer Older
1
{
2
  "name": "kubernetes-dashboard",
3
  "version": "2.0.0-alpha0",
4 5 6 7 8
  "repository": {
    "type": "git",
    "url": "https://github.com/kubernetes/dashboard.git"
  },
  "license": "Apache-2.0",
9 10
  "scripts": {
    "start": "concurrently \"npm run start:backend\" \"npm run start:frontend\"",
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=0.0.0.0",
    "start:frontend:https": "node aio/scripts/version.js && ng serve --progress=false --aot --proxy-config aio/https-proxy.conf.json --ssl --host=0.0.0.0",
14
    "start:backend": "gulp serve --kubeconfig $npm_package_config_kubeconfig",
15
    "start:backend:https": "gulp serve --kubeconfig $npm_package_config_kubeconfig --autoGenerateCerts true --defaultCertDir $npm_package_config_kubeconfig_dir",
16 17 18 19 20 21 22 23 24 25
    "start:prod": "npm run build && ./$npm_package_config_dashboard_binary_path --kubeconfig $npm_package_config_kubeconfig",
    "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",
    "docker:build:cross": "npm run build:cross && gulp docker-image:release:cross",
    "docker:build:head": "npm run build && gulp docker-image:head",
    "docker:build:head:cross": "npm run build:cross && gulp docker-image:head:cross",
    "docker:push:head:cross": "npm run docker:build:head:cross && gulp push-to-docker:head:cross",
26
    "docker:push:release:cross": "npm run docker:build:release:cross && gulp push-to-gcr:head:cross",
27
    "test": "npm run test:frontend && npm run test:backend && npm run test:e2e",
28 29 30
    "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",
31 32 33 34
    "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",
J
Jeffrey Sica 已提交
35 36
    "cluster:start": "./aio/scripts/start-cluster.sh",
    "cluster:stop": "./aio/scripts/stop-cluster.sh",
M
Marcin Maciaszczyk 已提交
37 38 39 40 41 42
    "check": "concurrently \"npm run check:backend\" \"npm run check:frontend\" \"npm run check:license\"",
    "check:backend": "./aio/scripts/lint-backend.sh",
    "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",
M
Marcin Maciaszczyk 已提交
44
    "fix": "concurrently \"npm run fix:backend\" \"npm run fix:frontend\" \"npm run fix:license\"",
45
    "fix:backend": "golangci-lint run -c .golangci.yml --fix src/app/backend/...",
M
Marcin Maciaszczyk 已提交
46 47
    "fix:frontend": "concurrently \"npm run fix:frontend:ts\" \"npm run fix:frontend:scss\" \"npm run fix:frontend:html\"",
    "fix:frontend:ts": "gts fix",
48
    "fix:frontend:scss": "scssfmt -r 'src/**/*.scss'",
M
Marcin Maciaszczyk 已提交
49 50 51
    "fix:frontend:html": "./aio/scripts/format.sh --html",
    "fix:license": "gulp update-license-headers",
    "clean": "rm -rf .go_workspace .tmp coverage dist npm-debug.log",
52
    "postversion": "node aio/scripts/version.js",
53
    "postinstall": "node aio/scripts/version.js && ./node_modules/protractor/bin/webdriver-manager update --gecko=false"
54
  },
55 56
  "husky": {
    "hooks": {
57
      "pre-commit": "lint-staged"
58 59
    }
  },
60 61 62 63
  "lint-staged": {
    "src/**/*.ts": [
      "gts fix",
      "git add"
64 65 66 67
    ],
    "src/**/*.scss": [
      "scssfmt",
      "git add"
68 69
    ]
  },
70
  "dependencies": {
71
    "@angular/animations": "7.1.4",
72
    "@angular/cdk": "7.3.5",
73 74 75
    "@angular/common": "7.1.4",
    "@angular/compiler": "7.1.4",
    "@angular/core": "7.1.4",
76
    "@angular/flex-layout": "7.0.0-beta.24",
77 78
    "@angular/forms": "7.1.4",
    "@angular/http": "7.1.4",
79
    "@angular/material": "7.3.5",
80 81 82 83 84
    "@angular/platform-browser": "7.1.4",
    "@angular/platform-browser-dynamic": "7.1.4",
    "@angular/router": "7.1.4",
    "@types/file-saver": "2.0.0",
    "@types/nvd3": "1.8.39",
85
    "@uirouter/angular": "2.0.3",
86
    "@uirouter/core": "5.0.22",
87
    "@uirouter/rx": "0.5.0",
88
    "ace-builds": "1.4.3",
89
    "core-js": "2.6.5",
J
Jeffrey Sica 已提交
90
    "d3": "3.5.17",
91
    "file-saver": "2.0.1",
92
    "hammerjs": "2.0.8",
93
    "js-yaml": "3.13.0",
94
    "material-design-icons": "3.0.1",
95
    "ng2-ace-editor": "0.3.9",
96 97 98 99 100
    "ngx-cookie-service": "2.0.0",
    "ngx-filter-pipe": "2.1.2",
    "normalize.css": "8.0.0",
    "nvd3": "1.8.6",
    "roboto-fontface": "0.10.0",
101 102
    "rxjs": "6.3.3",
    "rxjs-compat": "6.3.3",
103 104
    "sockjs-client": "1.3.0",
    "web-animations-js": "2.3.1",
105
    "xterm": "3.12.0",
106
    "zone.js": "0.8.26"
107
  },
108
  "devDependencies": {
109
    "@angular-devkit/build-angular": "0.13.6",
110
    "@angular/cli": "7.3.6",
111 112
    "@angular/compiler-cli": "7.1.4",
    "@angular/language-service": "7.1.4",
113
    "@types/jasmine": "3.3.11",
114 115
    "@types/jasminewd2": "2.0.6",
    "@types/js-yaml": "3.11.2",
116
    "@types/lodash": "4.14.122",
117
    "@types/node": "11.11.4",
118 119 120 121 122 123
    "babel": "6.23.0",
    "babel-preset-env": "1.7.0",
    "babel-register": "6.26.0",
    "clang-format": "1.2.4",
    "codelyzer": "4.5.0",
    "concurrently": "4.1.0",
124
    "del": "4.0.0",
125
    "git-describe": "4.0.4",
126 127 128 129 130 131 132 133 134 135
    "glob-run": "0.1.6",
    "gts": "0.9.0",
    "gulp": "4.0.0",
    "gulp-filter": "5.1.0",
    "gulp-header-license": "1.0.9",
    "gulp-license-check": "1.2.1",
    "gulp-util": "3.0.8",
    "husky": "1.2.0",
    "jasmine-core": "3.3.0",
    "jasmine-spec-reporter": "4.2.1",
136
    "js-beautify": "1.9.0",
137
    "karma": "4.0.1",
138 139
    "karma-chrome-launcher": "2.2.0",
    "karma-cli": "2.0.0",
140
    "karma-coverage-istanbul-reporter": "2.0.5",
141 142 143
    "karma-firefox-launcher": "1.1.0",
    "karma-jasmine": "2.0.1",
    "karma-jasmine-html-reporter": "1.4.0",
144
    "lint-staged": "8.1.5",
145
    "lite-server": "2.4.0",
146 147 148 149 150 151 152 153
    "lodash": "4.17.11",
    "minimatch": "3.0.4",
    "node-sass": "4.10.0",
    "protractor": "5.4.1",
    "q": "1.5.1",
    "raw-loader": "1.0.0",
    "sass-lint": "1.12.1",
    "sass-loader": "7.1.0",
154
    "scssfmt": "1.0.7",
155
    "semver": "5.4.1",
156
    "source-map-explorer": "1.8.0",
157
    "through2": "3.0.1",
158
    "ts-node": "8.0.3",
159 160
    "tslint": "5.12.0",
    "typescript": "3.1.6",
161
    "webpack-dev-server": "3.2.1"
162 163
  },
  "engines": {
164 165
    "node": ">=8.0.0",
    "npm": ">=5.0.0"
166 167
  }
}