@turbo/gen 1.9.9 → 1.10.0-canary.0
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/dist/cli.js +52 -50
- package/dist/templates/simple-js/config.js +18 -6
- package/dist/templates/simple-js/templates/turborepo-generators.hbs +3 -3
- package/dist/templates/simple-ts/config.ts +18 -6
- package/dist/templates/simple-ts/templates/turborepo-generators.hbs +3 -3
- package/package.json +2 -2
|
@@ -6,12 +6,19 @@ module.exports = function generator(plop) {
|
|
|
6
6
|
{
|
|
7
7
|
type: "input",
|
|
8
8
|
name: "file",
|
|
9
|
-
message: "What is the name of the file to create?",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
message: "What is the name of the new file to create?",
|
|
10
|
+
validate: (input) => {
|
|
11
|
+
if (input.includes(".")) {
|
|
12
|
+
return "file name cannot include an extension";
|
|
13
|
+
}
|
|
14
|
+
if (input.includes(" ")) {
|
|
15
|
+
return "file name cannot include spaces";
|
|
16
|
+
}
|
|
17
|
+
if (!input) {
|
|
18
|
+
return "file name is required";
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
},
|
|
15
22
|
},
|
|
16
23
|
{
|
|
17
24
|
type: "list",
|
|
@@ -19,6 +26,11 @@ module.exports = function generator(plop) {
|
|
|
19
26
|
message: "What type of file should be created?",
|
|
20
27
|
choices: [".md", ".txt"],
|
|
21
28
|
},
|
|
29
|
+
{
|
|
30
|
+
type: "input",
|
|
31
|
+
name: "title",
|
|
32
|
+
message: "What should be the title of the new file?",
|
|
33
|
+
},
|
|
22
34
|
],
|
|
23
35
|
actions: [
|
|
24
36
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# {{ title }}
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
### Created with Turborepo Generators
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Read the docs at [turbo.build](https://turbo.build/repo/docs/core-concepts/monorepos/code-generation).
|
|
@@ -8,12 +8,19 @@ export default function generator(plop: PlopTypes.NodePlopAPI): void {
|
|
|
8
8
|
{
|
|
9
9
|
type: "input",
|
|
10
10
|
name: "file",
|
|
11
|
-
message: "What is the name of the file to create?",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
message: "What is the name of the new file to create?",
|
|
12
|
+
validate: (input: string) => {
|
|
13
|
+
if (input.includes(".")) {
|
|
14
|
+
return "file name cannot include an extension";
|
|
15
|
+
}
|
|
16
|
+
if (input.includes(" ")) {
|
|
17
|
+
return "file name cannot include spaces";
|
|
18
|
+
}
|
|
19
|
+
if (!input) {
|
|
20
|
+
return "file name is required";
|
|
21
|
+
}
|
|
22
|
+
return true;
|
|
23
|
+
},
|
|
17
24
|
},
|
|
18
25
|
{
|
|
19
26
|
type: "list",
|
|
@@ -21,6 +28,11 @@ export default function generator(plop: PlopTypes.NodePlopAPI): void {
|
|
|
21
28
|
message: "What type of file should be created?",
|
|
22
29
|
choices: [".md", ".txt"],
|
|
23
30
|
},
|
|
31
|
+
{
|
|
32
|
+
type: "input",
|
|
33
|
+
name: "title",
|
|
34
|
+
message: "What should be the title of the new file?",
|
|
35
|
+
},
|
|
24
36
|
],
|
|
25
37
|
actions: [
|
|
26
38
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# {{ title }}
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
### Created with Turborepo Generators
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Read the docs at [turbo.build](https://turbo.build/repo/docs/core-concepts/monorepos/code-generation).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turbo/gen",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0-canary.0",
|
|
4
4
|
"description": "Extend a Turborepo",
|
|
5
5
|
"homepage": "https://turbo.build/repo",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@turbo/test-utils": "0.0.0",
|
|
31
31
|
"@turbo/tsconfig": "0.0.0",
|
|
32
32
|
"@turbo/utils": "0.0.0",
|
|
33
|
-
"@turbo/workspaces": "1.
|
|
33
|
+
"@turbo/workspaces": "1.10.0-canary.0",
|
|
34
34
|
"@types/fs-extra": "^9.0.13",
|
|
35
35
|
"@types/inquirer": "^8.2.5",
|
|
36
36
|
"@types/jest": "^27.4.0",
|