create-squire-workspace 0.1.122 → 0.1.124
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/architect/architect.js +1 -1
- package/architect/architect.js.map +1 -1
- package/architect/generator/blueprint/!eslint!eslint.config.mjs +8 -0
- package/architect/generator/blueprint/__ignore__ +99 -0
- package/architect/generator/blueprint/readme.md +79 -0
- package/architect/generator/blueprint/tsconfig.json +23 -0
- package/architect/generator/blueprint/workspace.json +23 -0
- package/architect/generator/blueprint/workspace.module.ts +11 -0
- package/architect/generator/blueprint/workspace.schema.json +71 -0
- package/create-squire-workspace.js +1 -1
- package/package.json +9 -9
- package/architect/generator/blueprint/workspace.module.js +0 -22
- package/architect/generator/blueprint/workspace.module.js.map +0 -1
package/architect/architect.js
CHANGED
|
@@ -38,7 +38,7 @@ class WorkspaceArchitect {
|
|
|
38
38
|
await this.askUserNeeds();
|
|
39
39
|
this.logger.setShowTimeLapsed(false);
|
|
40
40
|
this.renderLogo();
|
|
41
|
-
await
|
|
41
|
+
await runGenerator('@code-squire/architect', 'workspace', { ...options, name });
|
|
42
42
|
!this.debug && options.linting && await this.installLinting(options.linting);
|
|
43
43
|
this.logWelcome();
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architect.js","sourceRoot":"","sources":["../../../../../../../../../../../create-workspace/src/architect/architect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,QAAQ,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBA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E,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACzC,CAAC;IAEM,KAAK,CAAC,cAAc;QACzB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAClC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;YAC1B,EAAE,OAAO,EAAE,KAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC;YAC7C,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAE5B,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,EAAE,CAAC;QAElB,MAAM,
|
|
1
|
+
{"version":3,"file":"architect.js","sourceRoot":"","sources":["../../../../../../../../../../../create-workspace/src/architect/architect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,QAAQ,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,EAAE,mBAAmB,EAAgB,MAAM,kBAAkB,CAAC;AACrE,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,MAAM,UAAU,GAAG,cAAc,CAAC;AAElC,MAAM,kBAAkB;IACd,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;IAChC,MAAM,GAAG,QAAQ,CAAC,eAAe,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build
|
|
3
|
+
|
|
4
|
+
# Logs
|
|
5
|
+
logs
|
|
6
|
+
*.log
|
|
7
|
+
npm-debug.log*
|
|
8
|
+
yarn-debug.log*
|
|
9
|
+
yarn-error.log*
|
|
10
|
+
lerna-debug.log*
|
|
11
|
+
|
|
12
|
+
# Typescript
|
|
13
|
+
tsc-build-info
|
|
14
|
+
*.tsbuildinfo
|
|
15
|
+
|
|
16
|
+
# Temporary folders
|
|
17
|
+
./tmp
|
|
18
|
+
./temp
|
|
19
|
+
./test
|
|
20
|
+
./testing
|
|
21
|
+
|
|
22
|
+
# TypeScript v1 declaration files
|
|
23
|
+
typings/
|
|
24
|
+
|
|
25
|
+
/.idea
|
|
26
|
+
.project
|
|
27
|
+
.classpath
|
|
28
|
+
.c9/
|
|
29
|
+
*.launch
|
|
30
|
+
.settings/
|
|
31
|
+
*.sublime-workspace
|
|
32
|
+
|
|
33
|
+
# IDE - VSCode
|
|
34
|
+
.vscode/*
|
|
35
|
+
!.vscode/settings.json
|
|
36
|
+
!.vscode/tasks.json
|
|
37
|
+
!.vscode/launch.json
|
|
38
|
+
!.vscode/extensions.json
|
|
39
|
+
.history/*
|
|
40
|
+
|
|
41
|
+
#builds
|
|
42
|
+
dist
|
|
43
|
+
|
|
44
|
+
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
45
|
+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
46
|
+
|
|
47
|
+
# Runtime data
|
|
48
|
+
pids
|
|
49
|
+
*.pid
|
|
50
|
+
*.seed
|
|
51
|
+
*.pid.lock
|
|
52
|
+
|
|
53
|
+
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
54
|
+
lib-cov
|
|
55
|
+
|
|
56
|
+
# Coverage directory used by tools like istanbul
|
|
57
|
+
coverage
|
|
58
|
+
*.lcov
|
|
59
|
+
|
|
60
|
+
# nyc test coverage
|
|
61
|
+
.nyc_output
|
|
62
|
+
|
|
63
|
+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
64
|
+
.grunt
|
|
65
|
+
|
|
66
|
+
# Bower dependency directory (https://bower.io/)
|
|
67
|
+
bower_components
|
|
68
|
+
|
|
69
|
+
# node-waf configuration
|
|
70
|
+
.lock-wscript
|
|
71
|
+
|
|
72
|
+
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
73
|
+
build/Release
|
|
74
|
+
|
|
75
|
+
# Dependency directories
|
|
76
|
+
node_modules/
|
|
77
|
+
jspm_packages/
|
|
78
|
+
|
|
79
|
+
# Optional npm cache directory
|
|
80
|
+
.npm
|
|
81
|
+
|
|
82
|
+
# Optional eslint cache
|
|
83
|
+
.eslintcache
|
|
84
|
+
|
|
85
|
+
# Optional REPL history
|
|
86
|
+
.node_repl_history
|
|
87
|
+
|
|
88
|
+
# Output of 'npm pack'
|
|
89
|
+
*.tgz
|
|
90
|
+
|
|
91
|
+
# Yarn Integrity file
|
|
92
|
+
.yarn-integrity
|
|
93
|
+
|
|
94
|
+
# dotenv environment variables file
|
|
95
|
+
.env
|
|
96
|
+
.env.test
|
|
97
|
+
|
|
98
|
+
# next.js build output
|
|
99
|
+
.next
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# ~< capitalize(name) >~ Workspace
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
### Workspace
|
|
6
|
+
Your workspace can contain dozens or even hundreds of projects, front-end, back-end, dev-ops, libraries, and much more.
|
|
7
|
+
To help you maintain and expand your workspace, your trusted Squire© will help you out with most tasks that are honestly beneath you.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Sit back, grab a drink and some popcorn and watch while your Squire© works enthusiastically on tasks for you such as:
|
|
11
|
+
- Generating code
|
|
12
|
+
- Building / Serving / Deploying / Publishing projects
|
|
13
|
+
- Running workspace tasks to maintain and protect the workspace
|
|
14
|
+
|
|
15
|
+
Your Squire© is your trusted companion that you can easily tell what to do. In order to tell your Squire© what you need done
|
|
16
|
+
and how you need it done, you can use tasks. There are three types of tasks to correspond with the work the Squire© can do for you.
|
|
17
|
+
- Generation tasks
|
|
18
|
+
- Project tasks
|
|
19
|
+
- Workspace tasks
|
|
20
|
+
|
|
21
|
+
Further on we will elaborate on the differences between these tasks.
|
|
22
|
+
|
|
23
|
+
### namespaces
|
|
24
|
+
@code-squire workspaces support namespaces. A namespaces is typically a grouping of projects representing a branch of servicewithin a company. For instance, a company that sells software for banking and software for real estate.
|
|
25
|
+
You could choose to separate these projects by creating a separate namespace for each.
|
|
26
|
+
|
|
27
|
+
### Projects
|
|
28
|
+
Workspaces support all kinds of projects, the sky is the limit. The only thing you need to generate and use new project types in your workspace,
|
|
29
|
+
is to install the package and engage with your squire.
|
|
30
|
+
|
|
31
|
+
Lets say for example want to generate a react or angular project.<br/>
|
|
32
|
+
```
|
|
33
|
+
npm i -D @code-squire/angular @code-squire/react
|
|
34
|
+
```
|
|
35
|
+
<br/>
|
|
36
|
+
|
|
37
|
+
```npx squire generate application my-app```
|
|
38
|
+
|
|
39
|
+
In above example your Squire will ask you if you would like to generate an application using
|
|
40
|
+
```@code-squire/angular``` or ```@code-squire/react```.
|
|
41
|
+
|
|
42
|
+
### Tasks
|
|
43
|
+
#### Generation tasks
|
|
44
|
+
Your workspace is already setup to use the squire to generate whatever you would like.
|
|
45
|
+
<br/>
|
|
46
|
+
typically a generation command looks like like this:<br/><br/>
|
|
47
|
+
```npx squire generate <entity> name```
|
|
48
|
+
<br/><br/>
|
|
49
|
+
this <entity> could be anything, ranging from projects to coding patterns. *Examples:*<br/>
|
|
50
|
+
|
|
51
|
+
```npx squire generate namespace insurances```<br/>
|
|
52
|
+
```npx squire generate library design-system```<br/>
|
|
53
|
+
|
|
54
|
+
#### Project tasks
|
|
55
|
+
Project tasks are tasks that are exclusively created to take action on a given project. Typical actions include
|
|
56
|
+
building, serving, deploying and publishing projects. Examples of such commands:
|
|
57
|
+
<br/>
|
|
58
|
+
|
|
59
|
+
```npx squire build design-system```<br/>
|
|
60
|
+
```npx squire publish design-system```<br/>
|
|
61
|
+
|
|
62
|
+
#### Workspace tasks
|
|
63
|
+
Workspace tasks are typically ran on the entire workspace. Imagine scrips to clean-up, publishing/deploying clusters, testing an entire namespace etc.
|
|
64
|
+
Workspace tasks are generally less frequently ran tasks and therefor do not have a typical squire cli approach.
|
|
65
|
+
Luckily it is very easy to create custom cli commands to execute these more custom tasks.
|
|
66
|
+
|
|
67
|
+
## Next steps:
|
|
68
|
+
The squire is now your personal companion to order around and make your development life easier.
|
|
69
|
+
|
|
70
|
+
### Newcomers
|
|
71
|
+
If it is your very first Squire© Workspace we recommend trying our playground workspace that will help you get an idea of
|
|
72
|
+
the possibilities and potentially inspire you to try out the tools and find that many "complex" wishes you had in the past,
|
|
73
|
+
are now easy and within reach for you to build and share with anyone.
|
|
74
|
+
Let your creativity be the limiting factor rather than the complexity of the tooling you leverage.
|
|
75
|
+
To create the playground
|
|
76
|
+
|
|
77
|
+
### Returning champions
|
|
78
|
+
For those returning, good luck on creating the next big thing!
|
|
79
|
+
Generate your desired setup and get to it for the kingdom :)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"strict": true,
|
|
4
|
+
"rootDir": ".",
|
|
5
|
+
"baseUrl": ".",
|
|
6
|
+
"module": "EsNext",
|
|
7
|
+
"moduleResolution": "Node",
|
|
8
|
+
"target": "ESNext",
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"strictNullChecks": false,
|
|
11
|
+
"noImplicitAny": false,
|
|
12
|
+
"noImplicitReturns": true,
|
|
13
|
+
"noUnusedLocals": false,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"removeComments": true,
|
|
16
|
+
"listFiles": false,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"traceResolution": false,
|
|
19
|
+
"experimentalDecorators": true,
|
|
20
|
+
"emitDecoratorMetadata": true,
|
|
21
|
+
"paths": { }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "workspace.schema.json",
|
|
3
|
+
~if (scope) { "scope": "~< scope >~", } if~
|
|
4
|
+
"projects": { },
|
|
5
|
+
"namespaces": { },
|
|
6
|
+
"module": {
|
|
7
|
+
"name": "~< pascalCase(name) >~WorkspaceModule",
|
|
8
|
+
"path": "workspace.module.ts"
|
|
9
|
+
},
|
|
10
|
+
~if (linting) { "linting": "~< linting >~", } if~
|
|
11
|
+
"logging": {
|
|
12
|
+
"showTimeElapsed": true,
|
|
13
|
+
"logLevels": {
|
|
14
|
+
"info": true,
|
|
15
|
+
"warning": true,
|
|
16
|
+
"error": true,
|
|
17
|
+
"success": true
|
|
18
|
+
},
|
|
19
|
+
"features": {
|
|
20
|
+
"initializing": { "show": true }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FeatureModule } from '@code-squire/feature-modules';
|
|
2
|
+
import { VfsModuleInterface } from '@code-squire/vfs'
|
|
3
|
+
|
|
4
|
+
@FeatureModule<VfsModuleInterface>({
|
|
5
|
+
exports: {
|
|
6
|
+
vfs: {
|
|
7
|
+
rules: {}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
})
|
|
11
|
+
export class ~< pascalCase(name) >~WorkspaceModule { }
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Squire workspace configuration schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"$schema": { "type": "string" },
|
|
7
|
+
"scope": { "type": "string" },
|
|
8
|
+
"namespaces": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"patternProperties": {
|
|
11
|
+
"^[a-zA-z0-9]+$": { "type": "string" }
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"projects": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"patternProperties": {
|
|
17
|
+
"^[a-zA-z0-9]+$": { "type": "string" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"module": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"properties": {
|
|
24
|
+
"name": { "type": "string" },
|
|
25
|
+
"path": { "type": "string" }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"linting": {
|
|
29
|
+
"enum": [ "none", "es-lint" ]
|
|
30
|
+
},
|
|
31
|
+
"logging": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"properties": {
|
|
35
|
+
"showTimeElapsed": { "type": "boolean" },
|
|
36
|
+
"logLevels": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"properties": {
|
|
40
|
+
"info": { "type": "boolean" },
|
|
41
|
+
"warning": { "type": "boolean" },
|
|
42
|
+
"success": { "type": "boolean" },
|
|
43
|
+
"error": { "type": "boolean" }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"features": {
|
|
47
|
+
"patternProperties": {
|
|
48
|
+
"^[a-zA-z0-9]+$": {
|
|
49
|
+
"type": [ "object", "boolean" ],
|
|
50
|
+
"patternProperties": {
|
|
51
|
+
"^[a-zA-z0-9]+$": {
|
|
52
|
+
"type": [ "object", "boolean" ],
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"properties": {
|
|
55
|
+
"color": {
|
|
56
|
+
"enum": [ "magenta", "cyan", "yellow", "green", "blue", "white", "red", "black" ]
|
|
57
|
+
},
|
|
58
|
+
"show": { "type": "boolean" },
|
|
59
|
+
"brightness": {
|
|
60
|
+
"enum": [ "dim", "normal", "bright" ]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -6,7 +6,7 @@ import process from "node:process";
|
|
|
6
6
|
import filesystem from "fs";
|
|
7
7
|
const localFlag = 'local=true';
|
|
8
8
|
class CreateSquireWorkspace {
|
|
9
|
-
version = '0.1.
|
|
9
|
+
version = '0.1.124';
|
|
10
10
|
async create() {
|
|
11
11
|
const { name, local } = this.parseArgs();
|
|
12
12
|
const extension = nodePath.extname(import.meta.url);
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-squire-workspace",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.124",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./create-workspace.js",
|
|
6
6
|
"types": "./create-squire-workspace.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@code-squire/workspace": "~0.1.
|
|
9
|
-
"@code-squire/utils": "~0.1.
|
|
10
|
-
"@code-squire/node-cli": "~0.1.
|
|
11
|
-
"@code-squire/feature-modules": "~0.1.
|
|
12
|
-
"@code-squire/vfs": "~0.1.
|
|
13
|
-
"@code-squire/ioc": "~0.1.
|
|
14
|
-
"@code-squire/terminal": "~0.1.
|
|
15
|
-
"@code-squire/node-utils": "~0.1.
|
|
8
|
+
"@code-squire/workspace": "~0.1.124",
|
|
9
|
+
"@code-squire/utils": "~0.1.124",
|
|
10
|
+
"@code-squire/node-cli": "~0.1.124",
|
|
11
|
+
"@code-squire/feature-modules": "~0.1.124",
|
|
12
|
+
"@code-squire/vfs": "~0.1.124",
|
|
13
|
+
"@code-squire/ioc": "~0.1.124",
|
|
14
|
+
"@code-squire/terminal": "~0.1.124",
|
|
15
|
+
"@code-squire/node-utils": "~0.1.124"
|
|
16
16
|
},
|
|
17
17
|
"bin": "./create-squire-workspace.js"
|
|
18
18
|
}
|
|
@@ -1,22 +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
|
-
let default_1 = class {
|
|
9
|
-
};
|
|
10
|
-
default_1 = __decorate([
|
|
11
|
-
FeatureModule({
|
|
12
|
-
exports: {
|
|
13
|
-
vfs: {
|
|
14
|
-
rules: {}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
})
|
|
18
|
-
], default_1);
|
|
19
|
-
export { default_1 };
|
|
20
|
-
~(name) > ~WorkspaceModule;
|
|
21
|
-
{ }
|
|
22
|
-
//# sourceMappingURL=workspace.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.module.js","sourceRoot":"","sources":["../../../../../../../../../../../../../create-workspace/src/architect/generator/blueprint/workspace.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAUtD,gBAAA;CAAK,CAAA;AAAL;IAPN,aAAa,CAAqB;QACjC,OAAO,EAAE;YACP,GAAG,EAAE;gBACH,KAAK,EAAE,EAAE;aACV;SACF;KACF,CAAC;aACU;;AAAC,CAAa,CAAC,IAAI,CAAC,GAAE,CAAC,eAAe,CAAA;AAAC,CAAC,CAAC,CAAC"}
|