@pixpilot/scaffoldfy-configs 0.27.0 → 0.28.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @pixpilot/scaffoldfy-configs
2
2
 
3
+ ## 0.28.0
4
+
5
+ ### Minor Changes
6
+
7
+ - add loading spinner for remote file fetching
8
+
9
+ ### Patch Changes
10
+
11
+ - update package URL to use latest version
12
+
3
13
  ## 0.27.0
4
14
 
5
15
  ### Minor Changes
package/README.md CHANGED
@@ -21,7 +21,7 @@ Generate a LICENSE file with common open-source licenses
21
21
  Usage:
22
22
 
23
23
  ```sh
24
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/license-file/scaffoldfy.json
24
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/license-file/scaffoldfy.json
25
25
  ```
26
26
 
27
27
  ### monorepo-generate-packages-section
@@ -31,7 +31,7 @@ Generates packages section in monorepo README by reading package.json files
31
31
  Usage:
32
32
 
33
33
  ```sh
34
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/monorepo-generate-packages-section/scaffoldfy.json
34
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/monorepo-generate-packages-section/scaffoldfy.json
35
35
  ```
36
36
 
37
37
  ### pixpilot-changesets-release
@@ -41,7 +41,7 @@ Pixpilot workspace package generator template for pnpm + Turbo monorepo. Provide
41
41
  Usage:
42
42
 
43
43
  ```sh
44
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/pixpilot-changesets-release/scaffoldfy.json
44
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/pixpilot-changesets-release/scaffoldfy.json
45
45
  ```
46
46
 
47
47
  ### pixpilot-copilot-instructions
@@ -51,7 +51,7 @@ GitHub Copilot instructions template for Pixpilot projects
51
51
  Usage:
52
52
 
53
53
  ```sh
54
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/pixpilot-copilot-instructions/scaffoldfy.json
54
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/pixpilot-copilot-instructions/scaffoldfy.json
55
55
  ```
56
56
 
57
57
  ### pixpilot-info
@@ -61,7 +61,7 @@ Project information prompts for pnpm-turbo-monorepo-template
61
61
  Usage:
62
62
 
63
63
  ```sh
64
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/pixpilot-info/scaffoldfy.json
64
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/pixpilot-info/scaffoldfy.json
65
65
  ```
66
66
 
67
67
  ### project-info
@@ -71,7 +71,7 @@ Project information prompts for pnpm-turbo-monorepo-template
71
71
  Usage:
72
72
 
73
73
  ```sh
74
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/project-info/scaffoldfy.json
74
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/project-info/scaffoldfy.json
75
75
  ```
76
76
 
77
77
  ### security-policy
@@ -81,7 +81,7 @@ Security policy template with configurable contact email
81
81
  Usage:
82
82
 
83
83
  ```sh
84
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/security-policy/scaffoldfy.json
84
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/security-policy/scaffoldfy.json
85
85
  ```
86
86
 
87
87
  ### turbo-workspace-package-generator
@@ -91,7 +91,7 @@ Pixpilot workspace package generator template for pnpm + Turbo monorepo. Provide
91
91
  Usage:
92
92
 
93
93
  ```sh
94
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/turbo-workspace-package-generator/scaffoldfy.json
94
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/turbo-workspace-package-generator/scaffoldfy.json
95
95
  ```
96
96
 
97
97
  ### update-root-package-json
@@ -101,17 +101,17 @@ Update root package.json with repository information
101
101
  Usage:
102
102
 
103
103
  ```sh
104
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/update-root-package-json/scaffoldfy.json
104
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/update-root-package-json/scaffoldfy.json
105
105
  ```
106
106
 
107
107
  ### workspace-generator
108
108
 
109
- Initial setup for a pnpm + Turbo monorepo template, including project info, license, and initial package generation.
109
+ Generate workspace with apps and packages
110
110
 
111
111
  Usage:
112
112
 
113
113
  ```sh
114
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/workspace-generator/scaffoldfy.json
114
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/workspace-generator/scaffoldfy.json
115
115
  ```
116
116
 
117
117
  ### workspace-initializer
@@ -121,7 +121,7 @@ Initial setup for a pnpm + Turbo monorepo template, including project info, lice
121
121
  Usage:
122
122
 
123
123
  ```sh
124
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/workspace-initializer/scaffoldfy.json
124
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/workspace-initializer/scaffoldfy.json
125
125
  ```
126
126
 
127
127
  ### workspace-package-generator
