1
0
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:
Roman 2020-09-01 18:46:50 +03:00
parent 546ca123f6
commit 1e08b01423
3 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@ -8,4 +8,5 @@ tmp/
static/build/**
binaries/client/
binaries/server/
src/extensions/**/*.js
locales/**/**.js

View File

@ -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> {

View File

@ -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,