-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpackage.json
165 lines (165 loc) · 7.52 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "CodeFlare.app",
"version": "4.12.6",
"description": "",
"main": "dist/headless/codeflare.min.js",
"scripts": {
"release": "dotenv -e ~/.codeflare-release.env release-it -- -V",
"release:cask": "./Casks/bump.sh",
"watch:source": "tsc --build . --watch",
"compile": "npx tsc --build .",
"compile:clean": "tsc --build tsconfig.json --clean && npm run watch:clean",
"kill": "npm run kill:proxy; kill $(lsof -t -i:908${PORT_OFFSET-0}) > /dev/null 2> /dev/null || true",
"watch:clean": "rm -f dist/headless/codeflare*.js",
"_watch": "bash -c \"npm run watch:clean && npm run kill; export CSP_ALLOWED_HOSTS='http: https: data: filesystem: about: blob: ws: wss:'; kui-watch-webpack\"",
"watch:webpack": "bash -c \"npm run pty:nodejs && npm run _watch $WATCH_ARGS\"",
"watch:electron": "bash -c \"npm run pty:electron && TARGET=electron-renderer npm run _watch\"",
"watch": "bash -c \"npm run kill; npm run compile && concurrently -n ES6,WEBPACK --kill-others 'npm run watch:source' 'npm run watch:electron'\"",
"proxy": "export PORT=8081; export KUI_USE_HTTP=true; npm run pty:nodejs && npx kui-run-proxy",
"kill:proxy": "kill $(lsof -t -i:808${PORT_OFFSET-1}) > /dev/null 2> /dev/null || true",
"pty:rebuild": "kui-pty-rebuild",
"pty:electron": "npm run pty:rebuild electron",
"pty:nodejs": "npm run pty:rebuild node",
"prepare": "cross-env husky install",
"build:docker:cli": "npm run build:headless-maybe && docker build -f deploy/cli/Dockerfile -t ghcr.io/project-codeflare/codeflare-cli .",
"publish:docker:log-aggregator": "docker push ghcr.io/project-codeflare/codeflare-log-aggregator:${VERSION-latest}",
"build:docker:log-aggregator": "npm run build:headless-maybe && docker build -f deploy/log-aggregator/Dockerfile -t ${LOG_AGGREGATOR_IMAGE-ghcr.io/project-codeflare/codeflare-log-aggregator:${VERSION-latest}} .",
"publish:docker:self-test": "docker push ghcr.io/project-codeflare/codeflare-self-test:${VERSION-latest}",
"build:docker:self-test": "npm run build:headless-maybe && docker build -f deploy/self-test/Dockerfile -t ${SELF_TEST_IMAGE-ghcr.io/project-codeflare/codeflare-self-test:${VERSION-latest}} .",
"run:self-test": "./deploy/self-test/test-in-kind.sh",
"build:prescan": "npx kui-prescan",
"build:headless-maybe": "if [ ! -n \"$FAST\" ]; then npm run build:headless; fi",
"build:headless:once": "bash -c \"CLIENT_HOME=$PWD webpack-cli --mode=${MODE-production} --config node_modules/@kui-shell/webpack/headless-webpack.config.js\"",
"build:headless": "cross-env MODE=development npm run build:headless:once && cross-env CLIENT_HOME=$PWD npm run build:prescan && cross-env MODE=production npm run build:headless:once",
"docker:debug": "cross-env ENTRYPOINT=bash ./bin/codeflare -d",
"store-for-prod": "rm -rf store && cp -a node_modules/@guidebooks/store/dist/store .",
"build:electron:mac:amd64": "npm run store-for-prod && KUI_LAUNCHER=$PWD/bin/codeflare PLATFORM=mac ARCH=x64 kui-build-electron",
"build:electron:mac:arm64": "npm run store-for-prod && KUI_LAUNCHER=$PWD/bin/codeflare PLATFORM=mac ARCH=arm64 kui-build-electron",
"build:electron:osx:amd64": "npm run build:electron:mac:amd64",
"build:electron:osx:arm64": "npm run build:electron:mac:arm64",
"build:electron:macOS:X64": "npm run build:electron:mac:amd64",
"build:electron:macOS:ARM64": "npm run build:electron:mac:arm64",
"build:electron:linux:amd64": "npm run store-for-prod && KUI_LAUNCHER=$PWD/bin/codeflare PLATFORM=linux ARCH=x64 kui-build-electron",
"build:electron:linux:arm64": "npm run store-for-prod && KUI_LAUNCHER=$PWD/bin/codeflare PLATFORM=linux ARCH=arm64 kui-build-electron",
"build:electron:Linux:X64": "npm run build:electron:linux:amd64",
"build:electron:Linux:ARM64": "npm run build:electron:linux:armd64",
"build:electron:win32:amd64": "npm run store-for-prod && cross-env KUI_LAUNCHER=$PWD/bin/codeflare PLATFORM=win32 ARCH=x64 kui-build-electron",
"build:electron:Windows:X64": "npm run build:electron:win32:amd64",
"build:electron:all": "npm run store-for-prod && KUI_LAUNCHER=$PWD/bin/codeflare kui-build-electron",
"build": "npm run compile && webpack --mode production",
"postinstall": "cp plugins/plugin-codeflare-dashboard/hacks/node.js node_modules/yoga-wasm-web/dist/node.js && npm run compile",
"format": "prettier --write '**/*.{scss,css,html,js,json,md,ts,tsx}'",
"lint": "eslint . --ext '**/*.{js,ts,tsx}'",
"open": "./bin/codeflare hello",
"start": "WATCH_ARGS='-open' npm run watch",
"test": "cross-env RUNNING_KUI_TEST=true playwright test --workers 1"
},
"keywords": [],
"author": "@starpit",
"license": "Apache-2.0",
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"env": {
"browser": true,
"node": true
},
"rules": {
"@typescript-eslint/no-unused-vars": "error"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
]
},
"eslintIgnore": [
"mdist",
"dist",
"hacks",
".#*",
"*~"
],
"lint-staged": {
"**/*.{scss,css,html,js,json,md,ts,tsx}": [
"prettier --write",
"git add"
],
"**/*.{js,ts,tsx}": [
"eslint --fix",
"git add"
]
},
"prettier": {
"semi": false,
"printWidth": 120
},
"release-it": {
"hooks": {
"after:bump": [
"npm ci",
"rm -rf ./dist/electron",
"rm -rf ./dist/headless",
"npm run build:electron:all",
"VERSION=${version} npm run release:cask"
]
},
"npm": {
"publish": false
},
"github": {
"release": true,
"releaseName": "${version}",
"assets": [
"dist/electron/*.zip",
"dist/electron/*.bz2"
]
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md"
},
"@release-it/bumper": {
"out": [
"plugins/plugin-client-default/package.json"
]
}
}
},
"devDependencies": {
"@kui-shell/builder": "13.1.3-dev-20230425-144932",
"@kui-shell/proxy": "13.1.3-dev-20230425-144932",
"@kui-shell/react": "13.1.3-dev-20230425-144932",
"@kui-shell/webpack": "13.1.3-dev-20230425-144932",
"@playwright/test": "^1.32.3",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"concurrently": "^8.0.1",
"cross-env": "^7.0.3",
"electron": "^22.3.5",
"eslint": "^8.38.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.1",
"playwright": "^1.32.3",
"prettier": "^2.8.7",
"slash": "^3.0.0",
"typescript": "^5.0.4"
},
"dependencies": {
"node-pty": "0.11.0-beta27",
"@kui-shell/client": "file:./plugins/plugin-client-default",
"@kui-shell/core": "13.1.3-dev-20230425-144932",
"@kui-shell/plugin-bash-like": "13.1.3-dev-20230425-144932",
"@kui-shell/plugin-client-common": "13.1.3-dev-20230425-144932",
"@kui-shell/plugin-codeflare": "file:./plugins/plugin-codeflare",
"@kui-shell/plugin-codeflare-dashboard": "file:./plugins/plugin-codeflare-dashboard",
"@kui-shell/plugin-core-support": "13.1.3-dev-20230425-144932",
"@kui-shell/plugin-electron-components": "13.1.3-dev-20230425-144932",
"@kui-shell/plugin-kubectl": "13.1.3-dev-20230425-144932",
"@kui-shell/plugin-madwizard": "13.1.3-dev-20230425-144932",
"@kui-shell/plugin-patternfly4-themes": "13.1.3-dev-20230425-144932",
"@kui-shell/plugin-proxy-support": "13.1.3-dev-20230425-144932"
}
}