From 091ac6b0dfcb92cf1f93a253a994933091516270 Mon Sep 17 00:00:00 2001 From: Emmanuel Gautier Date: Wed, 16 Oct 2024 13:11:05 +0200 Subject: [PATCH] fix: add assets in public dir --- .../public/galactiks-icon-public.png | Bin 0 -> 19413 bytes packages/adapters/astro/src/index.ts | 25 +++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 examples/contentlayer/public/galactiks-icon-public.png diff --git a/examples/contentlayer/public/galactiks-icon-public.png b/examples/contentlayer/public/galactiks-icon-public.png new file mode 100644 index 0000000000000000000000000000000000000000..bbbf4f42973f1b28730a6a99d1cd1a737611f6fc GIT binary patch literal 19413 zcmeF3^;?x)^yU#o2?+RR*)8u=74nfp-YgE?(S}o=8)3e-O}CNv)`HTzcBOD zT-Q+%&Uv2w>{xrP`~GYKzsX6UA`>9P!NH+Qe*LTn2lry|zdwlZ;5#!g^f5R%=@iM& zBHx`;4wjtUl`faxoP0`!9yjk~M9WFxxmm|#W>KrY__7!tq`mDxcNB_D+m7&V&P@r~ zZ@gKv;X2RFn4hV%?h}=1QqFdK^r=hhLpG1>@GbIcbo9z30|SHM3phA@qC6BhxKRT{ zbvQU5j7m7TS7Zh+;1ET7;o&fRBM{(75y?>CgfT>M;eL|((!;@t{Qo!pU+JE4!v?rf z?InR`)X<^J&>@Z*)JxPMenGDtXRl{rO*aW+RVOETYp>^@!lV&)n4HO$KQgQ>*oP-O zXWJJC{|bBU)T0Hg|FB-)`C)8qzG-4?Ze~^z^GpRt>u739Gr{q*wxFm`exSEGE=EOJ zY2@pRvf;3?$hJ(ZM*#sXd>XiFFv5syr_Q&26nI!x+O3JhPzKD;{%?koIl8=j;=|D9 zhkj!F(vQlJVqh=Q3fP~TiK}=%|0SK+?CliR5u%^UF5p9Lo{8p!y-yW@@|zvCSX-xU=WBQ?;Kc?I9LS*1hr`Jh8Rfr^W@^vRUA?lFCppFW-B3vF6>maV zpPt35%oxxDstnpfPOTWnBFX-H4;&fF_{lA3_Zmu&)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{xmWB9vSQ zTyQnS^5}_FaL%GMx;odOaCpg?kv{237LpOS6QX|4?&x8xZTVd8HhkQg!`_6zD{$28)Vu=4Nb{Jh;yWqm zEq;Ms;u?>Fku8zxH03i_K<{dH6G9ISnStL8?rJ~SU zG9GU`&*x0>ISWjt2}lV(gQ?~vy7u?=HyJ)wfcV!Jr{{K;v+`RKaqe3Y1>O_J+M1vY z5lA(vZ17bN!}&}gZ$bm?m_KsX`Y-4k=26a=rui)D0#k_)|EQ7CDUpdsfT&=Q_u#-z z0Cag)Egl3}XRCWz^0FkcY}?Ats^wHX7m6eyA9|e;Z&*+H&G9ZWHzO=t$>f?{HPH8V zj6qPg&0&BSEEYcM>|yM1d$aqbqs&H2YID0aFv(?55T!VphT8{bY#D9OI=!HkW#CaZ z(~COvmy|{t<=5c*9Jp2B@}ds>oYR_CnyVLZV6fk3Z1Y4w-*s;=UP`piSF$Hfjm*ex zU)4FWv0b&7HZo;tG(6oKG>|^757qoX#Ppx;RGpB(LYG_~4_`9t_&SmX4rh=azV6hU HcQXG4>u~0v literal 0 HcmV?d00001 diff --git a/packages/adapters/astro/src/index.ts b/packages/adapters/astro/src/index.ts index dbedc610..b57647e7 100644 --- a/packages/adapters/astro/src/index.ts +++ b/packages/adapters/astro/src/index.ts @@ -3,10 +3,12 @@ import type { AstroIntegration } from 'astro'; import { existsSync, lstatSync, + mkdirSync, readdirSync, + rmdirSync, symlinkSync, unlinkSync, -} from 'fs'; +} from 'node:fs'; import { fileURLToPath } from 'node:url'; import { join } from 'path'; @@ -17,20 +19,30 @@ export { getRSS } from './rss.js'; type GalactiksOptions = object | undefined; -const symlinkDir = (targetPath: string, path: string) => +const symlinkDir = (targetPath: string, path: string) => { + if (!existsSync(targetPath)) { + mkdirSync(path, { recursive: true }); + } + readdirSync(path) .filter((filename) => !filename.startsWith('.')) .map((filename) => [join(targetPath, filename), join(path, filename)]) .filter(([target]) => !existsSync(target)) .forEach(([target, path]) => symlinkSync(path, target)); +} + +const removeDirSymbolicLinks = (path: string) => { + if (!existsSync(path)) { + return; + } -const removeDirSymbolicLinks = (path: string) => readdirSync(path) .map((filename) => join(path, filename)) .filter((file) => lstatSync(file, { throwIfNoEntry: false })?.isSymbolicLink() ) .forEach((file) => unlinkSync(file)); +} // eslint-disable-next-line @typescript-eslint/no-unused-vars export default function createPlugin(_: GalactiksOptions): AstroIntegration { @@ -41,6 +53,7 @@ export default function createPlugin(_: GalactiksOptions): AstroIntegration { let assetsPath: string; let publicPath: string; + let publicAssetsPath: string; return { name: '@galactiks/astro-integration', @@ -65,6 +78,9 @@ export default function createPlugin(_: GalactiksOptions): AstroIntegration { publicPath = fileURLToPath(config.publicDir); galactiksConfig = setConfig('content.public', publicPath); + publicAssetsPath = join(publicPath, 'assets'); + mkdirSync(publicAssetsPath, { recursive: true }) + updateConfig({ site: galactiksConfig.webManifest.start_url, trailingSlash, @@ -78,9 +94,11 @@ export default function createPlugin(_: GalactiksOptions): AstroIntegration { removeDirSymbolicLinks(assetsPath); removeDirSymbolicLinks(publicPath); + removeDirSymbolicLinks(publicAssetsPath); symlinkDir(assetsPath, galactiksConfigContentAssets); symlinkDir(publicPath, galactiksConfigContentPublic); + symlinkDir(publicAssetsPath, galactiksConfigContentAssets); if (command === 'dev') { addWatchFile(galactiksConfig.content.generated); @@ -91,6 +109,7 @@ export default function createPlugin(_: GalactiksOptions): AstroIntegration { 'astro:build:done': () => { removeDirSymbolicLinks(assetsPath); + rmdirSync(publicAssetsPath, { recursive: true }); removeDirSymbolicLinks(publicPath); }, },