Skip to content
Snippets Groups Projects
Commit 208089d8 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

knowledge-base-web-page-element-view: integrate into lerna

parent 47548aa8
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
"rollup-plugin-serve": "^1.0.1", "rollup-plugin-serve": "^1.0.1",
"rollup-plugin-terser": "^6.1.0", "rollup-plugin-terser": "^6.1.0",
"@rollup/plugin-url": "^5.0.1", "@rollup/plugin-url": "^5.0.1",
"vpu-auth": "file:./vendor/auth", "vpu-auth": "^1.0.0",
"vpu-common": "file:./vendor/common" "vpu-common": "^1.0.0"
}, },
"dependencies": { "dependencies": {
"@open-wc/scoped-elements": "^1.0.9", "@open-wc/scoped-elements": "^1.0.9",
......
import glob from 'glob'; import glob from 'glob';
import path from 'path';
import resolve from '@rollup/plugin-node-resolve'; import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs'; import commonjs from '@rollup/plugin-commonjs';
import copy from 'rollup-plugin-copy'; import copy from 'rollup-plugin-copy';
...@@ -36,15 +35,8 @@ export default { ...@@ -36,15 +35,8 @@ export default {
consts({ consts({
environment: build, environment: build,
}), }),
resolve({ resolve(),
customResolveOptions: { commonjs(),
// ignore node_modules from vendored packages
moduleDirectory: path.join(process.cwd(), 'node_modules')
}
}),
commonjs({
include: 'node_modules/**'
}),
json(), json(),
url({ url({
limit: 0, limit: 0,
......
import {i18n} from './i18n'; import {i18n} from './i18n';
import {html} from 'lit-element'; import {html, LitElement} from 'lit-element';
import VPULitElement from 'vpu-common/vpu-lit-element'
import {ScopedElementsMixin} from '@open-wc/scoped-elements'; import {ScopedElementsMixin} from '@open-wc/scoped-elements';
import {MiniSpinner} from 'vpu-common'; import {MiniSpinner} from 'vpu-common';
import * as commonUtils from "vpu-common/utils"; import * as commonUtils from "vpu-common/utils";
...@@ -9,7 +8,7 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js'; ...@@ -9,7 +8,7 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
/** /**
* KnowledgeBaseWebPageElementView web component * KnowledgeBaseWebPageElementView web component
*/ */
export class KnowledgeBaseWebPageElementView extends ScopedElementsMixin(VPULitElement) { export class KnowledgeBaseWebPageElementView extends ScopedElementsMixin(LitElement) {
constructor() { constructor() {
super(); super();
this.lang = 'de'; this.lang = 'de';
...@@ -30,6 +29,10 @@ export class KnowledgeBaseWebPageElementView extends ScopedElementsMixin(VPULitE ...@@ -30,6 +29,10 @@ export class KnowledgeBaseWebPageElementView extends ScopedElementsMixin(VPULitE
}; };
} }
_(selector) {
return this.shadowRoot === null ? this.querySelector(selector) : this.shadowRoot.querySelector(selector);
}
/** /**
* See: https://lit-element.polymer-project.org/guide/properties#initialize * See: https://lit-element.polymer-project.org/guide/properties#initialize
*/ */
......
auth @ 39d0e356
Subproject commit 39d0e356c029e0f2e92233520660ce307d0741d5
common @ 63b49c3a
Subproject commit 63b49c3a2eeae312b4a2aeec4cc2f7f0ee12b749
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment