create-squire-workspace 0.0.708 → 0.0.711
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.
|
@@ -8,6 +8,7 @@ class CreateWorkspace {
|
|
|
8
8
|
terminal = instance(SqTerminal);
|
|
9
9
|
logger = instance(WorkspaceLogger);
|
|
10
10
|
processManager = new SqProcessManager();
|
|
11
|
+
version = '0.0.711';
|
|
11
12
|
async create() {
|
|
12
13
|
const [target] = process.argv.slice(2);
|
|
13
14
|
const workspacePath = SqPathUtils.normalize(`${process.cwd()}/${target}`);
|
|
@@ -22,7 +23,7 @@ class CreateWorkspace {
|
|
|
22
23
|
SqFileUtils.saveJson(packageJsonPath, { name: target, version: '0.0.1' });
|
|
23
24
|
this.renderLogo();
|
|
24
25
|
this.logger.startLoading('architect', 'installing workspace-architect');
|
|
25
|
-
await processManager.execute(`npm i -D @code-squire/workspace-architect
|
|
26
|
+
await processManager.execute(`npm i -D @code-squire/workspace-architect@${this.version}`, { folder: workspacePath });
|
|
26
27
|
this.logger.stopLoading('architect', 'Workspace architect installed');
|
|
27
28
|
this.logger.startLoading('generate-workspace', 'Architecting workspace');
|
|
28
29
|
this.logger.newLine();
|
|
@@ -33,10 +34,7 @@ class CreateWorkspace {
|
|
|
33
34
|
showExitCode: false,
|
|
34
35
|
outputFn: (data) => this.terminal.write(data)
|
|
35
36
|
});
|
|
36
|
-
const postPosition = await this.terminal.cursor.getPosition();
|
|
37
|
-
this.terminal.cursor.set({ x, y: y - 1 });
|
|
38
37
|
this.logger.stopLoading('generate-workspace', 'Workspace architecture done');
|
|
39
|
-
this.terminal.cursor.set(postPosition);
|
|
40
38
|
await this.installCodeSquire();
|
|
41
39
|
this.logger.startLoading('uninstalling-architect', 'Uninstall @code-squire/workspace-architect');
|
|
42
40
|
await processManager.execute(`npm uninstall @code-squire/workspace-architect@0.0.707`);
|
|
@@ -56,20 +54,20 @@ class CreateWorkspace {
|
|
|
56
54
|
async installCodeSquire() {
|
|
57
55
|
this.logger.startLoading('installing', 'Installing @code-squire packages');
|
|
58
56
|
const packagesToInstall = [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
`@code-squire/common@${this.version}`,
|
|
58
|
+
`@code-squire/utils@${this.version}`,
|
|
59
|
+
`@code-squire/ioc@${this.version}`,
|
|
60
|
+
`@code-squire/composition@${this.version}`,
|
|
61
|
+
`@code-squire/vfs@${this.version}`,
|
|
62
|
+
`@code-squire/squire@${this.version}`,
|
|
63
|
+
`@code-squire/feature-modules@${this.version}`,
|
|
64
|
+
`@code-squire/workspace@${this.version}`
|
|
67
65
|
];
|
|
68
66
|
await this.processManager.execute(`npm i -D ${packagesToInstall.join(' ')}`);
|
|
69
67
|
this.logger.stopLoading('installing', '@code-squire packages installed');
|
|
70
68
|
}
|
|
71
69
|
logWelcome() {
|
|
72
|
-
this.terminal.log(
|
|
70
|
+
this.terminal.log(`\nGet started by opening your brand new workspace in your favourite IDE.`);
|
|
73
71
|
this.terminal.log('In the root of your workspace, find further guidance on next steps in the readme.md.\n');
|
|
74
72
|
this.terminal.log('Best of luck building something amazing with your trusted Squire by your side.');
|
|
75
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-squire-workspace.js","sourceRoot":"","sources":["../../../../../squire/create-workspace/src/create-squire-workspace.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"create-squire-workspace.js","sourceRoot":"","sources":["../../../../../squire/create-workspace/src/create-squire-workspace.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;A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,gFAAgF,CAAC,CAAC;IACtG,CAAC;IAEO,UAAU;QAChB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QACtB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;;;;;;;CAOrB,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;CACF;AAED,MAAM,OAAO,GAAG,IAAI,eAAe,EAAE,CAAC;AACtC,MAAM,QAAQ,CAAC,UAAU,CAAC,CAAC,cAAc,EAAE,CAAC;AAC5C,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-squire-workspace",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.711",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./create-workspace.js",
|
|
6
6
|
"types": "./create-squire-workspace.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@code-squire/utils": "0.0.
|
|
9
|
-
"@code-squire/terminal": "0.0.
|
|
10
|
-
"@code-squire/workspace": "0.0.
|
|
11
|
-
"@code-squire/ioc": "0.0.
|
|
12
|
-
"@code-squire/node-cli": "0.0.
|
|
8
|
+
"@code-squire/utils": "0.0.711",
|
|
9
|
+
"@code-squire/terminal": "0.0.711",
|
|
10
|
+
"@code-squire/workspace": "0.0.711",
|
|
11
|
+
"@code-squire/ioc": "0.0.711",
|
|
12
|
+
"@code-squire/node-cli": "0.0.711"
|
|
13
13
|
},
|
|
14
14
|
"bin": "./create-squire-workspace.js"
|
|
15
15
|
}
|