@pixpilot/scaffoldfy-configs 0.6.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.
- package/.cache/.eslintcache +1 -1
- package/.cache/.prettiercache +1 -1
- package/.turbo/turbo-format.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +15 -0
- package/CHANGELOG.md +6 -0
- package/license-file/scaffoldfy.json +12 -12
- package/monorepo-generate-packages-section/scaffoldfy.json +2 -2
- package/package.json +7 -3
- package/pixpilot-changesets-release/scaffoldfy.json +3 -3
- package/pixpilot-copilot-instructions/scaffoldfy.json +2 -2
- package/pixpilot-info/scaffoldfy.json +1 -1
- package/project-info/scaffoldfy.json +1 -1
- package/security-policy/scaffoldfy.json +3 -3
- package/test/validate-schema.test.ts +29 -0
- package/turbo-workspace-package-generator/scaffoldfy.json +1 -1
- package/update-root-package-json/scaffoldfy.json +1 -1
package/.cache/.eslintcache
CHANGED
|
@@ -1 +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/tsdown.config.ts":"
|
|
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"]
|
package/.cache/.prettiercache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],{"key":"
|
|
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"]
|
package/.turbo/turbo-format.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pixpilot/scaffoldfy-configs@0.
|
|
2
|
+
> @pixpilot/scaffoldfy-configs@0.7.0 format /home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs
|
|
3
3
|
> prettier --check . --ignore-path ../../.gitignore --ignore-path ../../.prettierignore --write --cache --cache-location .cache/.prettiercache
|
|
4
4
|
|
|
5
5
|
Checking formatting...
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @pixpilot/scaffoldfy-configs@0.
|
|
2
|
+
> @pixpilot/scaffoldfy-configs@0.7.0 lint /home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs
|
|
3
3
|
> eslint --cache --cache-location .cache/.eslintcache
|
|
4
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
|
+
[1m[46m RUN [49m[22m [36mv3.2.4 [39m[90m/home/runner/work/scaffoldfy/scaffoldfy/packages/scaffoldfy-configs[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m test/validate-schema.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 734[2mms[22m[39m
|
|
9
|
+
[33m[2m✓[22m[39m validate-schema[2m > [22mshould validate all scaffoldfy.json files in scaffoldfy-configs [33m 731[2mms[22m[39m
|
|
10
|
+
|
|
11
|
+
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
12
|
+
[2m Tests [22m [1m[32m2 passed[39m[22m[90m (2)[39m
|
|
13
|
+
[2m Start at [22m 13:01:06
|
|
14
|
+
[2m Duration [22m 1.70s[2m (transform 375ms, setup 0ms, collect 626ms, tests 734ms, environment 0ms, prepare 92ms)[22m
|
|
15
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$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": "
|
|
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.
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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": "
|
|
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": "
|
|
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"],
|