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

Move the implementation into the "src" folder and static files into "assets"

The main entry point is now src/index.js when included in other packages.
parent 8e0c3425
No related branches found
No related tags found
No related merge requests found
File moved
File moved
module.exports = { module.exports = {
input: [ input: [
'*.js', 'src/*.js',
], ],
output: './', output: './',
options: { options: {
debug: false, debug: false,
removeUnusedKeys: true, removeUnusedKeys: true,
sort: true,
lngs: ['en','de'], lngs: ['en','de'],
resource: {
loadPath: 'src/i18n/{{lng}}/{{ns}}.json',
savePath: 'src/i18n/{{lng}}/{{ns}}.json'
},
}, },
} }
{ {
"name": "vpu-auth", "name": "vpu-auth",
"version": "1.0.0", "version": "1.0.0",
"main": "src/index.js",
"devDependencies": { "devDependencies": {
"node-sass": "^4.12.0", "node-sass": "^4.12.0",
"rollup": "^1.11.3", "rollup": "^1.11.3",
......
...@@ -11,7 +11,7 @@ const build = (typeof process.env.BUILD !== 'undefined') ? process.env.BUILD : ' ...@@ -11,7 +11,7 @@ const build = (typeof process.env.BUILD !== 'undefined') ? process.env.BUILD : '
console.log("build: " + build); console.log("build: " + build);
export default { export default {
input: 'demo.js', input: 'src/demo.js',
output: { output: {
file: 'dist/bundle.js', file: 'dist/bundle.js',
format: 'esm' format: 'esm'
...@@ -31,8 +31,8 @@ export default { ...@@ -31,8 +31,8 @@ export default {
(build !== 'local') ? terser() : false, (build !== 'local') ? terser() : false,
copy({ copy({
targets: [ targets: [
'index.html', 'assets/index.html',
'favicon.ico', 'assets/favicon.ico',
'node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js', 'node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js',
'node_modules/@webcomponents/webcomponentsjs/bundles', 'node_modules/@webcomponents/webcomponentsjs/bundles',
], ],
......
import './index';
import './vpu-auth-demo'; import './vpu-auth-demo';
File moved
File moved
File moved
File moved
import utils from './utils.js'; import utils from './utils.js';
import {i18n} from './i18n.js'; import {i18n} from './i18n.js';
import {html, LitElement} from 'lit-element'; import {html, LitElement} from 'lit-element';
import './vpu-auth';
class AuthDemo extends LitElement { class AuthDemo extends LitElement {
constructor() { constructor() {
......
File moved
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