create-squire-workspace 0.0.21 → 0.0.23

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.
@@ -1,2 +1 @@
1
- #!/usr/bin/env tsx
2
1
  export {};
@@ -1,25 +1,5 @@
1
- #!/usr/bin/env tsx
2
- import { SqFileUtils, SqFolderUtils, SqPathUtils, SqProcessManager } from "@code-squire/utils";
3
1
  import { instance } from "@code-squire/ioc";
4
- import { FeatureModuleRegistry } from "@code-squire/feature-modules";
5
- import { CreateWorkspaceModule } from "./create-workspace.module";
6
- const packagesToInstall = [
7
- "@code-squire/ioc",
8
- "@code-squire/feature-modules",
9
- "@code-squire/squire",
10
- "@code-squire/workspace"
11
- ];
12
- const processManager = new SqProcessManager();
13
- const [name] = process.argv.slice(2);
14
- if (!name)
15
- throw new Error('Squire - Please pass a name for your squire space');
16
- await processManager.execute(`npm install -g tsx`);
17
- const workspacePath = SqPathUtils.normalize(`${process.cwd()}/${name}`);
18
- SqFolderUtils.create(workspacePath);
19
- process.chdir(workspacePath);
20
- SqFileUtils.save(`${workspacePath}/workspace.json`, '{}');
21
- await processManager.execute(`npm i -D ${packagesToInstall.join(' ')}`);
22
- const registry = instance(FeatureModuleRegistry);
23
- registry.broadcastSpecific({ module: CreateWorkspaceModule, parameters: [] });
24
- await processManager.execute(`npx squire test-me`);
2
+ import { SqVirtualFileSystem } from "@code-squire/vfs";
3
+ const vfs = instance(SqVirtualFileSystem);
4
+ console.log('Vfs!', vfs);
25
5
  //# sourceMappingURL=create-workspace.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-workspace.js","sourceRoot":"","sources":["../../../../squire/create-workspace/src/create-workspace.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,qBAAq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AM,kBAAkB,CAAC;AAEvD,MAAM,GAAG,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAE1C,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "create-squire-workspace",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "main": "./create-workspace.js",
5
5
  "bin": "./create-workspace.js",
6
6
  "dependencies": {
7
- "@code-squire/vfs": "latest",
8
7
  "@code-squire/ioc": "latest",
9
- "@code-squire/utils": "latest",
10
8
  "@code-squire/feature-modules": "latest",
11
- "@code-squire/squire": "latest"
9
+ "@code-squire/squire": "latest",
10
+ "@code-squire/workspace": "latest"
12
11
  }
13
12
  }
@@ -1,2 +0,0 @@
1
- export declare class CreateWorkspaceModule {
2
- }
@@ -1,23 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { FeatureModule } from "@code-squire/feature-modules";
8
- import { TestCommand } from "./test.command";
9
- let CreateWorkspaceModule = class CreateWorkspaceModule {
10
- };
11
- CreateWorkspaceModule = __decorate([
12
- FeatureModule({
13
- exports: {
14
- cli: {
15
- registerCommands: [
16
- { packageName: 'test', commands: [TestCommand] }
17
- ]
18
- }
19
- }
20
- })
21
- ], CreateWorkspaceModule);
22
- export { CreateWorkspaceModule };
23
- //# sourceMappingURL=create-workspace.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-workspace.module.js","sourceRoot":"","sources":["../../../../squire/create-workspace/src/create-workspace.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAWtC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAI,CAAA;AAAzB,qBAAqB;IATjC,aAAa,CAAC;QACb,OAAO,EAAE;YACP,GAAG,EAAE;gBACH,gBAAgB,EAAE;oBAChB,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAE,WAAW,CAAE,EAAE;iBACnD;aACF;SACF;KACF,CAAC;GACW,qBAAqB,CAAI"}
package/test.command.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { SquireCommandInterface } from "@code-squire/squire";
2
- export interface TestCommand extends SquireCommandInterface {
3
- }
4
- export declare class TestCommand {
5
- }
package/test.command.js DELETED
@@ -1,16 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { SquireCommand } from "@code-squire/squire";
8
- let TestCommand = class TestCommand {
9
- };
10
- TestCommand = __decorate([
11
- SquireCommand({
12
- command: 'test-me'
13
- })
14
- ], TestCommand);
15
- export { TestCommand };
16
- //# sourceMappingURL=test.command.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.command.js","sourceRoot":"","sources":["../../../../squire/create-workspace/src/test.command.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAA0B,MAAM,qBAAqB,CAAC;AAOrE,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAI,CAAA;AAAf,WAAW;IAHvB,aAAa,CAAC;QACb,OAAO,EAAE,SAAS;KACnB,CAAC;GACW,WAAW,CAAI"}