Skip to content

Commit 7af458e

Browse files
committed
fix(package): add marked back into built scripts
1 parent 06d9da6 commit 7af458e

File tree

5 files changed

+392
-14
lines changed

5 files changed

+392
-14
lines changed

.github/workflows/continuous-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: npm ci
2121

2222
- name: Build
23-
run: npm run bundle
23+
run: npm run build
2424

2525
- name: Deploy
2626
run: |

.github/workflows/release-please.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
env:
4848
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4949

50-
upload-release-bundle:
50+
upload-release-build:
5151
needs: release-please
5252
if: ${{ needs.release-please.outputs.release_created }}
5353
runs-on: ubuntu-latest
@@ -64,8 +64,8 @@ jobs:
6464
- name: Set repository name env var
6565
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
6666

67-
- name: Build plugin bundle
68-
run: npm run bundle
67+
- name: Build plugin
68+
run: npm run build
6969

7070
- name: Create zipped bundle
7171
run: |

custom-elements.json

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,74 @@
323323
}
324324
]
325325
},
326+
{
327+
"kind": "javascript-module",
328+
"path": "oscd-editor-sld.spec.ts",
329+
"declarations": [
330+
{
331+
"kind": "variable",
332+
"name": "emptyDocString",
333+
"default": "`<?xml version=\"1.0\" encoding=\"UTF-8\"?> <SCL version=\"2007\" revision=\"B\" xmlns=\"http://www.iec.ch/61850/2003/SCL\"> </SCL>`"
334+
},
335+
{
336+
"kind": "variable",
337+
"name": "voltageLevelDocString",
338+
"default": "`<?xml version=\"1.0\" encoding=\"UTF-8\"?> <SCL xmlns:smth=\"https://transpower.co.nz/SCL/SSD/SLD/v0\" xmlns=\"http://www.iec.ch/61850/2003/SCL\" version=\"2007\" revision=\"B\"> <Substation name=\"S1\" smth:w=\"50\" smth:h=\"25\"> <VoltageLevel name=\"V1\" smth:x=\"1\" smth:y=\"1\" smth:lx=\"1\" smth:ly=\"1\" smth:w=\"48\" smth:h=\"23\" desc=\"some description\"/> </Substation> </SCL> `"
339+
},
340+
{
341+
"kind": "variable",
342+
"name": "bayDocString",
343+
"default": "`<?xml version=\"1.0\" encoding=\"UTF-8\"?> <SCL xmlns=\"http://www.iec.ch/61850/2003/SCL\" version=\"2007\" revision=\"B\" xmlns:esld=\"https://transpower.co.nz/SCL/SSD/SLD/v0\"> <Substation name=\"S1\" esld:w=\"50\" esld:h=\"25\"> <VoltageLevel name=\"V1\" esld:x=\"1\" esld:y=\"1\" esld:w=\"13\" esld:h=\"13\" esld:lx=\"1\" esld:ly=\"1\"> <Bay name=\"B1\" esld:x=\"2\" esld:y=\"2\" esld:w=\"3\" esld:h=\"3\" esld:lx=\"2\" esld:ly=\"2\"> <ConnectivityNode name=\"L1\" pathName=\"S1/V1/B1/L1\"/> </Bay> </VoltageLevel> <VoltageLevel name=\"V2\" esld:x=\"15\" esld:y=\"1\" esld:w=\"13\" esld:h=\"13\" esld:lx=\"15\" esld:ly=\"1\"> <Bay name=\"B1\" esld:x=\"20\" esld:y=\"11\" esld:w=\"1\" esld:h=\"1\" esld:lx=\"20\" esld:ly=\"11\"/> </VoltageLevel> </Substation> </SCL> `"
344+
},
345+
{
346+
"kind": "variable",
347+
"name": "equipmentDocString",
348+
"default": "`<?xml version=\"1.0\" encoding=\"UTF-8\"?> <SCL xmlns=\"http://www.iec.ch/61850/2003/SCL\" version=\"2007\" revision=\"B\" xmlns:esld=\"https://transpower.co.nz/SCL/SSD/SLD/v0\"> <Substation name=\"S1\" esld:w=\"50\" esld:h=\"25\"> <VoltageLevel name=\"V1\" esld:x=\"1\" esld:y=\"1\" esld:w=\"13\" esld:h=\"13\" esld:lx=\"1\" esld:ly=\"1\"> <Bay name=\"B1\" esld:x=\"2\" esld:y=\"2\" esld:w=\"6\" esld:h=\"6\" esld:lx=\"2\" esld:ly=\"2\"> <ConductingEquipment type=\"CBR\" name=\"CBR1\" desc=\"CBR description\" esld:x=\"4\" esld:y=\"4\" esld:rot=\"1\" esld:lx=\"3.5\" esld:ly=\"4\"/> </Bay> </VoltageLevel> <VoltageLevel name=\"V2\" esld:x=\"15\" esld:y=\"1\" esld:w=\"23\" esld:h=\"23\" esld:lx=\"15\" esld:ly=\"1\"> <Bay name=\"B1\" esld:x=\"16\" esld:y=\"2\" esld:w=\"6\" esld:h=\"6\" esld:lx=\"16\" esld:ly=\"2\"> <ConductingEquipment type=\"CTR\" name=\"CTR1\" esld:x=\"17\" esld:y=\"5\" esld:rot=\"3\" esld:lx=\"17\" esld:ly=\"7.5\"/> <ConductingEquipment type=\"DIS\" name=\"DIS1\" esld:x=\"18\" esld:y=\"4\" esld:rot=\"1\" esld:lx=\"17\" esld:ly=\"4.5\"/> <ConductingEquipment type=\"NEW\" name=\"NEW1\" esld:x=\"19\" esld:y=\"3\" esld:rot=\"2\" esld:lx=\"20\" esld:ly=\"3.5\"/> <ConductingEquipment type=\"VTR\" name=\"VTR1\" esld:x=\"17\" esld:y=\"3\" esld:rot=\"3\" esld:lx=\"17\" esld:ly=\"3\"/> <ConductingEquipment type=\"DIS\" name=\"DIS2\" esld:x=\"20\" esld:y=\"4\" esld:rot=\"0\" esld:lx=\"21\" esld:ly=\"5\"/> <ConductingEquipment type=\"BAT\" name=\"BAT1\" esld:x=\"19\" esld:y=\"7\" esld:rot=\"3\" esld:lx=\"19\" esld:ly=\"7\"> <Terminal name=\"erroneous\"/> </ConductingEquipment> <ConductingEquipment type=\"SMC\" name=\"SMC1\" esld:x=\"21\" esld:y=\"7\" esld:rot=\"3\" esld:lx=\"22\" esld:ly=\"8\" /> </Bay> </VoltageLevel> </Substation> </SCL> `"
349+
}
350+
],
351+
"exports": [
352+
{
353+
"kind": "custom-element-definition",
354+
"name": "oscd-editor-sld",
355+
"declaration": {
356+
"name": "OscdEditorSLD",
357+
"module": "/oscd-editor-sld.js"
358+
}
359+
},
360+
{
361+
"kind": "js",
362+
"name": "emptyDocString",
363+
"declaration": {
364+
"name": "emptyDocString",
365+
"module": "oscd-editor-sld.spec.ts"
366+
}
367+
},
368+
{
369+
"kind": "js",
370+
"name": "voltageLevelDocString",
371+
"declaration": {
372+
"name": "voltageLevelDocString",
373+
"module": "oscd-editor-sld.spec.ts"
374+
}
375+
},
376+
{
377+
"kind": "js",
378+
"name": "bayDocString",
379+
"declaration": {
380+
"name": "bayDocString",
381+
"module": "oscd-editor-sld.spec.ts"
382+
}
383+
},
384+
{
385+
"kind": "js",
386+
"name": "equipmentDocString",
387+
"declaration": {
388+
"name": "equipmentDocString",
389+
"module": "oscd-editor-sld.spec.ts"
390+
}
391+
}
392+
]
393+
},
326394
{
327395
"kind": "javascript-module",
328396
"path": "oscd-editor-sld.ts",
@@ -654,6 +722,7 @@
654722
"name": "LitElement",
655723
"package": "lit"
656724
},
725+
"tagName": "oscd-editor-sld",
657726
"customElement": true
658727
}
659728
],
@@ -2224,6 +2293,88 @@
22242293
}
22252294
}
22262295
]
2296+
},
2297+
{
2298+
"kind": "javascript-module",
2299+
"path": "demo/plugins.js",
2300+
"declarations": [
2301+
{
2302+
"kind": "variable",
2303+
"name": "plugins",
2304+
"type": {
2305+
"text": "object"
2306+
},
2307+
"default": "{ menu: [ { name: 'Open File', translations: { de: 'Datei öffnen' }, icon: 'folder_open', tagName: 'oscd-menu-open', }, { name: 'Save File', translations: { de: 'Datei speichern' }, icon: 'save', requireDoc: true, tagName: 'oscd-menu-save', }, ], editor: [ { name: 'Single Line Diagram', translations: { de: 'Single Line Diagram', }, icon: 'add_box', tagName: 'oscd-editor-sld', }, ], background: [ { name: 'EditV1 Events Listener', tagName: 'oscd-background-editv1', icon: 'none', requireDoc: true, }, { name: 'Background Plugin for Wizard Events', tagName: 'oscd-background-wizard-events', icon: 'none', requireDoc: true, }, ], }"
2308+
}
2309+
],
2310+
"exports": [
2311+
{
2312+
"kind": "custom-element-definition",
2313+
"name": "oscd-menu-open",
2314+
"declaration": {
2315+
"name": "OscdMenuOpen",
2316+
"package": "@omicronenergy/oscd-menu-open"
2317+
}
2318+
},
2319+
{
2320+
"kind": "custom-element-definition",
2321+
"name": "oscd-menu-save",
2322+
"declaration": {
2323+
"name": "OscdMenuSave",
2324+
"package": "@omicronenergy/oscd-menu-save"
2325+
}
2326+
},
2327+
{
2328+
"kind": "custom-element-definition",
2329+
"name": "oscd-background-editv1",
2330+
"declaration": {
2331+
"name": "OscdBackgroundEditV1",
2332+
"package": "@omicronenergy/oscd-background-editv1"
2333+
}
2334+
},
2335+
{
2336+
"kind": "custom-element-definition",
2337+
"name": "oscd-background-editv1",
2338+
"declaration": {
2339+
"name": "OscdBackgroundWizardEvents",
2340+
"package": "@omicronenergy/oscd-background-wizard-events/oscd-background-wizard-events.js"
2341+
}
2342+
},
2343+
{
2344+
"kind": "custom-element-definition",
2345+
"name": "oscd-editor-sld",
2346+
"declaration": {
2347+
"name": "OscdEditorSLD",
2348+
"module": "/oscd-editor-sld.js"
2349+
}
2350+
},
2351+
{
2352+
"kind": "js",
2353+
"name": "plugins",
2354+
"declaration": {
2355+
"name": "plugins",
2356+
"module": "demo/plugins.js"
2357+
}
2358+
}
2359+
]
2360+
},
2361+
{
2362+
"kind": "javascript-module",
2363+
"path": "coverage/lcov-report/block-navigation.js",
2364+
"declarations": [],
2365+
"exports": []
2366+
},
2367+
{
2368+
"kind": "javascript-module",
2369+
"path": "coverage/lcov-report/prettify.js",
2370+
"declarations": [],
2371+
"exports": []
2372+
},
2373+
{
2374+
"kind": "javascript-module",
2375+
"path": "coverage/lcov-report/sorter.js",
2376+
"declarations": [],
2377+
"exports": []
22272378
}
22282379
]
22292380
}

0 commit comments

Comments
 (0)