chore: Consolidate build scripts to the new shared script

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Iku-tursoandJanne Savolainen authored and Janne Savolainen committed 2023-05-03 08:11:21 +03:00
1 parent d30f4eb9d5
commit dbfde0e865
23 files changed
+46 -23

No files matched your search

@@ -24,7 +24,7 @@
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"build": "webpack", "build": "lens-webpack-build",
"clean": "rimraf dist/", "clean": "rimraf dist/",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint": "lens-lint", "lint": "lens-lint",
@@ -41,6 +41,7 @@
"react": "^17" "react": "^17"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@async-fn/jest": "^1.6.4", "@async-fn/jest": "^1.6.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2", "@k8slens/eslint-config": "^6.5.0-alpha.2",
"@k8slens/react-testing-library-discovery": "^1.0.0-alpha.3" "@k8slens/react-testing-library-discovery": "^1.0.0-alpha.3"
+2 -1
View File
@@ -16,9 +16,10 @@
], ],
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack" "build": "lens-webpack-build"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"rimraf": "^4.4.1" "rimraf": "^4.4.1"
}, },
"peerDependencies": { "peerDependencies": {
+2 -1
View File
@@ -22,7 +22,7 @@
"precompute-versions": "swc ./build/compute-versions.ts -o ./build/compute-versions.mjs", "precompute-versions": "swc ./build/compute-versions.ts -o ./build/compute-versions.mjs",
"compute-versions": "node ./build/compute-versions.mjs", "compute-versions": "node ./build/compute-versions.mjs",
"prebuild": "npm run compute-versions", "prebuild": "npm run compute-versions",
"build": "webpack", "build": "lens-webpack-build",
"dev": "webpack --mode=development --watch", "dev": "webpack --mode=development --watch",
"test": "jest --coverage --runInBand" "test": "jest --coverage --runInBand"
}, },
@@ -30,6 +30,7 @@
"@ogre-tools/injectable": "^15.1.1" "@ogre-tools/injectable": "^15.1.1"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@swc/cli": "^0.1.62", "@swc/cli": "^0.1.62",
"@swc/core": "^1.3.53", "@swc/core": "^1.3.53",
"fast-xml-parser": "^4.2.2", "fast-xml-parser": "^4.2.2",
+2 -1
View File
@@ -24,7 +24,7 @@
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"build": "webpack", "build": "lens-webpack-build",
"clean": "rimraf dist/", "clean": "rimraf dist/",
"dev": "webpack --mode=development --watch", "dev": "webpack --mode=development --watch",
"test": "jest --coverage --runInBand", "test": "jest --coverage --runInBand",
@@ -37,6 +37,7 @@
"react": "^17.0.2" "react": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2", "@k8slens/eslint-config": "^6.5.0-alpha.2",
"@k8slens/jest": "^6.5.0-alpha.4", "@k8slens/jest": "^6.5.0-alpha.4",
"@k8slens/typescript": "^6.5.0-alpha.2" "@k8slens/typescript": "^6.5.0-alpha.2"
+2 -1
View File
@@ -24,7 +24,7 @@
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"build": "webpack", "build": "lens-webpack-build",
"clean": "rimraf dist/", "clean": "rimraf dist/",
"dev": "webpack --mode=development --watch", "dev": "webpack --mode=development --watch",
"test": "jest --coverage --runInBand", "test": "jest --coverage --runInBand",
@@ -37,6 +37,7 @@
"react": "^17.0.2" "react": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2", "@k8slens/eslint-config": "^6.5.0-alpha.2",
"@k8slens/jest": "^6.5.0-alpha.4", "@k8slens/jest": "^6.5.0-alpha.4",
"@k8slens/typescript": "^6.5.0-alpha.2" "@k8slens/typescript": "^6.5.0-alpha.2"
+2 -1
View File
@@ -24,7 +24,7 @@
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"build": "webpack", "build": "lens-webpack-build",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
}, },
@@ -45,6 +45,7 @@
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@async-fn/jest": "^1.6.4", "@async-fn/jest": "^1.6.4",
"@k8slens/eslint-config": "6.5.0-alpha.1", "@k8slens/eslint-config": "6.5.0-alpha.1",
"@k8slens/react-testing-library-discovery": "^1.0.0-alpha.3", "@k8slens/react-testing-library-discovery": "^1.0.0-alpha.3",
@@ -25,7 +25,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
@@ -39,6 +39,7 @@
"lodash": "^4.17.15" "lodash": "^4.17.15"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@async-fn/jest": "^1.6.4", "@async-fn/jest": "^1.6.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2" "@k8slens/eslint-config": "^6.5.0-alpha.2"
} }
@@ -25,7 +25,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
@@ -40,6 +40,7 @@
"lodash": "^4.17.21" "lodash": "^4.17.21"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@async-fn/jest": "^1.6.4", "@async-fn/jest": "^1.6.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2", "@k8slens/eslint-config": "^6.5.0-alpha.2",
"@ogre-tools/test-utils": "^15.7.0" "@ogre-tools/test-utils": "^15.7.0"
@@ -25,7 +25,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
}, },
@@ -33,6 +33,7 @@
"@ogre-tools/injectable": "^15.3.1" "@ogre-tools/injectable": "^15.3.1"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2" "@k8slens/eslint-config": "^6.5.0-alpha.2"
} }
} }
@@ -25,7 +25,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
@@ -34,6 +34,7 @@
"@ogre-tools/injectable": "^15.3.1" "@ogre-tools/injectable": "^15.3.1"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2" "@k8slens/eslint-config": "^6.5.0-alpha.2"
} }
} }
@@ -25,7 +25,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint:fix": "lens-lint --fix", "lint:fix": "lens-lint --fix",
"lint": "lens-lint" "lint": "lens-lint"
@@ -41,6 +41,7 @@
"mobx": "^6.7.0" "mobx": "^6.7.0"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2" "@k8slens/eslint-config": "^6.5.0-alpha.2"
} }
} }
@@ -25,7 +25,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
@@ -42,6 +42,7 @@
"mobx": "^6.8.0" "mobx": "^6.8.0"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2", "@k8slens/eslint-config": "^6.5.0-alpha.2",
"@k8slens/messaging-fake-bridge": "^1.0.0-alpha.3", "@k8slens/messaging-fake-bridge": "^1.0.0-alpha.3",
"type-fest": "^2.14.0" "type-fest": "^2.14.0"
@@ -25,7 +25,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
@@ -41,6 +41,7 @@
"lodash": "^4.17.21" "lodash": "^4.17.21"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2" "@k8slens/eslint-config": "^6.5.0-alpha.2"
} }
} }
@@ -25,7 +25,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
@@ -42,6 +42,7 @@
"lodash": "^4.17.21" "lodash": "^4.17.21"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2" "@k8slens/eslint-config": "^6.5.0-alpha.2"
} }
} }
@@ -25,7 +25,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint:fix": "lens-lint --fix", "lint:fix": "lens-lint --fix",
"lint": "lens-lint" "lint": "lens-lint"
@@ -41,6 +41,7 @@
"mobx": "^6.9.0" "mobx": "^6.9.0"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2" "@k8slens/eslint-config": "^6.5.0-alpha.2"
} }
} }
@@ -25,7 +25,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
@@ -45,6 +45,7 @@
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@async-fn/jest": "^1.6.4", "@async-fn/jest": "^1.6.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2", "@k8slens/eslint-config": "^6.5.0-alpha.2",
"@k8slens/react-testing-library-discovery": "^1.0.0-alpha.3", "@k8slens/react-testing-library-discovery": "^1.0.0-alpha.3",
+2 -1
View File
@@ -24,7 +24,7 @@
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"build": "webpack", "build": "lens-webpack-build",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
}, },
@@ -39,6 +39,7 @@
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@async-fn/jest": "^1.6.4", "@async-fn/jest": "^1.6.4",
"@k8slens/eslint-config": "6.5.0-alpha.1", "@k8slens/eslint-config": "6.5.0-alpha.1",
"@k8slens/react-testing-library-discovery": "^1.0.0-alpha.0", "@k8slens/react-testing-library-discovery": "^1.0.0-alpha.0",
+2 -1
View File
@@ -24,7 +24,7 @@
"license": "MIT", "license": "MIT",
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
@@ -39,6 +39,7 @@
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@async-fn/jest": "^1.6.4", "@async-fn/jest": "^1.6.4",
"@k8slens/eslint-config": "6.5.0-alpha.1", "@k8slens/eslint-config": "6.5.0-alpha.1",
"@k8slens/react-testing-library-discovery": "^1.0.0-alpha.0", "@k8slens/react-testing-library-discovery": "^1.0.0-alpha.0",
@@ -25,11 +25,12 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
}, },
"peerDependencies": { "peerDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@testing-library/dom": "^8.19.0", "@testing-library/dom": "^8.19.0",
"@testing-library/jest-dom": "^5.16.5", "@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5" "@testing-library/react": "^12.1.5"
@@ -21,7 +21,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand" "test:unit": "jest --coverage --runInBand"
}, },
"peerDependencies": { "peerDependencies": {
@@ -34,6 +34,7 @@
"uuid": "^8.3.2" "uuid": "^8.3.2"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@types/uuid": "^9.0.1" "@types/uuid": "^9.0.1"
} }
} }
@@ -22,12 +22,13 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand", "test:unit": "jest --coverage --runInBand",
"lint": "lens-lint", "lint": "lens-lint",
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@k8slens/eslint-config": "^6.5.0-alpha.2" "@k8slens/eslint-config": "^6.5.0-alpha.2"
} }
} }
@@ -21,7 +21,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack" "build": "lens-webpack-build"
}, },
"peerDependencies": { "peerDependencies": {
"@ogre-tools/injectable": "^15.3.1", "@ogre-tools/injectable": "^15.3.1",
@@ -33,6 +33,7 @@
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@types/lodash": "^4.14.191" "@types/lodash": "^4.14.191"
} }
} }
@@ -21,7 +21,7 @@
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"scripts": { "scripts": {
"clean": "rimraf dist/", "clean": "rimraf dist/",
"build": "webpack", "build": "lens-webpack-build",
"test:unit": "jest --coverage --runInBand" "test:unit": "jest --coverage --runInBand"
}, },
"peerDependencies": { "peerDependencies": {
@@ -41,6 +41,7 @@
"typed-regex": "^0.0.8" "typed-regex": "^0.0.8"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/webpack": "^6.5.0-alpha.4",
"@types/crypto-js": "^4.1.1", "@types/crypto-js": "^4.1.1",
"@types/lodash": "^4.14.191", "@types/lodash": "^4.14.191",
"@types/react": "^17.0.2", "@types/react": "^17.0.2",