improve how extension-api is exposed/loaded

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2020-10-08 20:29:40 +03:00
1 parent aa864fc199
commit 835b2e8916
14 files changed
+3487 -90

No files matched your search

File diff suppressed because it is too large. Load diff
+6 -2
View File
@@ -9,13 +9,17 @@
"styles": []
},
"scripts": {
"build": "tsc",
"build": "npm run build:main && npm run build:renderer",
"build:main": "tsc",
"build:renderer": "webpack --config webpack.config.js",
"dev": "tsc --watch"
},
"dependencies": {
"react-open-doodles": "^1.0.5"
},
"devDependencies": {
"typescript": "^4.0.3"
"ts-loader": "^8.0.4",
"typescript": "^4.0.3",
"webpack": "^4.44.2"
}
}
+2 -1
View File
@@ -1,6 +1,7 @@
import { Button, Icon, IconProps, LensRendererExtension, React } from "@lens/ui-extensions";
import { Button, Icon, IconProps, LensRendererExtension } from "@lens/ui-extensions";
import { CoffeeDoodle } from "react-open-doodles";
import path from "path";
import React from "react"
export function ExtensionIcon(props: IconProps) {
return <Icon {...props} material="pages" tooltip={path.basename(__filename)}/>
@@ -17,7 +17,6 @@
},
"include": [
"../../types",
"./renderer.ts",
"./main.ts"
],
"exclude": [