feat: use nx to manage monorepo (#2748)

This commit is contained in:
Himself65
2023-06-10 00:46:24 +08:00
committed by GitHub
parent 1e6e0336c3
commit eeb536d460
14 changed files with 519 additions and 182 deletions
-19
View File
@@ -1,19 +0,0 @@
import { resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { spawnSync } from 'child_process';
import { beforeAll } from 'vitest';
const rootDir = fileURLToPath(new URL('../../', import.meta.url));
beforeAll(async () => {
console.log('Build plugin infra');
spawnSync('yarn', ['build'], {
stdio: 'inherit',
cwd: resolve(rootDir, './packages/plugin-infra'),
});
console.log('Build plugins');
// @ts-expect-error
await import('../../apps/electron/scripts/plugins/build-plugins.mjs');
});