From 157d8ea83fda5d380ee28ac0396ea439df9b25a7 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 28 Sep 2023 18:58:39 +0300 Subject: [PATCH] squash! --- Source/Function/Build.ts | 13 +++++-------- Target/Function/Build.js | 3 ++- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Source/Function/Build.ts b/Source/Function/Build.ts index f0480e7f..19eba585 100644 --- a/Source/Function/Build.ts +++ b/Source/Function/Build.ts @@ -77,14 +77,11 @@ export default (async (...[File, Option]: Parameters) => { --mergeModulesMergeMode module \ --entryPoints ${Object.values(Configuration.entryPoints).join( " --entryPoints " - )}` - ); - - Exec("mv ./Documentation/functions ./Documentation/Function"); - - Exec( - `find ./Documentation -type f -name '*.html' \ - | xargs sed -i.bak --regexp-extended 's:(href="([^"]+)?)functions/:\\1Function/:g'` + )}; \ + mv ./Documentation/functions ./Documentation/Function ; \ + find ./Documentation -type f -name '*.html' \ + | xargs sed -i.bak --regexp-extended 's:(href="([^"]+)?)functions/:\\1Function/:g' + ` ); }) satisfies Type as Type; diff --git a/Target/Function/Build.js b/Target/Function/Build.js index af3ba240..36e4f45f 100644 --- a/Target/Function/Build.js +++ b/Target/Function/Build.js @@ -1 +1,2 @@ -var u=async(...[l,t])=>{l.forEach(async i=>(await(await import("fast-glob")).default(i.replaceAll("'","").replaceAll('"',""))).forEach(c=>a.push(c))),a.reverse();const o=r((await import("../Object/ESBuild.js")).default,{entryPoints:Object.fromEntries(a.map(i=>[i.replace("Source/","").split(".").slice(0,-1).join("."),i]))}),n=await(await import("esbuild")).build(t?.ESBuild?r(o,await(await import("../Function/File.js")).default(t?.ESBuild)):o);console.log(n.metafile?await(await import("esbuild")).analyzeMetafile(n.metafile,{verbose:!0}):{}),t?.TypeScript?e(`tsc -p ${t?.TypeScript}`):e("tsc"),e(`typedoc --commentStyle all --gitRevision main --customCss ${p(`${s}/../Sheet/TypeDoc.css`)} --includeVersion --out ./Documentation --plugin typedoc-plugin-remove-references --plugin typedoc-plugin-rename-defaults --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-zod --plugin @mxssfd/typedoc-theme --plugin typedoc-plugin-merge-modules --plugin ${p(`${s}/../../Target/Function/TypeDoc.js`)} --theme my-theme --entryPointStrategy expand --mergeModulesRenameDefaults --mergeModulesMergeMode module --entryPoints ${Object.values(o.entryPoints).join(" --entryPoints ")}`),e("mv ./Documentation/functions ./Documentation/Function"),e(`find ./Documentation -type f -name '*.html' | xargs sed -i.bak --regexp-extended 's:(href="([^"]+)?)functions/:\\1Function/:g'`)};const{default:e}=await import("../Function/Exec.js"),{deepmerge:r}=await import("deepmerge-ts"),{resolve:p}=await import("path"),a=[],s=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{s as Current,e as Exec,a as Pipe,r as deepmerge,u as default,p as resolve}; +var u=async(...[l,e])=>{l.forEach(async t=>(await(await import("fast-glob")).default(t.replaceAll("'","").replaceAll('"',""))).forEach(c=>a.push(c))),a.reverse();const i=r((await import("../Object/ESBuild.js")).default,{entryPoints:Object.fromEntries(a.map(t=>[t.replace("Source/","").split(".").slice(0,-1).join("."),t]))}),n=await(await import("esbuild")).build(e?.ESBuild?r(i,await(await import("../Function/File.js")).default(e?.ESBuild)):i);console.log(n.metafile?await(await import("esbuild")).analyzeMetafile(n.metafile,{verbose:!0}):{}),e?.TypeScript?o(`tsc -p ${e?.TypeScript}`):o("tsc"),o(`typedoc --commentStyle all --gitRevision main --customCss ${p(`${s}/../Sheet/TypeDoc.css`)} --includeVersion --out ./Documentation --plugin typedoc-plugin-remove-references --plugin typedoc-plugin-rename-defaults --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-zod --plugin @mxssfd/typedoc-theme --plugin typedoc-plugin-merge-modules --plugin ${p(`${s}/../../Target/Function/TypeDoc.js`)} --theme my-theme --entryPointStrategy expand --mergeModulesRenameDefaults --mergeModulesMergeMode module --entryPoints ${Object.values(i.entryPoints).join(" --entryPoints ")}; mv ./Documentation/functions ./Documentation/Function ; find ./Documentation -type f -name '*.html' | xargs sed -i.bak --regexp-extended 's:(href="([^"]+)?)functions/:\\1Function/:g' + `)};const{default:o}=await import("../Function/Exec.js"),{deepmerge:r}=await import("deepmerge-ts"),{resolve:p}=await import("path"),a=[],s=(await import("url")).fileURLToPath((await import("path")).dirname(import.meta.url));export{s as Current,o as Exec,a as Pipe,r as deepmerge,u as default,p as resolve};