MCPcopy Index your code
hub / github.com/tinyplex/tinybase / compileDocsAndAssets

Function compileDocsAndAssets

gulpfile.mjs:701–720  ·  view source on GitHub ↗
(api = true, pages = true)

Source from the content-addressed store, hash-verified

699};
700
701const compileDocsAndAssets = async (api = true, pages = true) => {
702 const {default: esbuild} = await import('esbuild');
703
704 if (api) {
705 await copyDefinitions(DIST_DIR);
706 }
707 await makeDir(TMP_DIR);
708 await esbuild.build({
709 entryPoints: ['site/build.ts'],
710 external: ['tinydocs', 'react', '@prettier/sync', '@babel/core'],
711 target: 'esnext',
712 bundle: true,
713 outfile: './tmp/build.js',
714 format: 'esm',
715 platform: 'node',
716 });
717 const {build} = await import('./tmp/build.js');
718 await build(esbuild, DOCS_DIR, api, pages);
719 await removeDir(TMP_DIR);
720};
721
722const npmInstall = () => execute('npm install --legacy-peer-deps');
723

Callers 3

compileDocsPagesOnlyFunction · 0.85
compileDocsAssetsOnlyFunction · 0.85
compileDocsFunction · 0.85

Calls 4

copyDefinitionsFunction · 0.85
makeDirFunction · 0.85
buildFunction · 0.85
removeDirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…