Skip to content

Commit

Permalink
feat: Add publisher plugin as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
clepski committed Jan 29, 2025
1 parent 0418b7b commit 3a0e227
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "packages/external-plugins/oscd-publisher"]
path = packages/external-plugins/oscd-publisher
url = https://github.com/openenergytools/oscd-publisher
branch = gh-pages
4 changes: 2 additions & 2 deletions packages/compas-open-scd/public/js/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ export const officialPlugins = [
},
{
name: 'Publisher',
src: '/plugins/src/editors/Publisher.js',
src: '/external-plugins/oscd-publisher/oscd-publisher.js',
icon: 'publish',
default: false,
default: true,
kind: 'editor',
},
{
Expand Down
1 change: 1 addition & 0 deletions packages/compas-open-scd/snowpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default ({
mount: {
'../openscd/': '/openscd/',
'../plugins/': '/plugins/',
'../external-plugins/': '/external-plugins/',
"./": "/",
},
alias: {
Expand Down
1 change: 1 addition & 0 deletions packages/external-plugins/oscd-publisher
Submodule oscd-publisher added at f01640
4 changes: 2 additions & 2 deletions packages/openscd/src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ export const officialPlugins = [
},
{
name: 'Publisher',
src: generatePluginPath('plugins/src/editors/Publisher.js'),
src: generatePluginPath('external-plugins/oscd-publisher/oscd-publisher.js'),
icon: 'publish',
default: false,
default: true,
kind: 'editor',
requireDoc: true,
},
Expand Down

0 comments on commit 3a0e227

Please sign in to comment.