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.
- package/README.md +66 -11
- package/bin/xgem +19 -4
- package/bin/xgem.js +220 -0
- package/lib/create.sh +257 -0
- package/lib/doctor.sh +13 -2
- package/lib/flutter.sh +161 -18
- package/lib/git.sh +106 -8
- package/lib/ios.sh +126 -47
- package/lib/scaffold.sh +4 -4
- package/lib/version.sh +1 -1
- package/lib-win/doctor.js +44 -0
- package/lib-win/flutter.js +101 -0
- package/lib-win/git.js +241 -0
- package/lib-win/logger.js +35 -0
- package/lib-win/scaffold.js +80 -0
- package/lib-win/utils.js +67 -0
- package/package.json +9 -10
- package/templates-win/docker/build-up.mjs.tmpl +3 -0
- package/templates-win/docker/hard-clean.mjs.tmpl +4 -0
- package/templates-win/flutter/build-runner.mjs.tmpl +4 -0
- package/templates-win/flutter/build.mjs.tmpl +4 -0
- package/templates-win/flutter/hard-clean.mjs.tmpl +6 -0
- package/templates-win/go/build.mjs.tmpl +3 -0
- package/templates-win/go/hard-clean.mjs.tmpl +4 -0
- package/templates-win/node/build.mjs.tmpl +4 -0
- package/templates-win/node/hard-clean.mjs.tmpl +9 -0
- package/templates-win/node/start.mjs.tmpl +3 -0
- package/templates-win/python/hard-clean.mjs.tmpl +8 -0
- package/templates-win/python/install.mjs.tmpl +12 -0
- package/templates-win/rust/build.mjs.tmpl +3 -0
- package/templates-win/rust/hard-clean.mjs.tmpl +3 -0
- package/templates-win/webframework/build.mjs.tmpl +3 -0
- package/templates-win/webframework/dev.mjs.tmpl +3 -0
- package/templates-win/webframework/hard-clean.mjs.tmpl +9 -0
|
@@ -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,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,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,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' });
|