@bensandee/tooling 0.22.0 → 0.24.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/bin.mjs +1573 -1539
- package/package.json +5 -3
- package/tooling.schema.json +148 -0
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bensandee/tooling",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "CLI tool to bootstrap and maintain standardized TypeScript project tooling",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tooling": "./dist/bin.mjs"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
|
-
"dist"
|
|
9
|
+
"dist",
|
|
10
|
+
"tooling.schema.json"
|
|
10
11
|
],
|
|
11
12
|
"type": "module",
|
|
12
13
|
"imports": {
|
|
@@ -22,7 +23,8 @@
|
|
|
22
23
|
"types": "./dist/docker-check/index.d.mts",
|
|
23
24
|
"default": "./dist/docker-check/index.mjs"
|
|
24
25
|
},
|
|
25
|
-
"./package.json": "./package.json"
|
|
26
|
+
"./package.json": "./package.json",
|
|
27
|
+
"./tooling.schema.json": "./tooling.schema.json"
|
|
26
28
|
},
|
|
27
29
|
"publishConfig": {
|
|
28
30
|
"access": "public"
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "@bensandee/tooling configuration",
|
|
4
|
+
"description": "Override convention-detected defaults for repo:sync. Only fields that differ from detected defaults need to be specified.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "JSON Schema reference (ignored by tooling)"
|
|
11
|
+
},
|
|
12
|
+
"structure": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["single", "monorepo"],
|
|
15
|
+
"description": "Project structure"
|
|
16
|
+
},
|
|
17
|
+
"useEslintPlugin": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "Include @bensandee/eslint-plugin oxlint plugin"
|
|
20
|
+
},
|
|
21
|
+
"formatter": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": ["oxfmt", "prettier"],
|
|
24
|
+
"description": "Formatter choice"
|
|
25
|
+
},
|
|
26
|
+
"setupVitest": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Generate vitest config and example test"
|
|
29
|
+
},
|
|
30
|
+
"ci": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": ["github", "forgejo", "none"],
|
|
33
|
+
"description": "CI platform"
|
|
34
|
+
},
|
|
35
|
+
"setupRenovate": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "Generate Renovate config"
|
|
38
|
+
},
|
|
39
|
+
"releaseStrategy": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["release-it", "simple", "changesets", "none"],
|
|
42
|
+
"description": "Release management strategy"
|
|
43
|
+
},
|
|
44
|
+
"projectType": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["default", "node", "react", "library"],
|
|
47
|
+
"description": "Project type (determines tsconfig base)"
|
|
48
|
+
},
|
|
49
|
+
"detectPackageTypes": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"description": "Auto-detect project types for monorepo packages"
|
|
52
|
+
},
|
|
53
|
+
"setupDocker": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "Generate Docker build/check scripts"
|
|
56
|
+
},
|
|
57
|
+
"docker": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"description": "Docker package overrides (package name → config)",
|
|
60
|
+
"additionalProperties": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"required": ["dockerfile"],
|
|
63
|
+
"properties": {
|
|
64
|
+
"dockerfile": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Path to Dockerfile relative to package"
|
|
67
|
+
},
|
|
68
|
+
"context": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"default": ".",
|
|
71
|
+
"description": "Docker build context relative to package"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"dockerCheck": {
|
|
78
|
+
"oneOf": [
|
|
79
|
+
{
|
|
80
|
+
"const": false,
|
|
81
|
+
"description": "Disable Docker health checks"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"properties": {
|
|
87
|
+
"composeFiles": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": { "type": "string" },
|
|
90
|
+
"description": "Compose files to use"
|
|
91
|
+
},
|
|
92
|
+
"envFile": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Environment file for compose"
|
|
95
|
+
},
|
|
96
|
+
"services": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"items": { "type": "string" },
|
|
99
|
+
"description": "Services to check (default: all)"
|
|
100
|
+
},
|
|
101
|
+
"healthChecks": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"required": ["name", "url"],
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"properties": {
|
|
108
|
+
"name": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"description": "Service name"
|
|
111
|
+
},
|
|
112
|
+
"url": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"description": "Health check URL"
|
|
115
|
+
},
|
|
116
|
+
"status": {
|
|
117
|
+
"type": "integer",
|
|
118
|
+
"description": "Expected HTTP status code"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"description": "Health check definitions"
|
|
123
|
+
},
|
|
124
|
+
"buildCommand": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "Command to build images before checking"
|
|
127
|
+
},
|
|
128
|
+
"buildCwd": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"description": "Working directory for build command"
|
|
131
|
+
},
|
|
132
|
+
"timeoutMs": {
|
|
133
|
+
"type": "integer",
|
|
134
|
+
"minimum": 1,
|
|
135
|
+
"description": "Overall timeout in milliseconds"
|
|
136
|
+
},
|
|
137
|
+
"pollIntervalMs": {
|
|
138
|
+
"type": "integer",
|
|
139
|
+
"minimum": 1,
|
|
140
|
+
"description": "Poll interval in milliseconds"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"description": "Docker health check configuration or false to disable"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|