|
|
|
@ -29,9 +29,7 @@ function mkdirp(dir) {
|
|
|
|
const svelte_modules = glob('**/*.svelte', { cwd: `${cwd}/input` });
|
|
|
|
const svelte_modules = glob('**/*.svelte', { cwd: `${cwd}/input` });
|
|
|
|
const js_modules = glob('**/*.js', { cwd: `${cwd}/input` });
|
|
|
|
const js_modules = glob('**/*.js', { cwd: `${cwd}/input` });
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {Array<'client'|'server'>} */
|
|
|
|
for (const generate of /** @type {const} */ (['client', 'server'])) {
|
|
|
|
const compile_types = ['client', 'server'];
|
|
|
|
|
|
|
|
for (const generate of compile_types) {
|
|
|
|
|
|
|
|
console.error(`\n--- generating ${generate} ---\n`);
|
|
|
|
console.error(`\n--- generating ${generate} ---\n`);
|
|
|
|
for (const file of svelte_modules) {
|
|
|
|
for (const file of svelte_modules) {
|
|
|
|
const input = `${cwd}/input/${file}`;
|
|
|
|
const input = `${cwd}/input/${file}`;
|
|
|
|
|