diff --git a/package-lock.json b/package-lock.json index ea90dd7e37..a871a250be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3281,6 +3281,10 @@ "@jridgewell/sourcemap-codec": "1.4.14" } }, + "node_modules/@k8slens/application": { + "resolved": "packages/technical-features/application", + "link": true + }, "node_modules/@k8slens/bump-version-for-cron": { "resolved": "packages/bump-version-for-cron", "link": true @@ -32254,7 +32258,7 @@ "dependencies": { "@astronautlabs/jsonpath": "^1.1.0", "@hapi/call": "^9.0.1", - "@hapi/subtext": "^7.0.4", + "@hapi/subtext": "^7.1.0", "@k8slens/node-fetch": "^6.4.0-beta.13", "@kubernetes/client-node": "^0.18.1", "@material-ui/styles": "^4.11.5", @@ -34095,6 +34099,7 @@ } }, "packages/infrastructure/webpack": { + "name": "@k8slens/webpack", "version": "0.0.1", "license": "MIT", "dependencies": { @@ -34534,6 +34539,16 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.12.tgz", "integrity": "sha512-vzLe5NaNMjIE3mcddFVGlAXN1LEWueUsMsOJWaT6wWMJGyljHAWHznqfnKUQWGzu7TLPrGvWdNAsvQYW+C0xtw==", "dev": true + }, + "packages/technical-features/application": { + "name": "@k8slens/application", + "version": "0.0.1", + "license": "MIT", + "peerDependencies": { + "@ogre-tools/fp": "^12.0.1", + "@ogre-tools/injectable": "^12.0.1", + "lodash": "^4.17.15" + } } } } diff --git a/packages/technical-features/application/README.md b/packages/technical-features/application/README.md new file mode 100644 index 0000000000..451e211c85 --- /dev/null +++ b/packages/technical-features/application/README.md @@ -0,0 +1,18 @@ +# @k8slens/application + +This package contains stuff related to creating Lens-applications. + +In the beginning it will contain just the injection tokens used to configure the application. + +## Install +```bash +$ npm install @k8slens/application +``` + + +## Usage + +As of now, this package doesn't do anything alone. It just provides you way to register implementation for contract. + +Future ambition is that all stuff related to how applications are built will be relocated here. + diff --git a/packages/technical-features/application/index.ts b/packages/technical-features/application/index.ts new file mode 100644 index 0000000000..b1c6ea436a --- /dev/null +++ b/packages/technical-features/application/index.ts @@ -0,0 +1 @@ +export default {} diff --git a/packages/technical-features/application/jest.config.js b/packages/technical-features/application/jest.config.js new file mode 100644 index 0000000000..23be80353b --- /dev/null +++ b/packages/technical-features/application/jest.config.js @@ -0,0 +1,2 @@ +module.exports = + require("@k8slens/jest").monorepoPackageConfig(__dirname).configForReact; diff --git a/packages/technical-features/application/package.json b/packages/technical-features/application/package.json new file mode 100644 index 0000000000..e5d08f6c49 --- /dev/null +++ b/packages/technical-features/application/package.json @@ -0,0 +1,34 @@ +{ + "name": "@k8slens/application", + "private": false, + "version": "6.4.0-beta.13", + "description": "Package for creating Lens applications", + "type": "commonjs", + "files": [ + "dist" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/lensapp/monorepo.git" + }, + "main": "dist/index.js", + "types": "dist/index.d.ts", + "author": { + "name": "OpenLens Authors", + "email": "info@k8slens.dev" + }, + "license": "MIT", + "homepage": "https://github.com/lensapp/lens", + "scripts": { + "build": "lens-build", + "build:remove": "lens-remove-build", + "code-style:fix": "lens-fix-code-style", + "code-style:verify": "lens-verify-code-style", + "test": "lens-test" + }, + "peerDependencies": { + "@ogre-tools/fp": "^12.0.1", + "@ogre-tools/injectable": "^12.0.1", + "lodash": "^4.17.15" + } +} diff --git a/packages/technical-features/application/tsconfig.json b/packages/technical-features/application/tsconfig.json new file mode 100644 index 0000000000..a4f6fa613e --- /dev/null +++ b/packages/technical-features/application/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "@k8slens/typescript/config/base.json" +} diff --git a/packages/technical-features/application/webpack.config.js b/packages/technical-features/application/webpack.config.js new file mode 100644 index 0000000000..3183f30179 --- /dev/null +++ b/packages/technical-features/application/webpack.config.js @@ -0,0 +1 @@ +module.exports = require("@k8slens/webpack").configForNode;