add react demo

This commit is contained in:
2025-04-07 19:17:24 +08:00
parent cec2edf2ff
commit 10787fea6b
13 changed files with 1194 additions and 5 deletions

15
script/index.ts Normal file
View File

@@ -0,0 +1,15 @@
import fs from 'fs';
import path from 'path';
import { program, Command } from './program';
export const root = process.cwd();
export const clearWorkspace = () => {
const files = ['submodules', 'packages', 'pnpm-workspace.yaml', 'turbo.json'];
for (const file of files) {
fs.rmSync(path.join(root, file), { recursive: true, force: true });
}
};
program.addCommand(new Command('clear').action(clearWorkspace));
program.parse(process.argv);