xgem-cli 2.0.0-alpha → 2.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ // Delegates to xgem's native Windows flutter engine — single source of
3
+ // truth instead of a second copy of the logic.
4
+ import { spawnSync } from 'node:child_process';
5
+ const r = spawnSync('xgem', ['run', 'flutter', 'hard-clean'], { stdio: 'inherit', shell: true });
6
+ process.exit(r.status ?? 0);
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ execSync('go build -o bin\\main.exe main.go', { stdio: 'inherit' });
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ console.log('Cleaning Go module cache...');
4
+ execSync('go clean -modcache', { stdio: 'inherit' });
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ console.log('Building Node project...');
4
+ execSync('npm run build', { stdio: 'inherit' });
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ import { rmSync } from 'node:fs';
4
+
5
+ console.log('Nuking node_modules and resetting package locks...');
6
+ rmSync('node_modules', { recursive: true, force: true });
7
+ rmSync('package-lock.json', { force: true });
8
+ rmSync('yarn.lock', { force: true });
9
+ execSync('npm install', { stdio: 'inherit' });
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ execSync('npm run start', { stdio: 'inherit' });
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ import { rmSync } from 'node:fs';
4
+
5
+ console.log('Cleaning Python cache and rebuilding environment...');
6
+ rmSync('__pycache__', { recursive: true, force: true });
7
+ rmSync('.venv', { recursive: true, force: true });
8
+ execSync('python -m venv .venv', { stdio: 'inherit' });
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ import { existsSync } from 'node:fs';
4
+
5
+ // Windows venvs don't have an "activate && run" equivalent worth using in
6
+ // a spawned process — call the venv's own pip.exe directly instead.
7
+ if (existsSync('.venv\\Scripts\\pip.exe')) {
8
+ execSync('.venv\\Scripts\\pip.exe install -r requirements.txt', { stdio: 'inherit' });
9
+ } else {
10
+ console.error('Error: Virtual environment (.venv) not found.');
11
+ process.exit(1);
12
+ }
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ execSync('cargo build --release', { stdio: 'inherit' });
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ execSync('cargo clean', { stdio: 'inherit' });
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ execSync('npm run build', { stdio: 'inherit' });
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ execSync('npm run dev', { stdio: 'inherit' });
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ import { rmSync } from 'node:fs';
4
+
5
+ console.log('Resetting __FRAMEWORK__ dependencies...');
6
+ rmSync('node_modules', { recursive: true, force: true });
7
+ rmSync('package-lock.json', { force: true });
8
+ rmSync('yarn.lock', { force: true });
9
+ execSync('npm install', { stdio: 'inherit' });