Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
かっこかり 2025-01-28 10:45:13 +09:00 committed by laoXong
parent 25dda5939b
commit 4cbcbd5fbb
5 changed files with 33 additions and 29 deletions

View File

@ -23,10 +23,14 @@ const options = {
sourcemap: 'linked',
};
// js-built配下をすべて削除する
fs.rmSync('./js-built', { recursive: true, force: true });
const args = process.argv.slice(2).map(arg => arg.toLowerCase());
if (process.argv.map(arg => arg.toLowerCase()).includes('--watch')) {
// js-built配下をすべて削除する
if (!args.includes('--no-clean')) {
fs.rmSync('./js-built', { recursive: true, force: true });
}
if (args.includes('--watch')) {
await watchSrc();
} else {
await buildSrc();

View File

@ -23,10 +23,14 @@ const options = {
sourcemap: 'linked',
};
// built配下をすべて削除する
fs.rmSync('./built', { recursive: true, force: true });
const args = process.argv.slice(2).map(arg => arg.toLowerCase());
if (process.argv.map(arg => arg.toLowerCase()).includes('--watch')) {
// built配下をすべて削除する
if (!args.includes('--no-clean')) {
fs.rmSync('./built', { recursive: true, force: true });
}
if (args.includes('--watch')) {
await watchSrc();
} else {
await buildSrc();

View File

@ -24,9 +24,14 @@ const options = {
};
// built配下をすべて削除する
fs.rmSync('./built', { recursive: true, force: true });
const args = process.argv.slice(2).map(arg => arg.toLowerCase());
if (process.argv.map(arg => arg.toLowerCase()).includes('--watch')) {
// built配下をすべて削除する
if (!args.includes('--no-clean')) {
fs.rmSync('./built', { recursive: true, force: true });
}
if (args.includes('--watch')) {
await watchSrc();
} else {
await buildSrc();

View File

@ -23,10 +23,14 @@ const options = {
sourcemap: 'linked',
};
// built配下をすべて削除する
fs.rmSync('./built', { recursive: true, force: true });
const args = process.argv.slice(2).map(arg => arg.toLowerCase());
if (process.argv.map(arg => arg.toLowerCase()).includes('--watch')) {
// built配下をすべて削除する
if (!args.includes('--no-clean')) {
fs.rmSync('./built', { recursive: true, force: true });
}
if (args.includes('--watch')) {
await watchSrc();
} else {
await buildSrc();

View File

@ -27,20 +27,7 @@ await Promise.all([
stdout: process.stdout,
stderr: process.stderr,
}),
execa('pnpm', ['--filter', 'misskey-js', 'build'], {
cwd: _dirname + '/../',
stdout: process.stdout,
stderr: process.stderr,
}),
]);
await Promise.all([
execa('pnpm', ['--filter', 'misskey-reversi', 'build'], {
cwd: _dirname + '/../',
stdout: process.stdout,
stderr: process.stderr,
}),
execa('pnpm', ['--filter', 'misskey-bubble-game', 'build'], {
execa('pnpm', ['--filter', 'backend...', 'build'], {
cwd: _dirname + '/../',
stdout: process.stdout,
stderr: process.stderr,
@ -65,7 +52,7 @@ execa('pnpm', ['--filter', 'backend', 'dev'], {
stderr: process.stderr,
});
execa('pnpm', ['--filter', 'frontend-shared', 'watch'], {
execa('pnpm', ['--filter', 'frontend-shared', 'watch', '--no-clean'], {
cwd: _dirname + '/../',
stdout: process.stdout,
stderr: process.stderr,
@ -89,19 +76,19 @@ execa('pnpm', ['--filter', 'sw', 'watch'], {
stderr: process.stderr,
});
execa('pnpm', ['--filter', 'misskey-js', 'watch'], {
execa('pnpm', ['--filter', 'misskey-js', 'watch', '--no-clean'], {
cwd: _dirname + '/../',
stdout: process.stdout,
stderr: process.stderr,
});
execa('pnpm', ['--filter', 'misskey-reversi', 'watch'], {
execa('pnpm', ['--filter', 'misskey-reversi', 'watch', '--no-clean'], {
cwd: _dirname + '/../',
stdout: process.stdout,
stderr: process.stderr,
});
execa('pnpm', ['--filter', 'misskey-bubble-game', 'watch'], {
execa('pnpm', ['--filter', 'misskey-bubble-game', 'watch', '--no-clean'], {
cwd: _dirname + '/../',
stdout: process.stdout,
stderr: process.stderr,