mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
extensions-api -- in-progress
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
546ca123f6
commit
1e08b01423
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,4 +8,5 @@ tmp/
|
||||
static/build/**
|
||||
binaries/client/
|
||||
binaries/server/
|
||||
src/extensions/**/*.js
|
||||
locales/**/**.js
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
// import { LensExtension } from "@lens"; // fixme: provide runtime import
|
||||
import { LensExtension } from "../extension";
|
||||
import { LensExtension } from "@lens"; // fixme: provide runtime import
|
||||
|
||||
export default class ExampleExtension extends LensExtension {
|
||||
async init(): Promise<any> {
|
||||
|
||||
@ -56,7 +56,7 @@ export class ExtensionStore extends BaseStore<ExtensionStoreModel> {
|
||||
let mainJs: string;
|
||||
try {
|
||||
manifestJson = __non_webpack_require__(manifestPath); // eslint-disable-line
|
||||
mainJs = path.resolve(path.dirname(manifestPath), manifestJson.main); // fixme: compile *.ts on the fly
|
||||
mainJs = path.resolve(path.dirname(manifestPath), manifestJson.main); // todo: compile *.ts on the fly?
|
||||
const LensExtension = __non_webpack_require__(mainJs).default; // eslint-disable-line
|
||||
return {
|
||||
manifestPath: manifestPath,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user