mirror of
https://github.com/zoriya/v10.git
synced 2026-08-14 18:04:49 +00:00
chore(root): replace turbo watch with build-first dev scripts (#1114)
This commit is contained in:
+4
-4
@@ -23,10 +23,10 @@
|
||||
"build": "turbo run build",
|
||||
"clean": "turbo run clean",
|
||||
"commitlint": "commitlint --config ./commitlint.config.js --edit",
|
||||
"dev:site": "turbo run dev --filter=site",
|
||||
"dev": "turbo run dev --parallel",
|
||||
"dev:packages": "turbo run dev --parallel --filter='./packages/*'",
|
||||
"dev:sandbox": "turbo watch dev --filter=@videojs/sandbox",
|
||||
"dev:site": "turbo run dev --filter=site...",
|
||||
"dev": "turbo run dev",
|
||||
"dev:packages": "turbo run dev --filter='./packages/*'",
|
||||
"dev:sandbox": "turbo run dev --filter=@videojs/sandbox...",
|
||||
"lint": "biome check .",
|
||||
"lint:fix": "biome check . --write",
|
||||
"lint:fix:file": "biome check --write",
|
||||
|
||||
@@ -313,12 +313,9 @@ function debounce(fn: () => void, ms: number): () => void {
|
||||
}
|
||||
|
||||
async function main(): Promise<void> {
|
||||
console.log('Building icons...\n');
|
||||
cleanDist();
|
||||
await build();
|
||||
console.log('\nBuild complete!');
|
||||
|
||||
if (isWatch) {
|
||||
console.log('Watching icons for changes...\n');
|
||||
|
||||
const rebuild = debounce(() => {
|
||||
console.log('\nRebuilding icons...\n');
|
||||
build()
|
||||
@@ -332,8 +329,11 @@ async function main(): Promise<void> {
|
||||
rebuild();
|
||||
}
|
||||
});
|
||||
|
||||
console.log('\nWatching for changes...');
|
||||
} else {
|
||||
console.log('Building icons...\n');
|
||||
cleanDist();
|
||||
await build();
|
||||
console.log('\nBuild complete!');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user