create-squire-workspace 0.0.3 → 0.0.5
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/create-workspace.d.ts +0 -1
- package/create-workspace.js +4 -12
- package/create-workspace.js.map +1 -1
- package/package.json +1 -1
package/create-workspace.d.ts
CHANGED
package/create-workspace.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env tsx
|
|
2
2
|
import { SqFolderUtils, SqPathUtils, SqProcessManager } from "@code-squire/utils";
|
|
3
3
|
import { instance } from "@code-squire/ioc";
|
|
4
|
-
import {
|
|
4
|
+
import { FeatureModuleRegistry } from "@code-squire/feature-modules";
|
|
5
|
+
import { SquireModule } from "@code-squire/squire";
|
|
5
6
|
const packagesToInstall = [
|
|
6
7
|
"@code-squire/ioc",
|
|
7
8
|
"@code-squire/feature-modules",
|
|
@@ -19,19 +20,10 @@ export class CreateSquireSpace {
|
|
|
19
20
|
SqFolderUtils.create(workspacePath);
|
|
20
21
|
process.chdir(workspacePath);
|
|
21
22
|
await this.processManager.execute(`npm install -D ${packagesToInstall.join(' ')}`);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const vfs = instance(SqVirtualFileSystem);
|
|
25
|
-
const root = vfs.createVirtualRoot(process.cwd());
|
|
26
|
-
const api = await root.virtualize();
|
|
27
|
-
const path = SqPathUtils.getCurrentPath(import.meta.url);
|
|
28
|
-
const currentPath = SqPathUtils.normalize(process.cwd());
|
|
29
|
-
api.generate(`${path}/blueprint`, currentPath, {});
|
|
30
|
-
const result = await root.save();
|
|
31
|
-
console.log('Result:', result);
|
|
23
|
+
instance(FeatureModuleRegistry).broadcastSpecific({ module: SquireModule, parameters: [] });
|
|
24
|
+
await this.processManager.execute(`npx squire help`);
|
|
32
25
|
}
|
|
33
26
|
}
|
|
34
27
|
const space = new CreateSquireSpace();
|
|
35
28
|
await space.create();
|
|
36
|
-
await space.setup();
|
|
37
29
|
//# sourceMappingURL=create-workspace.js.map
|
package/create-workspace.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-workspace.js","sourceRoot":"","sources":["../../../../squire/create-workspace/src/create-workspace.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"create-workspace.js","sourceRoot":"","sources":["../../../../squire/create-workspace/src/create-workspace.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAsB,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,iBAAiB,GAAa;IAClC,kBAAkB;IAClB,8BAA8B;IAC9B,qBAAqB;IACrB,wBAAwB;CACzB,CAAC;AAEF,MAAM,OAAO,iBAAiB;IACpB,cAAc,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAEzC,KAAK,CAAC,MAAM;QACjB,MAAM,CAAE,IAAI,CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvC,IAAI,CAAC,IAAI;YAAE,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;QAEhF,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACxD,MAAM,aAAa,GAAG,WAAW,CAAC,SAAS,CAAC,GAAI,OAAO,CAAC,GAAG,EAAG,IAAK,IAAK,EAAE,CAAC,CAAC;QAE5E,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACpC,OAAO,CAAC,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