package.json 6.4 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": "ng serve --aot --progress=false --proxy-config aio/proxy.conf.json --host=0.0.0.0",
    "start:frontend:https": "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 26
    "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",
    "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 34 35
    "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",
    "cluster": "./aio/scripts/start-cluster.sh",
    "check": "npm run check:static && npm run test && npm run test:e2e",
36
    "check:static": "npm run check:license && npm run lint && npm run check:format",
37 38 39 40 41 42 43
    "check:license": "gulp check-license-headers",
    "check:format": "concurrently \"npm run check:format:code\" \"npm run check:format:styles\" \"npm run check:format:html\"",
    "check:format:code": "./aio/scripts/format.sh --code --check",
    "check:format:styles": "./aio/scripts/format.sh --styles --check",
    "check:format:html": "./aio/scripts/format.sh --html --check",
    "lint": "npm run lint:frontend && npm run lint:backend",
    "lint:frontend": "npm run lint:frontend:code && npm run lint:frontend:styles",
44
    "lint:frontend:code": "tslint -c tslint.json --project . -t codeFrame --fix",
45 46 47 48 49 50 51
    "lint:frontend:styles": "./node_modules/sass-lint/bin/sass-lint.js -c .sass-lint.yml 'src/app/frontend/**/*.scss' -v -q",
    "lint:backend": "./aio/scripts/lint-backend.sh",
    "format": "npm run format:headers && concurrently \"npm run format:frontend\" \"npm run format:backend\"",
    "format:headers": "gulp update-license-headers",
    "format:frontend": "./aio/scripts/format.sh --code --styles --html",
    "format:backend": "goimports -w src/app/backend",
    "postinstall": "webdriver-manager update && go get golang.org/x/tools/cmd/goimports",
52 53
    "precommit": "npm run check:static",
    "clean": "rm -rf .go_workspace .tmp coverage dist npm-debug.log"
54
  },
55
  "dependencies": {
56 57 58 59 60 61 62 63 64 65 66 67
    "@angular/animations": "6.0.7",
    "@angular/cdk": "6.3.3",
    "@angular/common": "6.0.7",
    "@angular/compiler": "6.0.7",
    "@angular/core": "6.0.7",
    "@angular/flex-layout": "6.0.0-beta.16",
    "@angular/forms": "6.0.7",
    "@angular/http": "6.0.7",
    "@angular/material": "6.3.3",
    "@angular/platform-browser": "6.0.7",
    "@angular/platform-browser-dynamic": "6.0.7",
    "@angular/router": "6.0.7",
68
    "@types/file-saver": "^1.3.0",
69
    "@types/nvd3": "^1.8.38",
70 71 72
    "@uirouter/angular": "2.0.0",
    "@uirouter/core": "5.0.19",
    "@uirouter/rx": "0.5.0",
73
    "ace-builds": "^1.3.3",
74
    "core-js": "^2.5.3",
75
    "d3": "3.5.17",
76
    "file-saver": "^1.3.8",
77
    "hammerjs": "^2.0.8",
78
    "js-yaml": "^3.11.0",
79
    "material-design-icons": "^3.0.1",
80
    "ng2-ace-editor": "^0.3.8",
81 82
    "ngx-cookie-service": "^1.0.10",
    "ngx-filter-pipe": "^2.1.0",
83
    "normalize.css": "^8.0.0",
84
    "nvd3": "^1.8.6",
85
    "roboto-fontface": "^0.9.0",
86 87
    "rxjs": "6.2.1",
    "rxjs-compat": "6.2.1",
88
    "sockjs-client": "^1.1.5",
89
    "web-animations-js": "^2.3.1",
90
    "xterm": "^3.5.1",
91
    "zone.js": "^0.8.26"
92
  },
93
  "devDependencies": {
94 95 96
    "@angular/cli": "6.0.7",
    "@angular/compiler-cli": "6.0.7",
    "@angular/language-service": "6.0.7",
97
    "@types/jasmine": "^2.8.6",
98
    "@types/jasminewd2": "~2.0.3",
99
    "@types/js-yaml": "^3.11.0",
100
    "@types/lodash": "^4.14.113",
101
    "@types/node": "^9.6.0",
102 103 104 105
    "babel": "^6.23.0",
    "babel-preset-env": "^1.6.1",
    "babel-register": "^6.26.0",
    "clang-format": "^1.2.2",
106
    "codelyzer": "~4.2.1",
107 108 109
    "concurrently": "~3.5.1",
    "del": "^3.0.0",
    "glob-run": "^0.1.6",
110
    "google-closure-compiler": "^20180204.0.0",
111 112 113 114 115
    "gulp": "^3.9.1",
    "gulp-filter": "^5.1.0",
    "gulp-header-license": "^1.0.9",
    "gulp-license-check": "^1.2.1",
    "gulp-util": "^3.0.8",
116
    "husky": "^0.14.3",
117
    "jasmine-core": "~3.1.0",
118 119
    "jasmine-spec-reporter": "~4.2.1",
    "js-beautify": "^1.7.5",
120
    "karma": "~2.0.4",
121
    "karma-chrome-launcher": "~2.2.0",
122
    "karma-cli": "~1.0.1",
123
    "karma-coverage-istanbul-reporter": "^2.0.1",
124
    "karma-firefox-launcher": "^1.1.0",
125 126 127
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^1.2.0",
    "lite-server": "2.4.0",
128 129
    "lodash": "^4.17.4",
    "node-sass": "^4.7.2",
130
    "protractor": "~5.3.0",
131 132
    "q": "latest",
    "raw-loader": "^0.5.1",
133
    "replace": "^0.3.0",
134
    "sass-lint": "^1.12.1",
135
    "sass-loader": "^6.0.7",
A
Austin Adams 已提交
136
    "scssfmt": "1.0.4",
137 138 139
    "semver": "^5.4.1",
    "source-map-explorer": "~1.5.0",
    "through2": "^2.0.3",
140
    "ts-node": "~5.0.1",
141
    "tslint": "~5.9.1",
142 143
    "typescript": "2.7.2",
    "@angular-devkit/build-angular": "~0.6.6"
144 145
  },
  "engines": {
146 147
    "node": ">=8.0.0",
    "npm": ">=5.0.0"
148 149
  }
}