mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Introduce empty package for electron main specific stuff for Application Feature
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
b5fb7b932f
commit
3efa77ebee
17
package-lock.json
generated
17
package-lock.json
generated
@ -3282,7 +3282,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@k8slens/application": {
|
"node_modules/@k8slens/application": {
|
||||||
"resolved": "packages/technical-features/application",
|
"resolved": "packages/technical-features/application/agnostic",
|
||||||
"link": true
|
"link": true
|
||||||
},
|
},
|
||||||
"node_modules/@k8slens/bump-version-for-cron": {
|
"node_modules/@k8slens/bump-version-for-cron": {
|
||||||
@ -34824,6 +34824,21 @@
|
|||||||
"lodash": "^4.17.15"
|
"lodash": "^4.17.15"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"packages/technical-features/application/agnostic": {
|
||||||
|
"version": "6.4.0-beta.13",
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"@async-fn/jest": "^1.6.4"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@k8slens/feature-core": "^0.0.1",
|
||||||
|
"@ogre-tools/fp": "^15.1.1",
|
||||||
|
"@ogre-tools/injectable": "^15.1.1",
|
||||||
|
"@ogre-tools/injectable-extension-for-auto-registration": "^15.1.1",
|
||||||
|
"@ogre-tools/injectable-utils": "^15.1.1",
|
||||||
|
"lodash": "^4.17.15"
|
||||||
|
}
|
||||||
|
},
|
||||||
"packages/technical-features/feature-core": {
|
"packages/technical-features/feature-core": {
|
||||||
"name": "@k8slens/feature-core",
|
"name": "@k8slens/feature-core",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
|
|||||||
@ -0,0 +1,3 @@
|
|||||||
|
# @k8slens/application-for-electron-main
|
||||||
|
|
||||||
|
TBD
|
||||||
@ -0,0 +1 @@
|
|||||||
|
export { feature } from "./src/feature";
|
||||||
@ -0,0 +1,2 @@
|
|||||||
|
module.exports =
|
||||||
|
require("@k8slens/jest").monorepoPackageConfig(__dirname).configForNode;
|
||||||
@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"name": "@k8slens/application-for-electron-main",
|
||||||
|
"private": false,
|
||||||
|
"version": "6.4.0-beta.13",
|
||||||
|
"description": "Electron's main specifics for creating Lens applications",
|
||||||
|
"type": "commonjs",
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public",
|
||||||
|
"registry": "https://registry.npmjs.org/"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/lensapp/lens.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": "webpack",
|
||||||
|
"dev": "webpack --mode=development --watch",
|
||||||
|
"test": "jest --coverage --runInBand"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@k8slens/feature-core": "^0.0.1",
|
||||||
|
"@ogre-tools/fp": "^15.1.1",
|
||||||
|
"@ogre-tools/injectable": "^15.1.1",
|
||||||
|
"@ogre-tools/injectable-extension-for-auto-registration": "^15.1.1",
|
||||||
|
"@ogre-tools/injectable-utils": "^15.1.1",
|
||||||
|
"lodash": "^4.17.15"
|
||||||
|
},
|
||||||
|
|
||||||
|
"devDependencies": {
|
||||||
|
"@async-fn/jest": "^1.6.4"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
import { getFeature } from "@k8slens/feature-core";
|
||||||
|
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
||||||
|
|
||||||
|
export const feature = getFeature({
|
||||||
|
id: "application",
|
||||||
|
|
||||||
|
register: (di) => {
|
||||||
|
autoRegister({
|
||||||
|
di,
|
||||||
|
targetModule: module,
|
||||||
|
|
||||||
|
getRequireContexts: () => [
|
||||||
|
require.context("./", true, /\.injectable\.(ts|tsx)$/),
|
||||||
|
],
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "@k8slens/typescript/config/base.json"
|
||||||
|
}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
module.exports = require("@k8slens/webpack").configForNode;
|
||||||
Loading…
Reference in New Issue
Block a user