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

person-select: integrate into lerna

parent dfc4dcdc
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
"@rollup/plugin-node-resolve": "^8.1.0", "@rollup/plugin-node-resolve": "^8.1.0",
"@rollup/plugin-replace": "^2.3.3", "@rollup/plugin-replace": "^2.3.3",
"@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/**'
}),
url({ url({
limit: 0, limit: 0,
include: [ include: [
......
...@@ -301,14 +301,13 @@ export class PersonSelect extends ScopedElementsMixin(LitElement) { ...@@ -301,14 +301,13 @@ export class PersonSelect extends ScopedElementsMixin(LitElement) {
} }
static get styles() { static get styles() {
// language=css return [
return css` commonStyles.getThemeCSS(),
${commonStyles.getThemeCSS()} commonStyles.getGeneralCSS(),
${commonStyles.getGeneralCSS()} commonStyles.getButtonCSS(),
${commonStyles.getButtonCSS()} commonStyles.getFormAddonsCSS(),
${commonStyles.getFormAddonsCSS()} commonStyles.getSelect2CSS(),
${commonStyles.getSelect2CSS()} css`
.select2-control.control { .select2-control.control {
width: 100%; width: 100%;
} }
...@@ -326,7 +325,8 @@ export class PersonSelect extends ScopedElementsMixin(LitElement) { ...@@ -326,7 +325,8 @@ export class PersonSelect extends ScopedElementsMixin(LitElement) {
.field .button.control vpu-icon { .field .button.control vpu-icon {
top: 0; top: 0;
} }
`; `
];
} }
render() { render() {
......
...@@ -38,13 +38,14 @@ class PersonSelectDemo extends ScopedElementsMixin(LitElement) { ...@@ -38,13 +38,14 @@ class PersonSelectDemo extends ScopedElementsMixin(LitElement) {
static get styles() { static get styles() {
// language=css // language=css
return css` return [
${commonStyles.getThemeCSS()} commonStyles.getThemeCSS(),
${commonStyles.getGeneralCSS()} commonStyles.getGeneralCSS(),
css`
h1.title {margin-bottom: 1em;} h1.title {margin-bottom: 1em;}
div.container {margin-bottom: 1.5em;} div.container {margin-bottom: 1.5em;}
`; `
];
} }
getAuthComponentHtml() { getAuthComponentHtml() {
......
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