0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-06 14:50:21 -05:00
penpot-plugins/plugins-runtime
2024-02-05 12:45:20 +01:00
..
src feat: init penpot integration 2024-02-05 12:45:20 +01:00
.eslintrc.json feat: init penpot integration 2024-02-05 12:45:20 +01:00
package.json feat: init penpot integration 2024-02-05 12:45:20 +01:00
project.json feat: init penpot integration 2024-02-05 12:45:20 +01:00
README.md feat: init penpot integration 2024-02-05 12:45:20 +01:00
tsconfig.json feat: init penpot integration 2024-02-05 12:45:20 +01:00
tsconfig.lib.json feat: init penpot integration 2024-02-05 12:45:20 +01:00
tsconfig.spec.json feat: init penpot integration 2024-02-05 12:45:20 +01:00
vite.config.ts feat: init penpot integration 2024-02-05 12:45:20 +01:00

plugins-runtime

Go to to the this branch in the Penpot local code.

Open penpot/frontend/resources/templates/index.mustache and replace the below:

<script type="importmap">
  { "imports": { "plugins-runtime": "/js/plugins-runtime.mjs" } }
</script>

New code:

<script type="importmap">
  {"imports": {"plugins-runtime": "http://localhost:4200/index.mjs"}}
</script>

Run the penpot runtime with npm start.

Now you can go to penpot and see the log of this file plugins-runtime/src/index.ts.