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/**
|
static/build/**
|
||||||
binaries/client/
|
binaries/client/
|
||||||
binaries/server/
|
binaries/server/
|
||||||
|
src/extensions/**/*.js
|
||||||
locales/**/**.js
|
locales/**/**.js
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
// import { LensExtension } from "@lens"; // fixme: provide runtime import
|
import { LensExtension } from "@lens"; // fixme: provide runtime import
|
||||||
import { LensExtension } from "../extension";
|
|
||||||
|
|
||||||
export default class ExampleExtension extends LensExtension {
|
export default class ExampleExtension extends LensExtension {
|
||||||
async init(): Promise<any> {
|
async init(): Promise<any> {
|
||||||
|
|||||||
@ -56,7 +56,7 @@ export class ExtensionStore extends BaseStore<ExtensionStoreModel> {
|
|||||||
let mainJs: string;
|
let mainJs: string;
|
||||||
try {
|
try {
|
||||||
manifestJson = __non_webpack_require__(manifestPath); // eslint-disable-line
|
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
|
const LensExtension = __non_webpack_require__(mainJs).default; // eslint-disable-line
|
||||||
return {
|
return {
|
||||||
manifestPath: manifestPath,
|
manifestPath: manifestPath,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user