1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Only rebuild the package that changes

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-03-30 17:12:01 -04:00
parent d3f28c7b5f
commit faf807f435
20 changed files with 23 additions and 5 deletions

View File

@ -17,13 +17,12 @@
"build:docs": "lerna run --stream build:docs",
"clean": "lerna run clean --stream",
"clean:node_modules": "lerna clean -y && rimraf node_modules",
"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",
"predev": "npm run build-pre-dev-packages && npm run before-dev-actions",
"predev-package": "echo package=$LERNA_PACKAGE_NAME files=$LERNA_FILE_CHANGES",
"dev-package": "lerna run dev --verbose --stream --scope $LERNA_PACKAGE_NAME",
"predev:library": "lerna run dev --stream",
"dev:library": "lerna watch -- LERNA_PACKAGE_NAME=\\$LERNA_PACKAGE_NAME npm run dev-package",
"dev-package": "lerna run watch-dev --verbose --stream --scope $LERNA_PACKAGE_NAME",
"predev:library": "lerna run dev --stream && npm run before-dev-actions",
"dev:library-impl": "lerna watch -- LERNA_PACKAGE_NAME=\\$LERNA_PACKAGE_NAME npm run dev-package",
"dev:library": "npm run dev:library-impl",
"lint": "lerna run lint --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",

View File

@ -20,6 +20,7 @@
"build": "npm run generate-types && swc ./src/index.ts -d ./dist",
"prepare": "npm run build",
"dev": "npm run build",
"watch-dev": "npm run dev",
"prepare:test": "npm run build"
},
"devDependencies": {

View File

@ -49,6 +49,7 @@
"build": "cross-env NODE_ENV=production webpack --config webpack/library-bundle.ts --progress",
"clean": "rimraf dist static/build",
"dev": "cross-env NODE_ENV=development webpack --config webpack/library-bundle.ts --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --testPathIgnorePatterns integration",
"test:watch": "func() { jest ${1} --watch --testPathIgnorePatterns integration; }; func",
"lint": "PROD=true eslint --ext js,ts,tsx --max-warnings=0 .",

View File

@ -10,6 +10,7 @@
"postbuild": "run-script-os",
"postbuild:nix": "chmod u+x ./dist/index.js",
"dev": "npm run build",
"watch-dev": "npm run dev",
"prepare": "npm run build"
},
"bin": {

View File

@ -9,6 +9,7 @@
"postbuild": "run-script-os",
"postbuild:nix": "chmod u+x ./dist/index.js",
"dev": "npm run build",
"watch-dev": "npm run dev",
"prepare": "npm run build"
},
"bin": {

View File

@ -33,6 +33,7 @@
"clean": "rimraf dist/",
"build": "webpack --config webpack.ts --progress",
"dev": "webpack --mode=development --config webpack.ts",
"watch-dev": "npm run dev",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
},

View File

@ -16,6 +16,7 @@
"scripts": {
"clean": "rimraf dist/",
"dev": "webpack --mode=development --config webpack.ts --progress",
"watch-dev": "npm run dev",
"build": "webpack --config webpack.ts --progress",
"lint": "exit 0",
"prepare:test": "npm run build"

View File

@ -29,6 +29,7 @@
"compile": "cross-env NODE_ENV=production webpack --config webpack/webpack.ts --progress",
"postcompile": "npm run build:tray-icons && npm run download:binaries",
"dev": "npm run dev:main && npm run dev:renderer",
"watch-dev": "npm run dev",
"dev-run": "nodemon --watch ./static/build/main.js --exec \"electron --remote-debugging-port=9223 --inspect .\"",
"dev:main": "cross-env NODE_ENV=development webpack --config webpack/main.ts --progress",
"dev:renderer": "cross-env NODE_ENV=development webpack --config webpack/renderer.ts --progress",

View File

@ -26,6 +26,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"

View File

@ -26,6 +26,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"

View File

@ -26,6 +26,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"
},

View File

@ -26,6 +26,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"

View File

@ -28,6 +28,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand",
"lint:fix": "lens-lint --fix",
"lint": "lens-lint"

View File

@ -28,6 +28,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"

View File

@ -28,6 +28,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"

View File

@ -28,6 +28,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"

View File

@ -28,6 +28,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand",
"lint:fix": "lens-lint --fix",
"lint": "lens-lint"

View File

@ -22,6 +22,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand"
},
"peerDependencies": {

View File

@ -28,6 +28,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand",
"lint": "lens-lint",
"lint:fix": "lens-lint --fix"

View File

@ -22,6 +22,7 @@
"scripts": {
"build": "webpack --progress",
"dev": "webpack --mode=development --progress",
"watch-dev": "npm run dev",
"test:unit": "jest --coverage --runInBand"
},
"peerDependencies": {