mirror of
https://github.com/penpot/penpot.git
synced 2025-07-10 21:47:18 +02:00
✨ Integrate plugin runtime as npm library (#6852)
This commit is contained in:
parent
bcb69b6227
commit
0a7d6d98e1
9 changed files with 58 additions and 8619 deletions
|
@ -440,17 +440,11 @@ async function generateTemplates() {
|
|||
"../public/images/sprites/assets.svg": assetsSprite,
|
||||
};
|
||||
|
||||
const pluginRuntimeUri =
|
||||
process.env.PENPOT_PLUGIN_DEV === "true"
|
||||
? "http://localhost:4200/index.js?ts=" + manifest.ts
|
||||
: "plugins-runtime/index.js?ts=" + manifest.ts;
|
||||
|
||||
content = await renderTemplate(
|
||||
"resources/templates/index.mustache",
|
||||
{
|
||||
manifest: manifest,
|
||||
translations: JSON.stringify(translations),
|
||||
pluginRuntimeUri,
|
||||
isDebug,
|
||||
},
|
||||
partials,
|
||||
|
@ -577,10 +571,6 @@ export async function copyAssets() {
|
|||
|
||||
await syncDirs("resources/images/", "resources/public/images/");
|
||||
await syncDirs("resources/fonts/", "resources/public/fonts/");
|
||||
await syncDirs(
|
||||
"resources/plugins-runtime/",
|
||||
"resources/public/plugins-runtime/",
|
||||
);
|
||||
|
||||
const end = process.hrtime(start);
|
||||
log.info("done: copy assets", `(${ppt(end)})`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue