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.
- package/create-workspace.d.ts +0 -1
- package/create-workspace.js +3 -23
- package/create-workspace.js.map +1 -1
- package/package.json +3 -4
- package/create-workspace.module.d.ts +0 -2
- package/create-workspace.module.js +0 -23
- package/create-workspace.module.js.map +0 -1
- package/test.command.d.ts +0 -5
- package/test.command.js +0 -16
- package/test.command.js.map +0 -1
package/create-workspace.d.ts
CHANGED
package/create-workspace.js
CHANGED
|
@@ -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 {
|
|
5
|
-
|
|
6
|
-
|
|
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
|
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":"
|
|
1
|
+
{"version":3,"file":"create-workspace.js","sourceRoot":"","sources":["../../../../squire/create-workspace/src/create-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,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.
|
|
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,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
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
|
package/test.command.js.map
DELETED
|
@@ -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"}
|