@pixpilot/scaffoldfy-configs 0.5.0 → 0.7.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.
@@ -0,0 +1 @@
1
+ [{"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/README.md":"1","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/eslint.config.mjs":"2","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/license-file/scaffoldfy.json":"3","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/monorepo-generate-packages-section/generate-packages-section.js":"4","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/monorepo-generate-packages-section/scaffoldfy.json":"5","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/package.json":"6","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-changesets-release/release.yml":"7","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-changesets-release/scaffoldfy.json":"8","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-copilot-instructions/copilot-instructions.md":"9","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-copilot-instructions/scaffoldfy.json":"10","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-info/scaffoldfy.json":"11","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/project-info/scaffoldfy.json":"12","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/security-policy/scaffoldfy.json":"13","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/test/validate-schema.test.ts":"14","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/tsdown.config.ts":"15","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/turbo-workspace-package-generator/scaffoldfy.json":"16","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/update-root-package-json/scaffoldfy.json":"17","/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/vitest.config.ts":"18"},{"size":2295,"mtime":1761483605973,"results":"19","hashOfConfig":"20"},{"size":260,"mtime":1761483605973,"results":"21","hashOfConfig":"22"},{"size":4993,"mtime":1761483605974,"results":"23","hashOfConfig":"24"},{"size":2047,"mtime":1761483605974,"results":"25","hashOfConfig":"26"},{"size":2045,"mtime":1761483605974,"results":"27","hashOfConfig":"24"},{"size":1148,"mtime":1761483625791,"results":"28","hashOfConfig":"29"},{"size":1139,"mtime":1761483605974,"results":"30","hashOfConfig":"31"},{"size":1307,"mtime":1761483605974,"results":"32","hashOfConfig":"24"},{"size":904,"mtime":1761483605974,"results":"33","hashOfConfig":"20"},{"size":704,"mtime":1761483605975,"results":"34","hashOfConfig":"24"},{"size":526,"mtime":1761483605975,"results":"35","hashOfConfig":"24"},{"size":3214,"mtime":1761483605975,"results":"36","hashOfConfig":"24"},{"size":1285,"mtime":1761483605975,"results":"37","hashOfConfig":"24"},{"size":960,"mtime":1761483605975,"results":"38","hashOfConfig":"39"},{"size":160,"mtime":1761483605975,"results":"40","hashOfConfig":"41"},{"size":964,"mtime":1761483605975,"results":"42","hashOfConfig":"24"},{"size":758,"mtime":1761483605975,"results":"43","hashOfConfig":"24"},{"size":78,"mtime":1761483605975,"results":"44","hashOfConfig":"41"},{"filePath":"45","messages":"46","suppressedMessages":"47","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1lvqh6q",{"filePath":"48","messages":"49","suppressedMessages":"50","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ygaxad",{"filePath":"51","messages":"52","suppressedMessages":"53","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"185cgie",{"filePath":"54","messages":"55","suppressedMessages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"130171j",{"filePath":"57","messages":"58","suppressedMessages":"59","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"60","messages":"61","suppressedMessages":"62","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1r8t28z",{"filePath":"63","messages":"64","suppressedMessages":"65","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1o67o8g",{"filePath":"66","messages":"67","suppressedMessages":"68","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"69","messages":"70","suppressedMessages":"71","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","suppressedMessages":"74","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"75","messages":"76","suppressedMessages":"77","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"78","messages":"79","suppressedMessages":"80","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"81","messages":"82","suppressedMessages":"83","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"84","messages":"85","suppressedMessages":"86","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"lsyrod",{"filePath":"87","messages":"88","suppressedMessages":"89","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"13wjuik",{"filePath":"90","messages":"91","suppressedMessages":"92","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"93","messages":"94","suppressedMessages":"95","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"96","messages":"97","suppressedMessages":"98","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/README.md",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/eslint.config.mjs",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/license-file/scaffoldfy.json",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/monorepo-generate-packages-section/generate-packages-section.js",[],["99"],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/monorepo-generate-packages-section/scaffoldfy.json",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/package.json",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-changesets-release/release.yml",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-changesets-release/scaffoldfy.json",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-copilot-instructions/copilot-instructions.md",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-copilot-instructions/scaffoldfy.json",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-info/scaffoldfy.json",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/project-info/scaffoldfy.json",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/security-policy/scaffoldfy.json",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/test/validate-schema.test.ts",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/tsdown.config.ts",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/turbo-workspace-package-generator/scaffoldfy.json",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/update-root-package-json/scaffoldfy.json",[],[],"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/vitest.config.ts",[],[],{"ruleId":"100","severity":2,"message":"101","line":65,"column":1,"nodeType":"102","messageId":"103","endLine":65,"endColumn":12,"suggestions":"104","suppressions":"105"},"no-console","Unexpected console statement. Only these console methods are allowed: warn, error.","MemberExpression","limited",["106"],["107"],{"fix":"108","messageId":"109","data":"110","desc":"111"},{"kind":"112","justification":"113"},{"range":"114","text":"113"},"removeConsole",{"propertyName":"115"},"Remove the console.log().","directive","",[1994,2042],"log"]
@@ -0,0 +1 @@
1
+ [["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],{"key":"20","value":"21"},{"key":"22","value":"23"},{"key":"24","value":"25"},{"key":"26","value":"27"},{"key":"28","value":"29"},{"key":"30","value":"31"},{"key":"32","value":"33"},{"key":"34","value":"35"},{"key":"36","value":"37"},{"key":"38","value":"39"},{"key":"40","value":"41"},{"key":"42","value":"43"},{"key":"44","value":"45"},{"key":"46","value":"47"},{"key":"48","value":"49"},{"key":"50","value":"51"},{"key":"52","value":"53"},{"key":"54","value":"55"},{"key":"56","value":"57"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/license-file/scaffoldfy.json",{"size":4993,"mtime":1761483605974,"hash":"58","data":"59"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-copilot-instructions/copilot-instructions.md",{"size":904,"mtime":1761483605974,"hash":"60","data":"61"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/package.json",{"size":1148,"mtime":1761483625791,"hash":"62","data":"63"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/security-policy/scaffoldfy.json",{"size":1285,"mtime":1761483605975,"hash":"64","data":"65"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/monorepo-generate-packages-section/scaffoldfy.json",{"size":2045,"mtime":1761483605974,"hash":"66","data":"67"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/tsdown.config.ts",{"size":160,"mtime":1761483605975,"hash":"68","data":"69"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-copilot-instructions/scaffoldfy.json",{"size":704,"mtime":1761483605975,"hash":"70","data":"71"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-info/scaffoldfy.json",{"size":526,"mtime":1761483605975,"hash":"72","data":"73"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/turbo-workspace-package-generator/scaffoldfy.json",{"size":964,"mtime":1761483605975,"hash":"74","data":"75"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/vitest.config.ts",{"size":78,"mtime":1761483605975,"hash":"76","data":"77"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/monorepo-generate-packages-section/generate-packages-section.js",{"size":2047,"mtime":1761483605974,"hash":"78","data":"79"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/eslint.config.mjs",{"size":260,"mtime":1761483605973,"hash":"80","data":"81"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-changesets-release/release.yml",{"size":1139,"mtime":1761483605974,"hash":"82","data":"83"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/update-root-package-json/scaffoldfy.json",{"size":758,"mtime":1761483605975,"hash":"84","data":"85"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/project-info/scaffoldfy.json",{"size":3214,"mtime":1761483605975,"hash":"86","data":"87"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/test/validate-schema.test.ts",{"size":960,"mtime":1761483605975,"hash":"88","data":"89"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/pixpilot-changesets-release/scaffoldfy.json",{"size":1307,"mtime":1761483605974,"hash":"90","data":"91"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/README.md",{"size":2295,"mtime":1761483605973,"hash":"92","data":"93"},"/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs/LICENSE",{"size":1065,"mtime":1761483605973,"hash":"94"},"a7231deb9e023052a2eb2d1cdb263c48",{"hashOfOptions":"95"},"129fc064577f2fe749ed401b01155b0c",{"hashOfOptions":"96"},"9ded64903d1cec320d4266e98aadb4f6",{"hashOfOptions":"97"},"976f0c5187d34982a37d60f3619d23c9",{"hashOfOptions":"98"},"f54318350f291f72ab00fda487548c18",{"hashOfOptions":"99"},"513debbbe37a0908feda9f0bcc5fcc4b",{"hashOfOptions":"100"},"20171b8fd858f9b268e89c1aa6484a92",{"hashOfOptions":"101"},"b0e40d5c659cf4b1aa7bba079f1d9765",{"hashOfOptions":"102"},"d16152bdbad281c6f548789be4bfd8dd",{"hashOfOptions":"103"},"fb12a6e35e71f2db94bbf66fedb48a90",{"hashOfOptions":"104"},"c4b2e848701a00ec46150ef82d25fe09",{"hashOfOptions":"105"},"f9ce2b24b6b27b0bd159849f75d8bfd0",{"hashOfOptions":"106"},"6d888308c5d2927c9472c902b56b2973",{"hashOfOptions":"107"},"d64ef037356e3a1797bb805815935173",{"hashOfOptions":"108"},"63ff84d9e37c9df3d61398764eceb1b3",{"hashOfOptions":"109"},"a0fc37307c5b3e7ef6c635ee81d4b22a",{"hashOfOptions":"110"},"552893570f59b876cc311161764b971b",{"hashOfOptions":"111"},"3cb6e0020cc85ad5ac0eb635b74a99b5",{"hashOfOptions":"112"},"9937b6ab6bff563917af91b674d32d26","1091911791","2734378173","7569829","34869034","2621525778","3649285687","3457824335","87225127","4008244420","2330534099","3818238147","733243520","4034346358","3037609409","2737831477","982426797","4256979194","1064095472"]
@@ -0,0 +1,6 @@
1
+
2
+ > @pixpilot/scaffoldfy-configs@0.7.0 format /home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs
3
+ > prettier --check . --ignore-path ../../.gitignore --ignore-path ../../.prettierignore --write --cache --cache-location .cache/.prettiercache
4
+
5
+ Checking formatting...
6
+ All matched files use Prettier code style!
@@ -0,0 +1,4 @@
1
+
2
+ > @pixpilot/scaffoldfy-configs@0.7.0 lint /home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs
3
+ > eslint --cache --cache-location .cache/.eslintcache
4
+
@@ -0,0 +1,15 @@
1
+
2
+ > @pixpilot/scaffoldfy-configs@0.7.0 test /home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs
3
+ > vitest --run --passWithNoTests
4
+
5
+
6
+  RUN  v3.2.4 /home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs
7
+
8
+ ✓ test/validate-schema.test.ts (2 tests) 734ms
9
+ ✓ validate-schema > should validate all scaffoldfy.json files in scaffoldfy-configs  731ms
10
+
11
+  Test Files  1 passed (1)
12
+  Tests  2 passed (2)
13
+  Start at  13:01:06
14
+  Duration  1.70s (transform 375ms, setup 0ms, collect 626ms, tests 734ms, environment 0ms, prepare 92ms)
15
+
package/CHANGELOG.md CHANGED
@@ -1,15 +1,29 @@
1
1
  # @pixpilot/scaffoldfy-configs
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Enhance dynamic evaluation for required and enabled properties
8
+
9
+ ## 0.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - d2bd9dc: new release
14
+
3
15
  ## 0.5.0
4
16
 
5
17
  ### Minor Changes
6
18
 
7
- - add transformers support for tasks and variables
19
+ - add JSON schema validation for scaffoldfy templates
20
+ - add interpolate type for variable values and enhance conditional logic
21
+ - fa6937c: new release
8
22
 
9
23
  ### Patch Changes
10
24
 
11
- - refactor schema files and update references
12
25
  - replace `log` with `debug` for command execution errors
26
+ - c85cfa5: new release
13
27
 
14
28
  ## 0.4.6
15
29
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@pixpilot/scaffoldfy/schema",
2
+ "$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
3
3
  "name": "license-file",
4
4
  "description": "Generate a LICENSE file with common open-source licenses",
5
5
  "dependencies": ["project-info"],
@@ -31,7 +31,7 @@
31
31
  "name": "Create MIT License",
32
32
  "description": "Create a LICENSE file with MIT license",
33
33
  "type": "write",
34
- "enabled": "licenseType === 'MIT'",
34
+ "enabled": { "type": "condition", "value": "licenseType === 'MIT'" },
35
35
  "config": {
36
36
  "file": "LICENSE",
37
37
  "templateFile": "./licenses/mit.hbs"
@@ -42,7 +42,7 @@
42
42
  "name": "Create Apache 2.0 License",
43
43
  "description": "Create a LICENSE file with Apache 2.0 license",
44
44
  "type": "write",
45
- "enabled": "licenseType === 'Apache-2.0'",
45
+ "enabled": { "type": "condition", "value": "licenseType === 'Apache-2.0'" },
46
46
  "config": {
47
47
  "file": "LICENSE",
48
48
  "templateFile": "./licenses/apache-2.0.hbs"
@@ -53,7 +53,7 @@
53
53
  "name": "Create GPL v3 License",
54
54
  "description": "Create a LICENSE file with GPL v3 license",
55
55
  "type": "write",
56
- "enabled": "licenseType === 'GPL-3.0'",
56
+ "enabled": { "type": "condition", "value": "licenseType === 'GPL-3.0'" },
57
57
  "config": {
58
58
  "file": "LICENSE",
59
59
  "templateFile": "./licenses/gpl-3.0.hbs"
@@ -64,7 +64,7 @@
64
64
  "name": "Create GPL v2 License",
65
65
  "description": "Create a LICENSE file with GPL v2 license",
66
66
  "type": "write",
67
- "enabled": "licenseType === 'GPL-2.0'",
67
+ "enabled": { "type": "condition", "value": "licenseType === 'GPL-2.0'" },
68
68
  "config": {
69
69
  "file": "LICENSE",
70
70
  "templateFile": "./licenses/gpl-2.0.hbs"
@@ -75,7 +75,7 @@
75
75
  "name": "Create BSD 3-Clause License",
76
76
  "description": "Create a LICENSE file with BSD 3-Clause license",
77
77
  "type": "write",
78
- "enabled": "licenseType === 'BSD-3-Clause'",
78
+ "enabled": { "type": "condition", "value": "licenseType === 'BSD-3-Clause'" },
79
79
  "config": {
80
80
  "file": "LICENSE",
81
81
  "templateFile": "./licenses/bsd-3-clause.hbs"
@@ -86,7 +86,7 @@
86
86
  "name": "Create BSD 2-Clause License",
87
87
  "description": "Create a LICENSE file with BSD 2-Clause license",
88
88
  "type": "write",
89
- "enabled": "licenseType === 'BSD-2-Clause'",
89
+ "enabled": { "type": "condition", "value": "licenseType === 'BSD-2-Clause'" },
90
90
  "config": {
91
91
  "file": "LICENSE",
92
92
  "templateFile": "./licenses/bsd-2-clause.hbs"
@@ -97,7 +97,7 @@
97
97
  "name": "Create ISC License",
98
98
  "description": "Create a LICENSE file with ISC license",
99
99
  "type": "write",
100
- "enabled": "licenseType === 'ISC'",
100
+ "enabled": { "type": "condition", "value": "licenseType === 'ISC'" },
101
101
  "config": {
102
102
  "file": "LICENSE",
103
103
  "templateFile": "./licenses/isc.hbs"
@@ -108,7 +108,7 @@
108
108
  "name": "Create MPL 2.0 License",
109
109
  "description": "Create a LICENSE file with MPL 2.0 license",
110
110
  "type": "write",
111
- "enabled": "licenseType === 'MPL-2.0'",
111
+ "enabled": { "type": "condition", "value": "licenseType === 'MPL-2.0'" },
112
112
  "config": {
113
113
  "file": "LICENSE",
114
114
  "templateFile": "./licenses/mpl-2.0.hbs"
@@ -119,7 +119,7 @@
119
119
  "name": "Create AGPL v3 License",
120
120
  "description": "Create a LICENSE file with AGPL v3 license",
121
121
  "type": "write",
122
- "enabled": "licenseType === 'AGPL-3.0'",
122
+ "enabled": { "type": "condition", "value": "licenseType === 'AGPL-3.0'" },
123
123
  "config": {
124
124
  "file": "LICENSE",
125
125
  "templateFile": "./licenses/agpl-3.0.hbs"
@@ -130,7 +130,7 @@
130
130
  "name": "Create Unlicense",
131
131
  "description": "Create a LICENSE file with Unlicense",
132
132
  "type": "write",
133
- "enabled": "licenseType === 'Unlicense'",
133
+ "enabled": { "type": "condition", "value": "licenseType === 'Unlicense'" },
134
134
  "config": {
135
135
  "file": "LICENSE",
136
136
  "templateFile": "./licenses/unlicense.hbs"
@@ -141,7 +141,7 @@
141
141
  "name": "Update package.json license",
142
142
  "description": "Update license field in package.json",
143
143
  "type": "update-json",
144
- "enabled": "licenseType !== 'NONE'",
144
+ "enabled": { "type": "condition", "value": "licenseType !== 'NONE'" },
145
145
  "config": {
146
146
  "file": "package.json",
147
147
  "updates": {
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@pixpilot/scaffoldfy/schema",
2
+ "$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
3
3
  "description": "Generates packages section in monorepo README by reading package.json files",
4
4
  "name": "pixpilot-generate-packages-section",
5
5
  "dependencies": ["pixpilot-info"],
6
- "enabled": "pixpilot_project == true",
6
+ "enabled": { "type": "condition", "value": "pixpilot_project == true" },
7
7
  "variables": [
8
8
  {
9
9
  "id": "pixpilot_generate_packages_section_pre_commit_content",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/scaffoldfy-configs",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "0.7.0",
5
5
  "author": "PixPilot <m.doaie@hotmail.com>",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -24,15 +24,19 @@
24
24
  "@types/node": "^22.18.11",
25
25
  "eslint": "^9.38.0",
26
26
  "@internal/eslint-config": "0.3.0",
27
- "@internal/tsdown-config": "0.1.0",
28
27
  "@internal/prettier-config": "0.0.1",
29
- "@internal/vitest-config": "0.1.0"
28
+ "@internal/vitest-config": "0.1.0",
29
+ "@internal/tsdown-config": "0.1.0",
30
+ "@pixpilot/scaffoldfy": "0.32.0"
30
31
  },
31
32
  "prettier": "@internal/prettier-config",
32
33
  "publishConfig": {
33
34
  "access": "public"
34
35
  },
35
36
  "scripts": {
37
+ "test": "vitest --run --passWithNoTests",
38
+ "test:watch": "vitest --watch",
39
+ "test:ui": "vitest --ui",
36
40
  "lint": "eslint",
37
41
  "format": "prettier --check . --ignore-path ../../.gitignore --ignore-path ../../.prettierignore"
38
42
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@pixpilot/scaffoldfy/schema",
2
+ "$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
3
3
  "description": "Pixpilot workspace package generator template for pnpm + Turbo monorepo. Provides project info prompts and config tasks.",
4
4
  "name": "github-pixpilot-owner-changesets-release",
5
5
  "dependencies": ["pixpilot-info"],
@@ -8,7 +8,7 @@
8
8
  "id": "pixpilot-admin-changesets-release-create",
9
9
  "name": "Setup Changesets Release Workflow",
10
10
  "description": "Adds a GitHub Actions workflow for Changesets-based releases",
11
- "enabled": "pixpilot_project == true",
11
+ "enabled": { "type": "condition", "value": "pixpilot_project == true" },
12
12
  "type": "write",
13
13
  "config": {
14
14
  "templateFile": "release.yml",
@@ -19,7 +19,7 @@
19
19
  "id": "changesets-release-cleanup",
20
20
  "name": "Cleanup Changesets Release Workflow",
21
21
  "description": "Removes Pixpilot owner condition from Changesets release workflow",
22
- "enabled": "pixpilot_project != true",
22
+ "enabled": { "type": "condition", "value": "pixpilot_project != true" },
23
23
  "type": "regex-replace",
24
24
  "config": {
25
25
  "file": ".github/workflows/release.yml",
@@ -1,9 +1,9 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@pixpilot/scaffoldfy/schema",
2
+ "$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
3
3
  "description": "GitHub Copilot instructions template for Pixpilot projects",
4
4
  "name": "pixpilot-copilot-instructions",
5
5
  "dependencies": ["project-info", "pixpilot-info"],
6
- "enabled": "pixpilot_project == true",
6
+ "enabled": { "type": "condition", "value": "pixpilot_project == true" },
7
7
  "tasks": [
8
8
  {
9
9
  "id": "pixpilot-copilot-instructions",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@pixpilot/scaffoldfy/schema",
2
+ "$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
3
3
  "description": "Project information prompts for pnpm-turbo-monorepo-template",
4
4
  "name": "pixpilot-info",
5
5
  "dependencies": ["project-info"],
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@pixpilot/scaffoldfy/schema",
2
+ "$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
3
3
  "name": "project-info",
4
4
  "description": "Project information prompts for pnpm-turbo-monorepo-template",
5
5
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@pixpilot/scaffoldfy/schema",
2
+ "$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
3
3
  "description": "Security policy template with configurable contact email",
4
4
  "name": "security-policy",
5
5
  "dependencies": ["project-info"],
@@ -18,7 +18,7 @@
18
18
 
19
19
  "enabled": {
20
20
  "type": "condition",
21
- "condition": "addSecurityFile === true"
21
+ "value": "addSecurityFile === true"
22
22
  },
23
23
  "default": {
24
24
  "type": "conditional",
@@ -41,7 +41,7 @@
41
41
  "type": "write",
42
42
  "enabled": {
43
43
  "type": "condition",
44
- "condition": "addSecurityFile === true"
44
+ "value": "addSecurityFile === true"
45
45
  },
46
46
  "config": {
47
47
  "file": "SECURITY.md",
@@ -0,0 +1,29 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { validateScaffoldfyJsonFile } from '@pixpilot/scaffoldfy';
4
+ import { describe, expect, it } from 'vitest';
5
+
6
+ describe('validate-schema', () => {
7
+ it('should be defined', () => {
8
+ expect('').toBeDefined();
9
+ });
10
+
11
+ it('should validate all scaffoldfy.json files in scaffoldfy-configs', () => {
12
+ const configDir = path.join(__dirname, '..');
13
+ const subdirs = fs
14
+ .readdirSync(configDir, { withFileTypes: true })
15
+ .filter((dirent) => dirent.isDirectory())
16
+ .map((dirent) => dirent.name);
17
+
18
+ for (const subdir of subdirs) {
19
+ const filePath = path.join(configDir, subdir, 'scaffoldfy.json');
20
+ if (fs.existsSync(filePath)) {
21
+ const result = validateScaffoldfyJsonFile(filePath);
22
+ if (!result.valid) {
23
+ console.error(`Validation failed for ${filePath}:`, result.errors);
24
+ }
25
+ expect(result.valid).toBe(true);
26
+ }
27
+ }
28
+ });
29
+ });
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@pixpilot/scaffoldfy/schema",
2
+ "$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
3
3
  "description": "Pixpilot workspace package generator template for pnpm + Turbo monorepo. Provides project info prompts and config tasks.",
4
4
  "name": "turbo-workspace-package-generator",
5
5
  "prompts": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://unpkg.com/@pixpilot/scaffoldfy/schema",
2
+ "$schema": "../node_modules/@pixpilot/scaffoldfy/schema/scaffoldfy.schema.json",
3
3
  "description": "Update root package.json with repository information",
4
4
  "name": "update-root-package-json",
5
5
  "dependencies": ["project-info"],