create-squire-workspace 0.0.19 → 0.0.21

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.
@@ -2,7 +2,7 @@
2
2
  import { SqFileUtils, SqFolderUtils, SqPathUtils, SqProcessManager } from "@code-squire/utils";
3
3
  import { instance } from "@code-squire/ioc";
4
4
  import { FeatureModuleRegistry } from "@code-squire/feature-modules";
5
- import { SquireModule } from "@code-squire/squire";
5
+ import { CreateWorkspaceModule } from "./create-workspace.module";
6
6
  const packagesToInstall = [
7
7
  "@code-squire/ioc",
8
8
  "@code-squire/feature-modules",
@@ -20,6 +20,6 @@ process.chdir(workspacePath);
20
20
  SqFileUtils.save(`${workspacePath}/workspace.json`, '{}');
21
21
  await processManager.execute(`npm i -D ${packagesToInstall.join(' ')}`);
22
22
  const registry = instance(FeatureModuleRegistry);
23
- registry.broadcastSpecific({ module: SquireModule, parameters: [] });
24
- await processManager.execute(`npx squire help`);
23
+ registry.broadcastSpecific({ module: CreateWorkspaceModule, parameters: [] });
24
+ await processManager.execute(`npx squire test-me`);
25
25
  //# 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,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,iBAAiB,GAAa;IAClC,kBAAkB;IAClB,8BAA8B;IAC9B,qBAAqB;IACrB,wBAAwB;CACzB,CAAC;AAEF,MAAM,cAAc,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAC9C,MAAM,CAAE,IAAI,CAA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,MAAM,cAAc,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAC9C,MAAM,CAAE,IAAI,CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACvC,IAAI,CAAC,IAAI;IAAE,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;AAEhF,MAAM,cAAc,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;AACnD,MAAM,aAAa,GAAG,WAAW,CAAC,SAAS,CAAC,GAAI,OAAO,CAAC,GAAG,EAAG,IAAK,IAAK,EAAE,CAAC,CAAC;AAC5E,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AAEpC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;AAC7B,WAAW,CAAC,IAAI,CAAC,GAAI,aAAc,iBAAiB,EAAE,IAAI,CAAC,CAAC;AAC5D,MAAM,cAAc,CAAC,OAAO,CAAC,YAAa,iBAAiB,CAAC,IAAI,CAAC,GAAG,CAAE,EAAE,CAAC,CAAC;AAE1E,MAAM,QAAQ,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AACjD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;AAE9E,MAAM,cAAc,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare class CreateWorkspaceModule {
2
+ }
@@ -0,0 +1,23 @@
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
@@ -0,0 +1 @@
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-squire-workspace",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "main": "./create-workspace.js",
5
5
  "bin": "./create-workspace.js",
6
6
  "dependencies": {
@@ -0,0 +1,5 @@
1
+ import { SquireCommandInterface } from "@code-squire/squire";
2
+ export interface TestCommand extends SquireCommandInterface {
3
+ }
4
+ export declare class TestCommand {
5
+ }
@@ -0,0 +1,16 @@
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
@@ -0,0 +1 @@
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"}