mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix up more dev mode
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
bd3d05d049
commit
d0f60fdd76
13
nx.json
13
nx.json
@ -5,7 +5,7 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"cacheableOperations": [
|
"cacheableOperations": [
|
||||||
"build",
|
"build",
|
||||||
"prepare:dev",
|
"dev",
|
||||||
"prepare:lint"
|
"prepare:lint"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -25,6 +25,17 @@
|
|||||||
"dev": {
|
"dev": {
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"^dev"
|
"^dev"
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
"{workspaceRoot}/dist",
|
||||||
|
"{workspaceRoot}/static/build",
|
||||||
|
"{workspaceRoot}/binaries",
|
||||||
|
"{workspaceRoot}/build/webpack"
|
||||||
|
],
|
||||||
|
"inputs": [
|
||||||
|
"{workspaceRoot}/src/**/*.ts",
|
||||||
|
"{workspaceRoot}/src/**/*.tsx",
|
||||||
|
"{workspaceRoot}/index.ts"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
|
|||||||
@ -20,7 +20,9 @@
|
|||||||
"build-pre-dev-packages": "lerna run build --scope @k8slens/ensure-binaries --scope @k8slens/generate-tray-icons",
|
"build-pre-dev-packages": "lerna run build --scope @k8slens/ensure-binaries --scope @k8slens/generate-tray-icons",
|
||||||
"before-dev-actions": "cd packages/open-lens && rimraf static/build/ && npm run build:tray-icons && npm run download:binaries",
|
"before-dev-actions": "cd packages/open-lens && rimraf static/build/ && npm run build:tray-icons && npm run download:binaries",
|
||||||
"predev": "npm run build-pre-dev-packages && npm run before-dev-actions",
|
"predev": "npm run build-pre-dev-packages && npm run before-dev-actions",
|
||||||
"dev": "lerna watch -- lerna run dev --verbose --stream --since",
|
"predev-package": "echo package=$LERNA_PACKAGE_NAME files=$LERNA_FILE_CHANGES",
|
||||||
|
"dev-package": "lerna run dev --verbose --stream --ignore=open-lens --scope $LERNA_PACKAGE_NAME",
|
||||||
|
"dev:library": "lerna watch -- LERNA_PACKAGE_NAME=\\$LERNA_PACKAGE_NAME npm run dev-package",
|
||||||
"lint": "lerna run lint --stream",
|
"lint": "lerna run lint --stream",
|
||||||
"lint:fix": "lerna run lint:fix --stream",
|
"lint:fix": "lerna run lint:fix --stream",
|
||||||
"mkdocs:serve-local": "docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -it -p 8000:8000 -v ${PWD}:/docs mkdocs-serve-local:latest",
|
"mkdocs:serve-local": "docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -it -p 8000:8000 -v ${PWD}:/docs mkdocs-serve-local:latest",
|
||||||
|
|||||||
@ -97,23 +97,6 @@
|
|||||||
],
|
],
|
||||||
"runtime": "@side/jest-runtime"
|
"runtime": "@side/jest-runtime"
|
||||||
},
|
},
|
||||||
"nx": {
|
|
||||||
"targets": {
|
|
||||||
"build": {
|
|
||||||
"dependsOn": [
|
|
||||||
"^build"
|
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
"{workspaceRoot}/static/build/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"dev": {
|
|
||||||
"outputs": [
|
|
||||||
"{workspaceRoot}/static/build/"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astronautlabs/jsonpath": "^1.1.0",
|
"@astronautlabs/jsonpath": "^1.1.0",
|
||||||
"@hapi/call": "^9.0.1",
|
"@hapi/call": "^9.0.1",
|
||||||
|
|||||||
@ -11,8 +11,6 @@ const apiBaseServerAddressInjectable = getInjectable({
|
|||||||
instantiate: (di) => {
|
instantiate: (di) => {
|
||||||
const lensProxyPort = di.inject(lensProxyPortInjectable);
|
const lensProxyPort = di.inject(lensProxyPortInjectable);
|
||||||
|
|
||||||
console.log("hello");
|
|
||||||
|
|
||||||
return `https://127.0.0.1:${lensProxyPort.get()}`;
|
return `https://127.0.0.1:${lensProxyPort.get()}`;
|
||||||
},
|
},
|
||||||
injectionToken: apiBaseServerAddressInjectionToken,
|
injectionToken: apiBaseServerAddressInjectionToken,
|
||||||
|
|||||||
@ -59,28 +59,9 @@
|
|||||||
},
|
},
|
||||||
"nx": {
|
"nx": {
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
|
||||||
"dependsOn": [
|
|
||||||
"^build"
|
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
"{workspaceRoot}/binaries/",
|
|
||||||
"{workspaceRoot}/build/webpack/",
|
|
||||||
"{workspaceRoot}/static/build/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"dev": {
|
|
||||||
"outputs": [
|
|
||||||
"{workspaceRoot}/binaries/",
|
|
||||||
"{workspaceRoot}/static/build/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build:app": {
|
"build:app": {
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"build"
|
"build"
|
||||||
],
|
|
||||||
"outputs": [
|
|
||||||
"{workspaceRoot}/dist/"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"test:integration": {
|
"test:integration": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user