From 86378ae00e66975960e1e3b4ec6ba24dbfe2f90c Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Wed, 22 Feb 2023 09:56:37 +0200 Subject: [PATCH] Introduce dummy package for application Signed-off-by: Janne Savolainen --- package-lock.json | 17 +++++++++- .../technical-features/application/README.md | 18 ++++++++++ .../technical-features/application/index.ts | 1 + .../application/jest.config.js | 2 ++ .../application/package.json | 34 +++++++++++++++++++ .../application/tsconfig.json | 3 ++ .../application/webpack.config.js | 1 + 7 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 packages/technical-features/application/README.md create mode 100644 packages/technical-features/application/index.ts create mode 100644 packages/technical-features/application/jest.config.js create mode 100644 packages/technical-features/application/package.json create mode 100644 packages/technical-features/application/tsconfig.json create mode 100644 packages/technical-features/application/webpack.config.js 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;