@pixpilot/scaffoldfy-configs 0.26.0 → 0.27.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/CHANGELOG.md +12 -0
- package/README.md +10 -0
- package/package.json +4 -4
- package/workspace-generator/scaffoldfy.json +88 -0
- package/workspace-initializer/scaffoldfy.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -104,6 +104,16 @@ Usage:
|
|
|
104
104
|
npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/update-root-package-json/scaffoldfy.json
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
+
### workspace-generator
|
|
108
|
+
|
|
109
|
+
Initial setup for a pnpm + Turbo monorepo template, including project info, license, and initial package generation.
|
|
110
|
+
|
|
111
|
+
Usage:
|
|
112
|
+
|
|
113
|
+
```sh
|
|
114
|
+
npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/workspace-generator/scaffoldfy.json
|
|
115
|
+
```
|
|
116
|
+
|
|
107
117
|
### workspace-initializer
|
|
108
118
|
|
|
109
119
|
Initial setup for a pnpm + Turbo monorepo template, including project info, license, and initial package generation.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixpilot/scaffoldfy-configs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.0",
|
|
5
5
|
"author": "PixPilot <m.doaie@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^22.18.11",
|
|
25
25
|
"eslint": "^9.38.0",
|
|
26
|
-
"@internal/eslint-config": "0.3.0",
|
|
27
26
|
"@internal/prettier-config": "0.0.1",
|
|
28
|
-
"@internal/tsdown-config": "0.1.0",
|
|
29
27
|
"@internal/vitest-config": "0.1.0",
|
|
30
|
-
"@
|
|
28
|
+
"@internal/tsdown-config": "0.1.0",
|
|
29
|
+
"@pixpilot/scaffoldfy": "0.49.0",
|
|
30
|
+
"@internal/eslint-config": "0.3.0"
|
|
31
31
|
},
|
|
32
32
|
"prettier": "@internal/prettier-config",
|
|
33
33
|
"publishConfig": {
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
|
|
3
|
+
"extends": ["../workspace-initializer/scaffoldfy.json"],
|
|
4
|
+
"name": "pnpm-turbo-monorepo-template-setup",
|
|
5
|
+
"description": "Initial setup for a pnpm + Turbo monorepo template, including project info, license, and initial package generation.",
|
|
6
|
+
"prompts": [
|
|
7
|
+
{
|
|
8
|
+
"id": "keepExamplePackages",
|
|
9
|
+
"type": "confirm",
|
|
10
|
+
"message": "Keep example packages? (helpful for reference)",
|
|
11
|
+
"default": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "createFirstPackagePrompt",
|
|
15
|
+
"type": "confirm",
|
|
16
|
+
"message": "Create the first package now?",
|
|
17
|
+
"default": true
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"tasks": [
|
|
21
|
+
{
|
|
22
|
+
"id": "clean-readme",
|
|
23
|
+
"name": "Clean README",
|
|
24
|
+
"description": "Create a fresh README for the new project",
|
|
25
|
+
"type": "write",
|
|
26
|
+
"config": {
|
|
27
|
+
"file": "README.md",
|
|
28
|
+
"templateFile": "./templates/clean-readme.hbs"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "update-contributing",
|
|
33
|
+
"name": "Update CONTRIBUTING.md",
|
|
34
|
+
"description": "Update contributing guidelines with project info",
|
|
35
|
+
"type": "replace-in-file",
|
|
36
|
+
"config": {
|
|
37
|
+
"file": "CONTRIBUTING.md",
|
|
38
|
+
"replacements": [
|
|
39
|
+
{
|
|
40
|
+
"find": "<projectName>",
|
|
41
|
+
"replace": "{{projectName}}"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "handle-example-packages",
|
|
48
|
+
"name": "Handle example packages",
|
|
49
|
+
"description": "Prompt user about keeping example packages and remove if not wanted",
|
|
50
|
+
"type": "delete",
|
|
51
|
+
"config": {
|
|
52
|
+
"condition": "!keepExamplePackages",
|
|
53
|
+
"paths": ["packages/example-package"]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "remove-setup-script",
|
|
58
|
+
"name": "Remove setup script",
|
|
59
|
+
"description": "Remove the setup script from package.json after setup is complete",
|
|
60
|
+
"type": "regex-replace",
|
|
61
|
+
"config": {
|
|
62
|
+
"file": "package.json",
|
|
63
|
+
"pattern": "\\n\\s*\"setup\":\\s*\"npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/workspace-initializer/scaffoldfy.json\",",
|
|
64
|
+
"flags": "",
|
|
65
|
+
"replacement": ""
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "create-first-package",
|
|
70
|
+
"name": "Create first package",
|
|
71
|
+
"description": "Generate the first package in the monorepo using the package generator",
|
|
72
|
+
"type": "exec",
|
|
73
|
+
"config": {
|
|
74
|
+
"command": "pnpm run gen:package",
|
|
75
|
+
"condition": "createFirstPackagePrompt"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "reinstall-dependencies",
|
|
80
|
+
"name": "Reinstall dependencies",
|
|
81
|
+
"description": "Reinstall dependencies after cleanup",
|
|
82
|
+
"type": "exec",
|
|
83
|
+
"config": {
|
|
84
|
+
"command": "pnpm install"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"type": "regex-replace",
|
|
71
71
|
"config": {
|
|
72
72
|
"file": "package.json",
|
|
73
|
-
"pattern": "\\n\\s*\"setup\":\\s*\"npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/workspace-initializer/scaffoldfy.json\",",
|
|
73
|
+
"pattern": "\\n\\s*\"setup\":\\s*\"npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/workspace-initializer/scaffoldfy.json\",",
|
|
74
74
|
"flags": "",
|
|
75
75
|
"replacement": ""
|
|
76
76
|
}
|