Skip to content

Commit 2d728ae

Browse files
committed
fix: correct issues with bundling, so shell can be used from a uri pointing to a bundle
1 parent a563027 commit 2d728ae

File tree

7 files changed

+31
-331
lines changed

7 files changed

+31
-331
lines changed

demo/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import '@webcomponents/scoped-custom-element-registry';
2-
import '../oscd-shell.js';
2+
import '../dist/oscd-shell.js';
33
import OscdMenuOpen from '@omicronenergy/oscd-menu-open';
44
import OscdMenuSave from '@omicronenergy/oscd-menu-save';
55
import {
@@ -44,6 +44,12 @@ const plugins = {
4444
requireDoc: true,
4545
src: 'https://omicronenergyoss.github.io/oscd-menu-commons/oscd-menu-file-close.js',
4646
},
47+
{
48+
name: 'Add plugins...',
49+
translations: { de: 'Erweitern...' },
50+
icon: 'extension',
51+
src: './AddPlugins.js',
52+
},
4753
],
4854
editor: [
4955
{

package-lock.json

Lines changed: 0 additions & 290 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,17 @@
3636
"format": "eslint . --fix",
3737
"extract": "lit-localize extract",
3838
"localize": "lit-localize build",
39-
"copy-demo": "cp -r ./demo ./dist/",
40-
"build": "rimraf dist && mkdir dist && npm run copy-demo && npm run extract && npm run localize && npm run analyze -- --exclude dist && tsc ",
41-
"bundle": "rimraf dist && npm run localize && rollup -c rollup.config.js",
42-
"start": "npm run build && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"chokidar './demo/**/*' -c 'npm run copy-demo'\" \"wds --hmr --node-resolve\"",
43-
"start:bundle": "npm run bundle && concurrently -k -r \"rollup -c rollup.config.js --watch\" \"wds --watch \"",
39+
"build": "rimraf dist && mkdir dist && npm run extract && npm run localize && npm run analyze -- --exclude dist && tsc ",
40+
"bundle": "rimraf dist && npm run extract && npm run localize && rollup -c rollup.config.js",
41+
"start": "npm run build && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds --open '/demo/' --node-resolve\"",
42+
"start:bundle": "npm run bundle && concurrently -k -r \"rollup -c rollup.config.js --watch\" \"wds --open '/dist/demo/' --watch\"",
4443
"test": "npm run build && wtr --coverage --group unit",
4544
"test:watch": "npm run build && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --coverage --watch --group unit\"",
4645
"analyze": "cem analyze --litelement --exclude demo/* --exclude dist/* --exclude *.spec.ts --exclude *.test.ts --exclude coverage/*",
47-
"doc": "npm run analyze -- --exclude dist && typedoc --out dist/doc oscd-shell.ts foundation.ts",
46+
"doc": "npm run analyze -- --exclude dist && typedoc --out dist/doc src/oscd-shell.ts src/foundation.ts",
4847
"test:visual": "npm run build && wtr --group visual",
4948
"test:update": "npm run build && wtr --group visual --update-visual-baseline",
50-
"deploy": "npm run bundle && npm run doc && gh-pages --dist 'dist'",
49+
"deploy": "npm run bundle && npm run doc && gh-pages --dist 'dist' --nojekyll",
5150
"prepare": "husky"
5251
},
5352
"dependencies": {
@@ -89,7 +88,6 @@
8988
"@web/test-runner-commands": "^0.9.0",
9089
"@web/test-runner-playwright": "0.11.1",
9190
"@web/test-runner-visual-regression": "0.9.0",
92-
"chokidar-cli": "^3.0.0",
9391
"concurrently": "^9.2.1",
9492
"eslint": "^9.34.0",
9593
"eslint-config-prettier": "^10.1.8",

0 commit comments

Comments
 (0)