@@ -131,7 +131,7 @@ Generate a new package for a pnpm + Turbo monorepo workspace
131
131
  Usage:
132
132
 
133
133
  ```sh
134
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/workspace-package-generator/scaffoldfy.json
134
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/workspace-package-generator/scaffoldfy.json
135
135
  ```
136
136
 
137
137
  ### workspace-package-generator/experiment
@@ -141,7 +141,7 @@ Generate a new package for a pnpm + Turbo monorepo workspace
141
141
  Usage:
142
142
 
143
143
  ```sh
144
- npx @pixpilot/scaffoldfy --config https://unpkg.com/@pixpilot/scaffoldfy-configs/workspace-package-generator/experiment/scaffoldfy.json
144
+ npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/workspace-package-generator/experiment/scaffoldfy.json
145
145
  ```
146
146
 
147
147
  <!-- scaffoldfy-templates:end -->
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/scaffoldfy-configs",
3
3
  "type": "module",
4
- "version": "0.27.0",
4
+ "version": "0.28.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",
26
27
  "@internal/prettier-config": "0.0.1",
27
28
  "@internal/vitest-config": "0.1.0",
28
- "@internal/tsdown-config": "0.1.0",
29
- "@pixpilot/scaffoldfy": "0.49.0",
30
- "@internal/eslint-config": "0.3.0"
29
+ "@pixpilot/scaffoldfy": "0.50.0",
30
+ "@internal/tsdown-config": "0.1.0"
31
31
  },
32
32
  "prettier": "@internal/prettier-config",
33
33
  "publishConfig": {
@@ -4,7 +4,7 @@ import { fileURLToPath } from 'node:url';
4
4
 
5
5
  const packageDirectory = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
6
6
  const readmePath = path.join(packageDirectory, 'README.md');
7
- const packageUrl = 'https://unpkg.com/@pixpilot/scaffoldfy-configs';
7
+ const packageUrl = 'https://unpkg.com/@pixpilot/scaffoldfy-configs@latest';
8
8
  const startMarker = '<!-- scaffoldfy-templates:start -->';
9
9
  const endMarker = '<!-- scaffoldfy-templates:end -->';
10
10
  const ignoredDirectories = new Set(['.cache', '.turbo', 'node_modules']);
@@ -62,7 +62,7 @@ async function generateReadme() {
62
62
  const generatedSection = templates
63
63
  .map(
64
64
  ({ configUrl, description, name }) =>
65
- `### ${name}\n\n${description}\n\nUsage:\n\n\`\`\`sh\nnpx @pixpilot/scaffoldfy --config ${configUrl}\n\`\`\``,
65
+ `### ${name}\n\n${description}\n\nUsage:\n\n\`\`\`sh\nnpx @pixpilot/scaffoldfy@latest --config ${configUrl}\n\`\`\``,
66
66
  )
67
67
  .join('\n\n');
68
68
  const readme = await readFile(readmePath, 'utf8');
@@ -2,32 +2,33 @@
2
2
  "$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
3
3
  "extends": ["../workspace-initializer/scaffoldfy.json"],
4
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.",
5
+ "description": "Generate workspace with apps and packages",
6
6
  "prompts": [
7
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
8
+ "id": "workspaceApps",
9
+ "type": "checkbox",
10
+ "message": "Select the apps to include:",
11
+ "choices": [
12
+ {
13
+ "name": "Library",
14
+ "value": "library"
15
+ },
16
+ {
17
+ "name": "Next.js",
18
+ "value": "nextjs"
19
+ },
20
+ {
21
+ "name": "Chrome Extension",
22
+ "value": "chrome-extension"
23
+ },
24
+ {
25
+ "name": "Expo",
26
+ "value": "expo"
27
+ }
28
+ ]
18
29
  }
19
30
  ],
20
31
  "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
  {
32
33
  "id": "update-contributing",
33
34
  "name": "Update CONTRIBUTING.md",
@@ -42,47 +43,6 @@
42
43
  }
43
44
  ]
44
45
  }
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
46
  }
87
47
  ]
88
48
  }
@@ -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@latest/workspace-initializer/scaffoldfy.json\",",
73
+ "pattern": "\\n\\s*\"setup\":\\s*\"npx @pixpilot/scaffoldfy@latest --config https://unpkg.com/@pixpilot/scaffoldfy-configs@latest/workspace-initializer/scaffoldfy.json\",",
74
74
  "flags": "",
75
75
  "replacement": ""
76
76
  }