@deltabox/toolchain 1.1.22 → 1.2.1
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 +49 -4
- package/README.md +59 -30
- package/dist/config.d.ts +2 -2
- package/dist/config.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/package.js +1 -1
- package/dist/packages/changelog/src/workflows.d.ts +1 -1
- package/dist/packages/config/src/generators/types.js +1 -1
- package/dist/packages/config/src/index.d.ts +3 -3
- package/dist/packages/config/src/index.js +1 -1
- package/dist/packages/config/src/schema.d.ts +30 -1
- package/dist/packages/config/src/schema.js +1 -1
- package/dist/packages/core/src/loader.d.ts +1 -1
- package/dist/packages/core/src/project-type.d.ts +1 -1
- package/dist/packages/core/src/sync.d.ts +1 -1
- package/dist/packages/core/src/vscode.d.ts +1 -1
- package/dist/packages/project/src/config.d.ts +1 -1
- package/dist/packages/project/src/typescript.d.ts +1 -1
- package/dist/packages/shared/src/config-schema.d.ts +1624 -20
- package/dist/packages/shared/src/config-schema.js +1 -1
- package/dist/packages/shared/src/config-types.d.ts +342 -0
- package/dist/packages/shared/src/index.d.ts +4 -3
- package/dist/packages/shared/src/index.js +1 -1
- package/dist/packages/shared/src/toolchain.d.ts +3 -2
- package/dist/packages/shared/src/toolchain.js +1 -1
- package/dist/packages/shared/src/types.d.ts +1 -1
- package/dist/packages/template/src/online.d.ts +1 -1
- package/dist/packages/template/src/registry.d.ts +1 -1
- package/dist/packages/template/src/types.d.ts +1 -1
- package/dist/packages/vite/src/sync.d.ts +1 -1
- package/dist/shared.d.ts +3 -2
- package/dist/shared.js +1 -1
- package/package.json +22 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{z as e}from"zod";const t=e.enum([`monorepo-root`,`monorepo-workspace`,`project`]).describe(`The project kind (detected when omitted).`),n=e.object({type:t.optional(),name:e.string().describe(`The unscoped project name.`).optional(),scope:e.string().describe("The npm scope, eg. `@acme`.").optional(),author:e.string().describe(`Package author.`).optional(),license:e.string().describe(`SPDX license id.`).optional(),homepage:e.string().describe(`Project homepage.`).optional(),repo:e.string().describe("Repository URL, eg. `https://github.com/acme/app`.").optional(),nodeVersion:e.string().describe("Node engine range, eg. `>=22`.").optional(),packageManager:e.string().describe("Package manager name (default `yarn`).").optional(),packageManagerVersion:e.string().describe("Package manager version, eg. `4.17.1`.").optional(),description:e.string().describe(`One-line description.`).optional()}),r=e.object({name:e.string().optional(),id:e.string().optional(),if:e.string().optional(),uses:e.string().optional(),run:e.string().optional(),shell:e.string().optional(),"working-directory":e.string().optional(),with:e.record(e.string(),e.union([e.string(),e.number(),e.boolean()])).optional(),env:e.record(e.string(),e.string()).optional()}),i=e.object({job:e.string().describe(`Target job id (defaults to the primary/first job).`).optional(),before:e.array(r).describe(`Steps inserted at the start.`).optional(),after:e.array(r).describe(`Steps appended at the end.`).optional()}),a=e.object({enabled:e.boolean().describe(`Enable/disable this workflow (default true).`).optional(),pushBranches:e.array(e.string()).describe("Replace `on.push.branches`.").optional(),pullRequestBranches:e.array(e.string()).describe("Replace `on.pull_request.branches`.").optional(),triggers:e.record(e.string(),e.unknown()).describe("Extra `on.*` triggers.").optional(),extra:e.record(e.string(),e.unknown()).describe("Extra top-level keys (`permissions`, `concurrency`, `env`, ...).").optional(),steps:e.union([i,e.array(i)]).describe(`Extra steps for a job (one group, or per-job groups).`).optional(),jobs:e.record(e.string(),e.unknown()).describe(`Extra complete jobs merged in.`).optional(),tokens:e.record(e.string(),e.union([e.string(),e.number(),e.boolean()])).describe("Per-workflow token overrides (`nodeVersion`, `packageManager`, ...).").optional()}),o=e.union([e.boolean(),a]),s=e.object({ci:o.optional(),changelog:o.optional(),release:o.optional(),issues:o.optional(),sync:o.optional()}),c=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),workflows:s.describe("Which workflows to write into `.github/workflows`.").optional(),branches:e.object({main:e.string().optional(),dev:e.string().optional()}).describe(`Branch names the workflows target.`).optional(),types:e.array(e.string()).describe(`Allowed commit types (commitlint).`).optional(),scopes:e.array(e.string()).describe(`Allowed commit scopes (commitlint).`).optional(),vscode:e.boolean().describe(`Write the Conventional-Commits VS Code settings.`).optional()}),l=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),vscode:e.boolean().describe(`Write the Biome VS Code settings (default true).`).optional(),overrides:e.record(e.string(),e.unknown()).describe("Deep-merged over the generated `biome.json` (arrays union).").optional()}),u=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),glob:e.string().describe("Glob for workspace `tsconfig.default.json` files.").optional(),appGlob:e.string().describe(`Glob for "override" (app) workspaces.`).optional(),refs:e.boolean().describe(`Wire project references (default false).`).optional(),composite:e.boolean().describe("Emit `composite: true` (default false).").optional(),aliases:e.boolean().describe(`Inject path aliases (default true).`).optional(),indent:e.number().describe(`JSON indentation (default 4).`).optional(),rootFile:e.string().describe("The monorepo tsconfig file name (default `tsconfig.monorepo.json`).").optional()}),d=e.object({enabled:e.boolean().describe(`Watch by default (enabled when the section is defined).`).optional(),debounce:e.number().describe(`Debounce window in ms (default 150).`).optional()}),f=e.enum([`builtin`,`local`,`npm`,`git`,`vite-plus`]).describe(`How to load the source.`),p=e.enum([`project`,`workspace`,`application`,`folder`,`tooling`,`pipeline`]).describe(`What the template produces.`),m=e.object({type:f,locate:e.string().describe(`A builtin id, local dir, npm scope, git URL or Vite+ id.`),id:e.string().describe(`Stable id (defaults to the basename/scope).`).optional(),name:e.string().describe(`Display name override.`).optional(),description:e.string().describe(`Description override.`).optional(),kind:p.optional(),ref:e.string().describe(`Git branch/tag/commit.`).optional(),subdir:e.string().describe(`Subdirectory within the source that holds the template.`).optional(),tags:e.array(e.string()).describe(`Free-form tags.`).optional(),online:e.boolean().describe(`Whether the source needs network access.`).optional()}),h=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),sources:e.array(m).describe(`Extra sources on top of the builtin + registry sources.`).optional()}),g=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),config:e.boolean().describe("Write the managed `vite.config.ts` (default true when the section is set).").optional(),defaultTemplate:e.string().describe("`create.defaultTemplate`, eg. `@acme` for `@acme/create`.").optional(),testInclude:e.array(e.string()).describe(`Extra Vitest include globs (default: tests under src + tests).`).optional(),lintIgnore:e.array(e.string()).describe(`Glob patterns Oxlint should ignore.`).optional(),overrides:e.record(e.string(),e.unknown()).describe("Deep-merged over the generated `vite.config.ts` object.").optional()});function _(t){return e.union([e.boolean(),t])}const v=e.object({project:n.optional(),changelog:_(c).optional(),biome:_(l).optional(),tsconfig:_(u).optional(),templates:_(h).optional(),vite:_(g).optional(),watch:_(d).optional()}),y=e.object({toolchain:v.optional()}),b={project:n,changelog:c,biome:l,tsconfig:u,templates:h,vite:g,watch:d},
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{z as e}from"zod";const t=e.enum([`monorepo-root`,`monorepo-workspace`,`project`]).describe(`The project kind (detected when omitted).`).meta({id:`ProjectType`}),n=e.object({type:t.optional(),name:e.string().describe(`The unscoped project name.`).optional(),scope:e.string().describe("The npm scope, eg. `@acme`.").optional(),author:e.string().describe(`Package author.`).optional(),license:e.string().describe(`SPDX license id.`).optional(),homepage:e.string().describe(`Project homepage.`).optional(),repo:e.string().describe("Repository URL, eg. `https://github.com/acme/app`.").optional(),nodeVersion:e.string().describe("Node engine range, eg. `>=22`.").optional(),packageManager:e.string().describe("Package manager name (default `yarn`).").optional(),packageManagerVersion:e.string().describe("Package manager version, eg. `4.17.1`.").optional(),description:e.string().describe(`One-line description.`).optional()}).meta({id:`ToolingProjectConfig`}),r=e.object({name:e.string().optional(),id:e.string().optional(),if:e.string().optional(),uses:e.string().optional(),run:e.string().optional(),shell:e.string().optional(),"working-directory":e.string().optional(),with:e.record(e.string(),e.union([e.string(),e.number(),e.boolean()])).optional(),env:e.record(e.string(),e.string()).optional()}).meta({id:`WorkflowStep`}),i=e.object({job:e.string().describe(`Target job id (defaults to the primary/first job).`).optional(),before:e.array(r).describe(`Steps inserted at the start.`).optional(),after:e.array(r).describe(`Steps appended at the end.`).optional()}).meta({id:`WorkflowStepsConfig`}),a=e.object({enabled:e.boolean().describe(`Enable/disable this workflow (default true).`).optional(),pushBranches:e.array(e.string()).describe("Replace `on.push.branches`.").optional(),pullRequestBranches:e.array(e.string()).describe("Replace `on.pull_request.branches`.").optional(),triggers:e.record(e.string(),e.unknown()).describe("Extra `on.*` triggers.").optional(),extra:e.record(e.string(),e.unknown()).describe("Extra top-level keys (`permissions`, `concurrency`, `env`, ...).").optional(),steps:e.union([i,e.array(i)]).describe(`Extra steps for a job (one group, or per-job groups).`).optional(),jobs:e.record(e.string(),e.unknown()).describe(`Extra complete jobs merged in.`).optional(),tokens:e.record(e.string(),e.union([e.string(),e.number(),e.boolean()])).describe("Per-workflow token overrides (`nodeVersion`, `packageManager`, ...).").optional()}).meta({id:`WorkflowConfig`}),o=e.union([e.boolean(),a]).meta({id:`WorkflowSetting`}),s=e.object({ci:o.optional(),changelog:o.optional(),release:o.optional(),issues:o.optional(),sync:o.optional()}).meta({id:`ChangelogWorkflowsConfig`}),c=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),workflows:s.describe("Which workflows to write into `.github/workflows`.").optional(),branches:e.object({main:e.string().optional(),dev:e.string().optional()}).describe(`Branch names the workflows target.`).optional(),types:e.array(e.string()).describe(`Allowed commit types (commitlint).`).optional(),scopes:e.array(e.string()).describe(`Allowed commit scopes (commitlint).`).optional(),vscode:e.boolean().describe(`Write the Conventional-Commits VS Code settings.`).optional()}).meta({id:`ToolingChangelogConfig`}),l=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),vscode:e.boolean().describe(`Write the Biome VS Code settings (default true).`).optional(),overrides:e.record(e.string(),e.unknown()).describe("Deep-merged over the generated `biome.json` (arrays union).").optional()}).meta({id:`ToolingBiomeConfig`}),u=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),glob:e.string().describe("Glob for workspace `tsconfig.default.json` files.").optional(),appGlob:e.string().describe(`Glob for "override" (app) workspaces.`).optional(),refs:e.boolean().describe(`Wire project references (default false).`).optional(),composite:e.boolean().describe("Emit `composite: true` (default false).").optional(),aliases:e.boolean().describe(`Inject path aliases (default true).`).optional(),indent:e.number().describe(`JSON indentation (default 4).`).optional(),rootFile:e.string().describe("The monorepo tsconfig file name (default `tsconfig.monorepo.json`).").optional()}).meta({id:`ToolingTsconfigConfig`}),d=e.object({enabled:e.boolean().describe(`Watch by default (enabled when the section is defined).`).optional(),debounce:e.number().describe(`Debounce window in ms (default 150).`).optional()}).meta({id:`ToolingWatchConfig`}),f=e.enum([`builtin`,`local`,`npm`,`git`,`vite-plus`]).describe(`How to load the source.`).meta({id:`ToolingTemplateSourceType`}),p=e.enum([`project`,`workspace`,`application`,`folder`,`tooling`,`pipeline`]).describe(`What the template produces.`).meta({id:`ToolingTemplateKind`}),m=e.object({type:f,locate:e.string().describe(`A builtin id, local dir, npm scope, git URL or Vite+ id.`),id:e.string().describe(`Stable id (defaults to the basename/scope).`).optional(),name:e.string().describe(`Display name override.`).optional(),description:e.string().describe(`Description override.`).optional(),kind:p.optional(),ref:e.string().describe(`Git branch/tag/commit.`).optional(),subdir:e.string().describe(`Subdirectory within the source that holds the template.`).optional(),tags:e.array(e.string()).describe(`Free-form tags.`).optional(),online:e.boolean().describe(`Whether the source needs network access.`).optional()}).meta({id:`ToolingTemplateSource`}),h=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),sources:e.array(m).describe(`Extra sources on top of the builtin + registry sources.`).optional()}).meta({id:`ToolingTemplatesConfig`}),g=e.object({enabled:e.boolean().describe(`Master switch (enabled when the section is defined).`).optional(),config:e.boolean().describe("Write the managed `vite.config.ts` (default true when the section is set).").optional(),defaultTemplate:e.string().describe("`create.defaultTemplate`, eg. `@acme` for `@acme/create`.").optional(),testInclude:e.array(e.string()).describe(`Extra Vitest include globs (default: tests under src + tests).`).optional(),lintIgnore:e.array(e.string()).describe(`Glob patterns Oxlint should ignore.`).optional(),overrides:e.record(e.string(),e.unknown()).describe("Deep-merged over the generated `vite.config.ts` object.").optional()}).meta({id:`ToolingViteConfig`});function _(t){return e.union([e.boolean(),t])}const v=e.object({project:n.optional(),changelog:_(c).optional(),biome:_(l).optional(),tsconfig:_(u).optional(),templates:_(h).optional(),vite:_(g).optional(),watch:_(d).optional()}).meta({id:`ToolingConfigSections`}),y=e.object({toolchain:v.optional()}).meta({id:`DbxConfigSections`}),b={ProjectType:t,ToolingProjectConfig:n,WorkflowStep:r,WorkflowStepsConfig:i,WorkflowConfig:a,WorkflowSetting:o,ChangelogWorkflowsConfig:s,ToolingChangelogConfig:c,ToolingBiomeConfig:l,ToolingTsconfigConfig:u,ToolingWatchConfig:d,ToolingTemplateSourceType:f,ToolingTemplateKind:p,ToolingTemplateSource:m,ToolingTemplatesConfig:h,ToolingViteConfig:g,ToolingConfigSections:v,DbxConfigSections:y},x={project:n,changelog:c,biome:l,tsconfig:u,templates:h,vite:g,watch:d},S={project:`Project metadata used as replacement tokens across every template.`,changelog:`Conventional-Commits CI, commitlint and the changelog pipeline.`,biome:"Biome config generation (for consumers that still want a `biome.json`).",tsconfig:`Workspace tsconfig generation (path aliases + project references).`,templates:`Template sources / scaffolding.`,vite:"Vite+ configuration (manages `vite.config.ts` + the `vite:*` commands).",watch:"Watch behaviour for `dbx watch`."};export{S as CONFIG_SECTION_DESCRIPTIONS,x as CONFIG_SECTION_SCHEMAS,b as CONFIG_TYPE_SCHEMAS,l as biomeConfigSchema,c as changelogConfigSchema,s as changelogWorkflowsConfigSchema,y as dbxConfigSchema,n as projectConfigSchema,t as projectTypeSchema,p as templateKindSchema,m as templateSourceSchema,f as templateSourceTypeSchema,h as templatesConfigSchema,v as toolingConfigSchema,u as tsconfigConfigSchema,g as viteConfigSchema,d as watchConfigSchema,a as workflowConfigSchema,o as workflowSettingSchema,r as workflowStepSchema,i as workflowStepsConfigSchema};
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
//#region packages/shared/src/config-types.d.ts
|
|
4
|
+
export type ProjectType = 'monorepo-root' | 'monorepo-workspace' | 'project';
|
|
5
|
+
export interface ToolingProjectConfig {
|
|
6
|
+
type?: ProjectType;
|
|
7
|
+
/**
|
|
8
|
+
* The unscoped project name.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
name?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The npm scope, eg. `@acme`.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
scope?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Package author.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
author?: string;
|
|
22
|
+
/**
|
|
23
|
+
* SPDX license id.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
license?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Project homepage.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
homepage?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Repository URL, eg. `https://github.com/acme/app`.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
repo?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Node engine range, eg. `>=22`.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
nodeVersion?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Package manager name (default `yarn`).
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
packageManager?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Package manager version, eg. `4.17.1`.
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
packageManagerVersion?: string;
|
|
52
|
+
/**
|
|
53
|
+
* One-line description.
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
description?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface WorkflowStep {
|
|
59
|
+
name?: string;
|
|
60
|
+
id?: string;
|
|
61
|
+
if?: string;
|
|
62
|
+
uses?: string;
|
|
63
|
+
run?: string;
|
|
64
|
+
shell?: string;
|
|
65
|
+
'working-directory'?: string;
|
|
66
|
+
with?: Record<string, string | number | boolean>;
|
|
67
|
+
env?: Record<string, string>;
|
|
68
|
+
}
|
|
69
|
+
export interface WorkflowStepsConfig {
|
|
70
|
+
/**
|
|
71
|
+
* Target job id (defaults to the primary/first job).
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
job?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Steps inserted at the start.
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
before?: Array<WorkflowStep>;
|
|
80
|
+
/**
|
|
81
|
+
* Steps appended at the end.
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
after?: Array<WorkflowStep>;
|
|
85
|
+
}
|
|
86
|
+
export interface WorkflowConfig {
|
|
87
|
+
/**
|
|
88
|
+
* Enable/disable this workflow (default true).
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
enabled?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Replace `on.push.branches`.
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
pushBranches?: Array<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Replace `on.pull_request.branches`.
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
pullRequestBranches?: Array<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Extra `on.*` triggers.
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
triggers?: Record<string, unknown>;
|
|
107
|
+
/**
|
|
108
|
+
* Extra top-level keys (`permissions`, `concurrency`, `env`, ...).
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
extra?: Record<string, unknown>;
|
|
112
|
+
/**
|
|
113
|
+
* Extra steps for a job (one group, or per-job groups).
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
steps?: WorkflowStepsConfig | Array<WorkflowStepsConfig>;
|
|
117
|
+
/**
|
|
118
|
+
* Extra complete jobs merged in.
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
jobs?: Record<string, unknown>;
|
|
122
|
+
/**
|
|
123
|
+
* Per-workflow token overrides (`nodeVersion`, `packageManager`, ...).
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
tokens?: Record<string, string | number | boolean>;
|
|
127
|
+
}
|
|
128
|
+
export type WorkflowSetting = boolean | WorkflowConfig;
|
|
129
|
+
export interface ChangelogWorkflowsConfig {
|
|
130
|
+
ci?: WorkflowSetting;
|
|
131
|
+
changelog?: WorkflowSetting;
|
|
132
|
+
release?: WorkflowSetting;
|
|
133
|
+
issues?: WorkflowSetting;
|
|
134
|
+
sync?: WorkflowSetting;
|
|
135
|
+
}
|
|
136
|
+
export interface ToolingChangelogConfig {
|
|
137
|
+
/**
|
|
138
|
+
* Master switch (enabled when the section is defined).
|
|
139
|
+
*
|
|
140
|
+
*/
|
|
141
|
+
enabled?: boolean;
|
|
142
|
+
workflows?: ChangelogWorkflowsConfig;
|
|
143
|
+
branches?: {
|
|
144
|
+
main?: string;
|
|
145
|
+
dev?: string;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Allowed commit types (commitlint).
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
types?: Array<string>;
|
|
152
|
+
/**
|
|
153
|
+
* Allowed commit scopes (commitlint).
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
scopes?: Array<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Write the Conventional-Commits VS Code settings.
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
161
|
+
vscode?: boolean;
|
|
162
|
+
}
|
|
163
|
+
export interface ToolingBiomeConfig {
|
|
164
|
+
/**
|
|
165
|
+
* Master switch (enabled when the section is defined).
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
enabled?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Write the Biome VS Code settings (default true).
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
vscode?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Deep-merged over the generated `biome.json` (arrays union).
|
|
176
|
+
*
|
|
177
|
+
*/
|
|
178
|
+
overrides?: Record<string, unknown>;
|
|
179
|
+
}
|
|
180
|
+
export interface ToolingTsconfigConfig {
|
|
181
|
+
/**
|
|
182
|
+
* Master switch (enabled when the section is defined).
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
enabled?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Glob for workspace `tsconfig.default.json` files.
|
|
188
|
+
*
|
|
189
|
+
*/
|
|
190
|
+
glob?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Glob for "override" (app) workspaces.
|
|
193
|
+
*
|
|
194
|
+
*/
|
|
195
|
+
appGlob?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Wire project references (default false).
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
200
|
+
refs?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Emit `composite: true` (default false).
|
|
203
|
+
*
|
|
204
|
+
*/
|
|
205
|
+
composite?: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Inject path aliases (default true).
|
|
208
|
+
*
|
|
209
|
+
*/
|
|
210
|
+
aliases?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* JSON indentation (default 4).
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
indent?: number;
|
|
216
|
+
/**
|
|
217
|
+
* The monorepo tsconfig file name (default `tsconfig.monorepo.json`).
|
|
218
|
+
*
|
|
219
|
+
*/
|
|
220
|
+
rootFile?: string;
|
|
221
|
+
}
|
|
222
|
+
export interface ToolingWatchConfig {
|
|
223
|
+
/**
|
|
224
|
+
* Watch by default (enabled when the section is defined).
|
|
225
|
+
*
|
|
226
|
+
*/
|
|
227
|
+
enabled?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Debounce window in ms (default 150).
|
|
230
|
+
*
|
|
231
|
+
*/
|
|
232
|
+
debounce?: number;
|
|
233
|
+
}
|
|
234
|
+
export type ToolingTemplateSourceType = 'builtin' | 'local' | 'npm' | 'git' | 'vite-plus';
|
|
235
|
+
export type ToolingTemplateKind = 'project' | 'workspace' | 'application' | 'folder' | 'tooling' | 'pipeline';
|
|
236
|
+
export interface ToolingTemplateSource {
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @required
|
|
240
|
+
*/
|
|
241
|
+
type: ToolingTemplateSourceType;
|
|
242
|
+
/**
|
|
243
|
+
* A builtin id, local dir, npm scope, git URL or Vite+ id.
|
|
244
|
+
*
|
|
245
|
+
*
|
|
246
|
+
* @required
|
|
247
|
+
*/
|
|
248
|
+
locate: string;
|
|
249
|
+
/**
|
|
250
|
+
* Stable id (defaults to the basename/scope).
|
|
251
|
+
*
|
|
252
|
+
*/
|
|
253
|
+
id?: string;
|
|
254
|
+
/**
|
|
255
|
+
* Display name override.
|
|
256
|
+
*
|
|
257
|
+
*/
|
|
258
|
+
name?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Description override.
|
|
261
|
+
*
|
|
262
|
+
*/
|
|
263
|
+
description?: string;
|
|
264
|
+
kind?: ToolingTemplateKind;
|
|
265
|
+
/**
|
|
266
|
+
* Git branch/tag/commit.
|
|
267
|
+
*
|
|
268
|
+
*/
|
|
269
|
+
ref?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Subdirectory within the source that holds the template.
|
|
272
|
+
*
|
|
273
|
+
*/
|
|
274
|
+
subdir?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Free-form tags.
|
|
277
|
+
*
|
|
278
|
+
*/
|
|
279
|
+
tags?: Array<string>;
|
|
280
|
+
/**
|
|
281
|
+
* Whether the source needs network access.
|
|
282
|
+
*
|
|
283
|
+
*/
|
|
284
|
+
online?: boolean;
|
|
285
|
+
}
|
|
286
|
+
export interface ToolingTemplatesConfig {
|
|
287
|
+
/**
|
|
288
|
+
* Master switch (enabled when the section is defined).
|
|
289
|
+
*
|
|
290
|
+
*/
|
|
291
|
+
enabled?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Extra sources on top of the builtin + registry sources.
|
|
294
|
+
*
|
|
295
|
+
*/
|
|
296
|
+
sources?: Array<ToolingTemplateSource>;
|
|
297
|
+
}
|
|
298
|
+
export interface ToolingViteConfig {
|
|
299
|
+
/**
|
|
300
|
+
* Master switch (enabled when the section is defined).
|
|
301
|
+
*
|
|
302
|
+
*/
|
|
303
|
+
enabled?: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Write the managed `vite.config.ts` (default true when the section is set).
|
|
306
|
+
*
|
|
307
|
+
*/
|
|
308
|
+
config?: boolean;
|
|
309
|
+
/**
|
|
310
|
+
* `create.defaultTemplate`, eg. `@acme` for `@acme/create`.
|
|
311
|
+
*
|
|
312
|
+
*/
|
|
313
|
+
defaultTemplate?: string;
|
|
314
|
+
/**
|
|
315
|
+
* Extra Vitest include globs (default: tests under src + tests).
|
|
316
|
+
*
|
|
317
|
+
*/
|
|
318
|
+
testInclude?: Array<string>;
|
|
319
|
+
/**
|
|
320
|
+
* Glob patterns Oxlint should ignore.
|
|
321
|
+
*
|
|
322
|
+
*/
|
|
323
|
+
lintIgnore?: Array<string>;
|
|
324
|
+
/**
|
|
325
|
+
* Deep-merged over the generated `vite.config.ts` object.
|
|
326
|
+
*
|
|
327
|
+
*/
|
|
328
|
+
overrides?: Record<string, unknown>;
|
|
329
|
+
}
|
|
330
|
+
export interface ToolingConfigSections {
|
|
331
|
+
project?: ToolingProjectConfig;
|
|
332
|
+
changelog?: boolean | ToolingChangelogConfig;
|
|
333
|
+
biome?: boolean | ToolingBiomeConfig;
|
|
334
|
+
tsconfig?: boolean | ToolingTsconfigConfig;
|
|
335
|
+
templates?: boolean | ToolingTemplatesConfig;
|
|
336
|
+
vite?: boolean | ToolingViteConfig;
|
|
337
|
+
watch?: boolean | ToolingWatchConfig;
|
|
338
|
+
}
|
|
339
|
+
export interface DbxConfigSections {
|
|
340
|
+
toolchain?: ToolingConfigSections;
|
|
341
|
+
}
|
|
342
|
+
//#endregion
|
|
@@ -6,12 +6,13 @@ import { ToolingProvider, ToolingProviderAction, ToolingProviderCommand, provide
|
|
|
6
6
|
import { RunOptions, run, spawnCross } from "./run.js";
|
|
7
7
|
import { asString, camelCase, camelCaseId, capitalize, constantCase, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, formatCliFlag, hasText, indent, isLocalhost, kebabCase, pascalCase, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, sanitizeSlashes, snakeCase, str, titleCase } from "./string-utils.js";
|
|
8
8
|
import { ReplacementOptions, ReplacementValue, Replacements, Replacer, applyReplacements, applyReplacementsDeep, createReplacer, defineReplacements, extractTokens, hasUnresolvedTokens, tokenPattern } from "./template.js";
|
|
9
|
-
import {
|
|
9
|
+
import { ChangelogWorkflowsConfig, DbxConfigSections, ProjectType, ToolingBiomeConfig, ToolingChangelogConfig, ToolingConfigSections, ToolingProjectConfig, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig } from "./config-types.js";
|
|
10
10
|
import { Awaitable, GeneratedFile, JsonValue, PackageJson, ToolingArgument, ToolingCommand, ToolingCommandContext, ToolingOption } from "./types.js";
|
|
11
|
+
import { CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, biomeConfigSchema, changelogConfigSchema, changelogWorkflowsConfigSchema, dbxConfigSchema, projectConfigSchema, projectTypeSchema, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema } from "./config-schema.js";
|
|
11
12
|
import { CONFIG_FILE_NAMES, DbxConfig, ManagedFile, SyncContext, SyncSummary, SyncTask, ToolingConfig, ToolingHooks, ToolingSection, defineConfig, repoSlugFromUrl, resolveTokens, sectionConfig, sectionEnabled } from "./toolchain.js";
|
|
12
13
|
import { YamlValue, toYaml } from "./yaml.js";
|
|
13
14
|
declare namespace index_d_exports {
|
|
14
|
-
export { Awaitable, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, ChangelogWorkflowsConfig, DbxConfig, DbxConfigSections, GeneratedFile, JsonValue, ManagedFile, PackageJson, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SyncContext, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, YamlValue, applyReplacements, applyReplacementsDeep, asString, biomeConfigSchema, camelCase, camelCaseId, capitalize, changelogConfigSchema, changelogWorkflowsConfigSchema, constantCase, createReplacer, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, formatCliFlag, hasText, hasUnresolvedTokens, indent, isLocalhost, isPlainObject, kebabCase, mapValues, mergeJsonAt, pascalCase, projectConfigSchema, projectTypeSchema, providerActions, readJsonAt, readJsonFile, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveSort, resolveTokens, run, sanitizeSlashes, sectionConfig, sectionEnabled, snakeCase, sort, spawnCross, str, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
15
|
+
export { Awaitable, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, ChangelogWorkflowsConfig, DbxConfig, DbxConfigSections, GeneratedFile, JsonValue, ManagedFile, PackageJson, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SyncContext, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, YamlValue, applyReplacements, applyReplacementsDeep, asString, biomeConfigSchema, camelCase, camelCaseId, capitalize, changelogConfigSchema, changelogWorkflowsConfigSchema, constantCase, createReplacer, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, formatCliFlag, hasText, hasUnresolvedTokens, indent, isLocalhost, isPlainObject, kebabCase, mapValues, mergeJsonAt, pascalCase, projectConfigSchema, projectTypeSchema, providerActions, readJsonAt, readJsonFile, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveSort, resolveTokens, run, sanitizeSlashes, sectionConfig, sectionEnabled, snakeCase, sort, spawnCross, str, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
|
-
export { Awaitable, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, ChangelogWorkflowsConfig, DbxConfig, DbxConfigSections, GeneratedFile, JsonValue, ManagedFile, PackageJson, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SyncContext, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, type YamlValue, applyReplacements, applyReplacementsDeep, asString, biomeConfigSchema, camelCase, camelCaseId, capitalize, changelogConfigSchema, changelogWorkflowsConfigSchema, constantCase, createReplacer, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, formatCliFlag, hasText, hasUnresolvedTokens, indent, index_d_exports, isLocalhost, isPlainObject, kebabCase, mapValues, mergeJsonAt, pascalCase, projectConfigSchema, projectTypeSchema, providerActions, readJsonAt, readJsonFile, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveSort, resolveTokens, run, sanitizeSlashes, sectionConfig, sectionEnabled, snakeCase, sort, spawnCross, str, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
18
|
+
export { Awaitable, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, ChangelogWorkflowsConfig, DbxConfig, DbxConfigSections, GeneratedFile, JsonValue, ManagedFile, PackageJson, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SyncContext, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, type YamlValue, applyReplacements, applyReplacementsDeep, asString, biomeConfigSchema, camelCase, camelCaseId, capitalize, changelogConfigSchema, changelogWorkflowsConfigSchema, constantCase, createReplacer, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, formatCliFlag, hasText, hasUnresolvedTokens, indent, index_d_exports, isLocalhost, isPlainObject, kebabCase, mapValues, mergeJsonAt, pascalCase, projectConfigSchema, projectTypeSchema, providerActions, readJsonAt, readJsonFile, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveSort, resolveTokens, run, sanitizeSlashes, sectionConfig, sectionEnabled, snakeCase, sort, spawnCross, str, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{__exportAll as ee}from"../../../_virtual/_rolldown/runtime.js";import{deepMerge as e,isPlainObject as t,mapValues as n,resolveSort as r,sort as i}from"./object-utils.js";import{mergeJsonAt as a,readJsonAt as o,readJsonFile as s,toJson as c,writeJsonFile as l}from"./fs-utils.js";import{providerActions as u}from"./provider.js";import{run as d,spawnCross as f}from"./run.js";import{asString as p,camelCase as m,camelCaseId as h,capitalize as g,constantCase as _,ensureLeadingSlash as v,ensureSlashes as y,ensureTrailingSlash as b,formatCliFlag as x,hasText as S,indent as C,isLocalhost as w,kebabCase as T,pascalCase as E,removeDoubleSlashes as D,removeLeadingSlash as O,removeTrailingSlash as k,sanitizeSlashes as A,snakeCase as j,str as M,titleCase as N}from"./string-utils.js";import{applyReplacements as P,applyReplacementsDeep as F,createReplacer as te,defineReplacements as I,extractTokens as L,hasUnresolvedTokens as R,tokenPattern as z}from"./template.js";import{CONFIG_SECTION_DESCRIPTIONS as B,CONFIG_SECTION_SCHEMAS as V,
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{__exportAll as ee}from"../../../_virtual/_rolldown/runtime.js";import{deepMerge as e,isPlainObject as t,mapValues as n,resolveSort as r,sort as i}from"./object-utils.js";import{mergeJsonAt as a,readJsonAt as o,readJsonFile as s,toJson as c,writeJsonFile as l}from"./fs-utils.js";import{providerActions as u}from"./provider.js";import{run as d,spawnCross as f}from"./run.js";import{asString as p,camelCase as m,camelCaseId as h,capitalize as g,constantCase as _,ensureLeadingSlash as v,ensureSlashes as y,ensureTrailingSlash as b,formatCliFlag as x,hasText as S,indent as C,isLocalhost as w,kebabCase as T,pascalCase as E,removeDoubleSlashes as D,removeLeadingSlash as O,removeTrailingSlash as k,sanitizeSlashes as A,snakeCase as j,str as M,titleCase as N}from"./string-utils.js";import{applyReplacements as P,applyReplacementsDeep as F,createReplacer as te,defineReplacements as I,extractTokens as L,hasUnresolvedTokens as R,tokenPattern as z}from"./template.js";import{CONFIG_SECTION_DESCRIPTIONS as B,CONFIG_SECTION_SCHEMAS as V,CONFIG_TYPE_SCHEMAS as H,biomeConfigSchema as U,changelogConfigSchema as W,changelogWorkflowsConfigSchema as G,dbxConfigSchema as K,projectConfigSchema as q,projectTypeSchema as J,templateKindSchema as Y,templateSourceSchema as X,templateSourceTypeSchema as Z,templatesConfigSchema as Q,toolingConfigSchema as $,tsconfigConfigSchema as ne,viteConfigSchema as re,watchConfigSchema as ie,workflowConfigSchema as ae,workflowSettingSchema as oe,workflowStepSchema as se,workflowStepsConfigSchema as ce}from"./config-schema.js";import{CONFIG_FILE_NAMES as le,defineConfig as ue,repoSlugFromUrl as de,resolveTokens as fe,sectionConfig as pe,sectionEnabled as me}from"./toolchain.js";import{toYaml as he}from"./yaml.js";var ge=/* @__PURE__ */ ee({CONFIG_FILE_NAMES:()=>le,CONFIG_SECTION_DESCRIPTIONS:()=>B,CONFIG_SECTION_SCHEMAS:()=>V,CONFIG_TYPE_SCHEMAS:()=>H,applyReplacements:()=>P,applyReplacementsDeep:()=>F,asString:()=>p,biomeConfigSchema:()=>U,camelCase:()=>m,camelCaseId:()=>h,capitalize:()=>g,changelogConfigSchema:()=>W,changelogWorkflowsConfigSchema:()=>G,constantCase:()=>_,createReplacer:()=>te,dbxConfigSchema:()=>K,deepMerge:()=>e,defineConfig:()=>ue,defineReplacements:()=>I,ensureLeadingSlash:()=>v,ensureSlashes:()=>y,ensureTrailingSlash:()=>b,extractTokens:()=>L,formatCliFlag:()=>x,hasText:()=>S,hasUnresolvedTokens:()=>R,indent:()=>C,isLocalhost:()=>w,isPlainObject:()=>t,kebabCase:()=>T,mapValues:()=>n,mergeJsonAt:()=>a,pascalCase:()=>E,projectConfigSchema:()=>q,projectTypeSchema:()=>J,providerActions:()=>u,readJsonAt:()=>o,readJsonFile:()=>s,removeDoubleSlashes:()=>D,removeLeadingSlash:()=>O,removeTrailingSlash:()=>k,repoSlugFromUrl:()=>de,resolveSort:()=>r,resolveTokens:()=>fe,run:()=>d,sanitizeSlashes:()=>A,sectionConfig:()=>pe,sectionEnabled:()=>me,snakeCase:()=>j,sort:()=>i,spawnCross:()=>f,str:()=>M,templateKindSchema:()=>Y,templateSourceSchema:()=>X,templateSourceTypeSchema:()=>Z,templatesConfigSchema:()=>Q,titleCase:()=>N,toJson:()=>c,toYaml:()=>he,tokenPattern:()=>z,toolingConfigSchema:()=>$,tsconfigConfigSchema:()=>ne,viteConfigSchema:()=>re,watchConfigSchema:()=>ie,workflowConfigSchema:()=>ae,workflowSettingSchema:()=>oe,workflowStepSchema:()=>se,workflowStepsConfigSchema:()=>ce,writeJsonFile:()=>l});export{le as CONFIG_FILE_NAMES,B as CONFIG_SECTION_DESCRIPTIONS,V as CONFIG_SECTION_SCHEMAS,H as CONFIG_TYPE_SCHEMAS,P as applyReplacements,F as applyReplacementsDeep,p as asString,U as biomeConfigSchema,m as camelCase,h as camelCaseId,g as capitalize,W as changelogConfigSchema,G as changelogWorkflowsConfigSchema,_ as constantCase,te as createReplacer,K as dbxConfigSchema,e as deepMerge,ue as defineConfig,I as defineReplacements,v as ensureLeadingSlash,y as ensureSlashes,b as ensureTrailingSlash,L as extractTokens,x as formatCliFlag,S as hasText,R as hasUnresolvedTokens,C as indent,w as isLocalhost,t as isPlainObject,T as kebabCase,n as mapValues,a as mergeJsonAt,E as pascalCase,q as projectConfigSchema,J as projectTypeSchema,u as providerActions,o as readJsonAt,s as readJsonFile,D as removeDoubleSlashes,O as removeLeadingSlash,k as removeTrailingSlash,de as repoSlugFromUrl,r as resolveSort,fe as resolveTokens,d as run,A as sanitizeSlashes,pe as sectionConfig,me as sectionEnabled,j as snakeCase,i as sort,f as spawnCross,ge as src_exports,M as str,Y as templateKindSchema,X as templateSourceSchema,Z as templateSourceTypeSchema,Q as templatesConfigSchema,N as titleCase,c as toJson,he as toYaml,z as tokenPattern,$ as toolingConfigSchema,ne as tsconfigConfigSchema,re as viteConfigSchema,ie as watchConfigSchema,ae as workflowConfigSchema,oe as workflowSettingSchema,se as workflowStepSchema,ce as workflowStepsConfigSchema,l as writeJsonFile};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { Replacements } from "./template.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ChangelogWorkflowsConfig, DbxConfigSections, ProjectType, ToolingBiomeConfig, ToolingChangelogConfig, ToolingConfigSections, ToolingProjectConfig, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig } from "./config-types.js";
|
|
5
5
|
import { Awaitable } from "./types.js";
|
|
6
|
+
import { CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, biomeConfigSchema, changelogConfigSchema, changelogWorkflowsConfigSchema, dbxConfigSchema, projectConfigSchema, projectTypeSchema, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema } from "./config-schema.js";
|
|
6
7
|
//#region packages/shared/src/toolchain.d.ts
|
|
7
8
|
/** A summary of a sync run, handed to {@link ToolingHooks.afterSync}. */
|
|
8
9
|
export interface SyncSummary {
|
|
@@ -156,4 +157,4 @@ export interface SyncTask {
|
|
|
156
157
|
run: (ctx: SyncContext) => Awaitable<ManagedFile[] | void>;
|
|
157
158
|
}
|
|
158
159
|
//#endregion
|
|
159
|
-
export { CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, ChangelogWorkflowsConfig, DbxConfigSections, ProjectType, ToolingBiomeConfig, ToolingChangelogConfig, ToolingConfigSections, ToolingProjectConfig, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, biomeConfigSchema, changelogConfigSchema, changelogWorkflowsConfigSchema, dbxConfigSchema, projectConfigSchema, projectTypeSchema, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema };
|
|
160
|
+
export { CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, ChangelogWorkflowsConfig, DbxConfigSections, ProjectType, ToolingBiomeConfig, ToolingChangelogConfig, ToolingConfigSections, ToolingProjectConfig, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, biomeConfigSchema, changelogConfigSchema, changelogWorkflowsConfigSchema, dbxConfigSchema, projectConfigSchema, projectTypeSchema, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{CONFIG_SECTION_DESCRIPTIONS as e,CONFIG_SECTION_SCHEMAS as t,
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{CONFIG_SECTION_DESCRIPTIONS as e,CONFIG_SECTION_SCHEMAS as t,CONFIG_TYPE_SCHEMAS as n,biomeConfigSchema as r,changelogConfigSchema as i,changelogWorkflowsConfigSchema as a,dbxConfigSchema as o,projectConfigSchema as s,projectTypeSchema as c,templateKindSchema as l,templateSourceSchema as u,templateSourceTypeSchema as d,templatesConfigSchema as f,toolingConfigSchema as p,tsconfigConfigSchema as m,viteConfigSchema as h,watchConfigSchema as g,workflowConfigSchema as _,workflowSettingSchema as v,workflowStepSchema as y,workflowStepsConfigSchema as b}from"./config-schema.js";function x(e){return e}function S(e){return e===void 0?!1:typeof e==`boolean`?e:e.enabled!==!1}function C(e){return e!==void 0&&typeof e==`object`?e:void 0}const w=[`dbx.config.ts`,`dbx.config.mts`,`dbx.config.js`,`dbx.config.mjs`,`dbx.config.cjs`,`dbx.config.json`];function T(e){if(!e)return;let t=e.match(/github\.com[/:]([^/]+)\/([^/.]+?)(?:\.git)?$/);return t?.[1]&&t[2]?`${t[1]}/${t[2]}`:void 0}function E(e={}){let t=e.project??{},n=C(e.changelog)??{};return{name:t.name??`app`,scope:t.scope??``,author:t.author??``,license:t.license??`MIT`,homepage:t.homepage??``,repo:t.repo??``,repoSlug:T(t.repo)??``,description:t.description??``,nodeVersion:t.nodeVersion??`22`,packageManager:t.packageManager??`yarn`,yarnVersion:t.packageManagerVersion??`4.17.1`,packageManagerVersion:t.packageManagerVersion??`4.17.1`,mainBranch:n.branches?.main??`main`,devBranch:n.branches?.dev??`dev`}}export{w as CONFIG_FILE_NAMES,e as CONFIG_SECTION_DESCRIPTIONS,t as CONFIG_SECTION_SCHEMAS,n as CONFIG_TYPE_SCHEMAS,r as biomeConfigSchema,i as changelogConfigSchema,a as changelogWorkflowsConfigSchema,o as dbxConfigSchema,x as defineConfig,s as projectConfigSchema,c as projectTypeSchema,T as repoSlugFromUrl,E as resolveTokens,C as sectionConfig,S as sectionEnabled,l as templateKindSchema,u as templateSourceSchema,d as templateSourceTypeSchema,f as templatesConfigSchema,p as toolingConfigSchema,m as tsconfigConfigSchema,h as viteConfigSchema,g as watchConfigSchema,_ as workflowConfigSchema,v as workflowSettingSchema,y as workflowStepSchema,b as workflowStepsConfigSchema};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { Replacements } from "./template.js";
|
|
4
|
-
import { ProjectType } from "./config-
|
|
4
|
+
import { ProjectType } from "./config-types.js";
|
|
5
5
|
import { ToolingConfig } from "./toolchain.js";
|
|
6
6
|
//#region packages/shared/src/types.d.ts
|
|
7
7
|
/** A value that may or may not be awaited. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
import { ToolingTemplateSource } from "../../shared/src/config-
|
|
3
|
+
import { ToolingTemplateSource } from "../../shared/src/config-types.js";
|
|
4
4
|
import "../../shared/src/index.js";
|
|
5
5
|
import { Template } from "./types.js";
|
|
6
6
|
//#region packages/template/src/online.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
import { ToolingTemplateSource } from "../../shared/src/config-
|
|
3
|
+
import { ToolingTemplateSource } from "../../shared/src/config-types.js";
|
|
4
4
|
import { ToolingConfig } from "../../shared/src/toolchain.js";
|
|
5
5
|
import "../../shared/src/index.js";
|
|
6
6
|
import { Template } from "./types.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
|
-
import { ToolingTemplateKind, ToolingTemplateSource } from "../../shared/src/config-
|
|
3
|
+
import { ToolingTemplateKind, ToolingTemplateSource } from "../../shared/src/config-types.js";
|
|
4
4
|
import "../../shared/src/index.js";
|
|
5
5
|
//#region packages/template/src/types.d.ts
|
|
6
6
|
/** What a template produces (shared with the registry source model). */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { Replacements } from "../../shared/src/template.js";
|
|
4
|
-
import { ToolingViteConfig } from "../../shared/src/config-
|
|
4
|
+
import { ToolingViteConfig } from "../../shared/src/config-types.js";
|
|
5
5
|
import { SyncTask } from "../../shared/src/toolchain.js";
|
|
6
6
|
import "../../shared/src/index.js";
|
|
7
7
|
//#region packages/vite/src/sync.d.ts
|
package/dist/shared.d.ts
CHANGED
|
@@ -6,9 +6,10 @@ import { ToolingProvider, ToolingProviderAction, ToolingProviderCommand, provide
|
|
|
6
6
|
import { RunOptions, run, spawnCross } from "./packages/shared/src/run.js";
|
|
7
7
|
import { asString, camelCase, camelCaseId, capitalize, constantCase, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, formatCliFlag, hasText, indent, isLocalhost, kebabCase, pascalCase, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, sanitizeSlashes, snakeCase, str, titleCase } from "./packages/shared/src/string-utils.js";
|
|
8
8
|
import { ReplacementOptions, ReplacementValue, Replacements, Replacer, applyReplacements, applyReplacementsDeep, createReplacer, defineReplacements, extractTokens, hasUnresolvedTokens, tokenPattern } from "./packages/shared/src/template.js";
|
|
9
|
-
import {
|
|
9
|
+
import { ChangelogWorkflowsConfig, DbxConfigSections, ProjectType, ToolingBiomeConfig, ToolingChangelogConfig, ToolingConfigSections, ToolingProjectConfig, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig } from "./packages/shared/src/config-types.js";
|
|
10
10
|
import { Awaitable, GeneratedFile, JsonValue, PackageJson, ToolingArgument, ToolingCommand, ToolingCommandContext, ToolingOption } from "./packages/shared/src/types.js";
|
|
11
|
+
import { CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, biomeConfigSchema, changelogConfigSchema, changelogWorkflowsConfigSchema, dbxConfigSchema, projectConfigSchema, projectTypeSchema, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema } from "./packages/shared/src/config-schema.js";
|
|
11
12
|
import { CONFIG_FILE_NAMES, DbxConfig, ManagedFile, SyncContext, SyncSummary, SyncTask, ToolingConfig, ToolingHooks, ToolingSection, defineConfig, repoSlugFromUrl, resolveTokens, sectionConfig, sectionEnabled } from "./packages/shared/src/toolchain.js";
|
|
12
13
|
import { YamlValue, toYaml } from "./packages/shared/src/yaml.js";
|
|
13
14
|
import "./packages/shared/src/index.js";
|
|
14
|
-
export { Awaitable, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, ChangelogWorkflowsConfig, DbxConfig, DbxConfigSections, GeneratedFile, JsonValue, ManagedFile, PackageJson, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SyncContext, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, type YamlValue, applyReplacements, applyReplacementsDeep, asString, biomeConfigSchema, camelCase, camelCaseId, capitalize, changelogConfigSchema, changelogWorkflowsConfigSchema, constantCase, createReplacer, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, formatCliFlag, hasText, hasUnresolvedTokens, indent, isLocalhost, isPlainObject, kebabCase, mapValues, mergeJsonAt, pascalCase, projectConfigSchema, projectTypeSchema, providerActions, readJsonAt, readJsonFile, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveSort, resolveTokens, run, sanitizeSlashes, sectionConfig, sectionEnabled, snakeCase, sort, spawnCross, str, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
|
15
|
+
export { Awaitable, CONFIG_FILE_NAMES, CONFIG_SECTION_DESCRIPTIONS, CONFIG_SECTION_SCHEMAS, CONFIG_TYPE_SCHEMAS, ChangelogWorkflowsConfig, DbxConfig, DbxConfigSections, GeneratedFile, JsonValue, ManagedFile, PackageJson, ProjectType, ReplacementOptions, ReplacementValue, Replacements, Replacer, RunOptions, Sortable, SyncContext, SyncSummary, SyncTask, ToolingArgument, ToolingBiomeConfig, ToolingChangelogConfig, ToolingCommand, ToolingCommandContext, ToolingConfig, ToolingConfigSections, ToolingHooks, ToolingOption, ToolingProjectConfig, ToolingProvider, ToolingProviderAction, ToolingProviderCommand, ToolingSection, ToolingTemplateKind, ToolingTemplateSource, ToolingTemplateSourceType, ToolingTemplatesConfig, ToolingTsconfigConfig, ToolingViteConfig, ToolingWatchConfig, WorkflowConfig, WorkflowSetting, WorkflowStep, WorkflowStepsConfig, type YamlValue, applyReplacements, applyReplacementsDeep, asString, biomeConfigSchema, camelCase, camelCaseId, capitalize, changelogConfigSchema, changelogWorkflowsConfigSchema, constantCase, createReplacer, dbxConfigSchema, deepMerge, defineConfig, defineReplacements, ensureLeadingSlash, ensureSlashes, ensureTrailingSlash, extractTokens, formatCliFlag, hasText, hasUnresolvedTokens, indent, isLocalhost, isPlainObject, kebabCase, mapValues, mergeJsonAt, pascalCase, projectConfigSchema, projectTypeSchema, providerActions, readJsonAt, readJsonFile, removeDoubleSlashes, removeLeadingSlash, removeTrailingSlash, repoSlugFromUrl, resolveSort, resolveTokens, run, sanitizeSlashes, sectionConfig, sectionEnabled, snakeCase, sort, spawnCross, str, templateKindSchema, templateSourceSchema, templateSourceTypeSchema, templatesConfigSchema, titleCase, toJson, toYaml, tokenPattern, toolingConfigSchema, tsconfigConfigSchema, viteConfigSchema, watchConfigSchema, workflowConfigSchema, workflowSettingSchema, workflowStepSchema, workflowStepsConfigSchema, writeJsonFile };
|
package/dist/shared.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"node:path";import"node:url";import.meta.url;import{deepMerge as e,isPlainObject as t,mapValues as n,resolveSort as r,sort as i}from"./packages/shared/src/object-utils.js";import{mergeJsonAt as a,readJsonAt as o,readJsonFile as s,toJson as c,writeJsonFile as l}from"./packages/shared/src/fs-utils.js";import{providerActions as u}from"./packages/shared/src/provider.js";import{run as d,spawnCross as f}from"./packages/shared/src/run.js";import{asString as p,camelCase as m,camelCaseId as h,capitalize as g,constantCase as _,ensureLeadingSlash as v,ensureSlashes as y,ensureTrailingSlash as b,formatCliFlag as x,hasText as S,indent as C,isLocalhost as w,kebabCase as T,pascalCase as E,removeDoubleSlashes as D,removeLeadingSlash as O,removeTrailingSlash as k,sanitizeSlashes as A,snakeCase as j,str as M,titleCase as N}from"./packages/shared/src/string-utils.js";import{applyReplacements as P,applyReplacementsDeep as F,createReplacer as I,defineReplacements as L,extractTokens as R,hasUnresolvedTokens as z,tokenPattern as B}from"./packages/shared/src/template.js";import{CONFIG_SECTION_DESCRIPTIONS as V,CONFIG_SECTION_SCHEMAS as H,
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{deepMerge as e,isPlainObject as t,mapValues as n,resolveSort as r,sort as i}from"./packages/shared/src/object-utils.js";import{mergeJsonAt as a,readJsonAt as o,readJsonFile as s,toJson as c,writeJsonFile as l}from"./packages/shared/src/fs-utils.js";import{providerActions as u}from"./packages/shared/src/provider.js";import{run as d,spawnCross as f}from"./packages/shared/src/run.js";import{asString as p,camelCase as m,camelCaseId as h,capitalize as g,constantCase as _,ensureLeadingSlash as v,ensureSlashes as y,ensureTrailingSlash as b,formatCliFlag as x,hasText as S,indent as C,isLocalhost as w,kebabCase as T,pascalCase as E,removeDoubleSlashes as D,removeLeadingSlash as O,removeTrailingSlash as k,sanitizeSlashes as A,snakeCase as j,str as M,titleCase as N}from"./packages/shared/src/string-utils.js";import{applyReplacements as P,applyReplacementsDeep as F,createReplacer as I,defineReplacements as L,extractTokens as R,hasUnresolvedTokens as z,tokenPattern as B}from"./packages/shared/src/template.js";import{CONFIG_SECTION_DESCRIPTIONS as V,CONFIG_SECTION_SCHEMAS as H,CONFIG_TYPE_SCHEMAS as U,biomeConfigSchema as W,changelogConfigSchema as G,changelogWorkflowsConfigSchema as K,dbxConfigSchema as q,projectConfigSchema as J,projectTypeSchema as Y,templateKindSchema as X,templateSourceSchema as Z,templateSourceTypeSchema as Q,templatesConfigSchema as $,toolingConfigSchema as ee,tsconfigConfigSchema as te,viteConfigSchema as ne,watchConfigSchema as re,workflowConfigSchema as ie,workflowSettingSchema as ae,workflowStepSchema as oe,workflowStepsConfigSchema as se}from"./packages/shared/src/config-schema.js";import{CONFIG_FILE_NAMES as ce,defineConfig as le,repoSlugFromUrl as ue,resolveTokens as de,sectionConfig as fe,sectionEnabled as pe}from"./packages/shared/src/toolchain.js";import{toYaml as me}from"./packages/shared/src/yaml.js";import"./packages/shared/src/index.js";export{ce as CONFIG_FILE_NAMES,V as CONFIG_SECTION_DESCRIPTIONS,H as CONFIG_SECTION_SCHEMAS,U as CONFIG_TYPE_SCHEMAS,P as applyReplacements,F as applyReplacementsDeep,p as asString,W as biomeConfigSchema,m as camelCase,h as camelCaseId,g as capitalize,G as changelogConfigSchema,K as changelogWorkflowsConfigSchema,_ as constantCase,I as createReplacer,q as dbxConfigSchema,e as deepMerge,le as defineConfig,L as defineReplacements,v as ensureLeadingSlash,y as ensureSlashes,b as ensureTrailingSlash,R as extractTokens,x as formatCliFlag,S as hasText,z as hasUnresolvedTokens,C as indent,w as isLocalhost,t as isPlainObject,T as kebabCase,n as mapValues,a as mergeJsonAt,E as pascalCase,J as projectConfigSchema,Y as projectTypeSchema,u as providerActions,o as readJsonAt,s as readJsonFile,D as removeDoubleSlashes,O as removeLeadingSlash,k as removeTrailingSlash,ue as repoSlugFromUrl,r as resolveSort,de as resolveTokens,d as run,A as sanitizeSlashes,fe as sectionConfig,pe as sectionEnabled,j as snakeCase,i as sort,f as spawnCross,M as str,X as templateKindSchema,Z as templateSourceSchema,Q as templateSourceTypeSchema,$ as templatesConfigSchema,N as titleCase,c as toJson,me as toYaml,B as tokenPattern,ee as toolingConfigSchema,te as tsconfigConfigSchema,ne as viteConfigSchema,re as watchConfigSchema,ie as workflowConfigSchema,ae as workflowSettingSchema,oe as workflowStepSchema,se as workflowStepsConfigSchema,l as writeJsonFile};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deltabox/toolchain",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "All-in-one toolchain: scaffold projects, manage templates, configs, tsconfigs, changelogs and builds.",
|
|
5
5
|
"homepage": "https://toolchain.deltabox.studio",
|
|
6
6
|
"author": "Victor Sango <victor@deltabox.studio>",
|
|
@@ -27,10 +27,18 @@
|
|
|
27
27
|
"vite-plus",
|
|
28
28
|
"changelog",
|
|
29
29
|
"scaffold",
|
|
30
|
-
"extension"
|
|
30
|
+
"extension",
|
|
31
|
+
"zod",
|
|
32
|
+
"types",
|
|
33
|
+
"markdown",
|
|
34
|
+
"environment",
|
|
35
|
+
"variables",
|
|
36
|
+
"configuration",
|
|
37
|
+
"settings"
|
|
31
38
|
],
|
|
32
39
|
"scripts": {
|
|
33
40
|
"build": "vp run --filter \"./packages/*\" build && vp run build:root",
|
|
41
|
+
"docs": "vp run --filter \"./apps/docs\"",
|
|
34
42
|
"format": "vp fmt",
|
|
35
43
|
"format:check": "vp fmt --check",
|
|
36
44
|
"lint": "vp lint --fix",
|
|
@@ -41,6 +49,7 @@
|
|
|
41
49
|
"vp:test": "vp test --run --config vite.config.ts",
|
|
42
50
|
"vp:toolchain": "vp toolchain",
|
|
43
51
|
"config:generate": "tsx scripts/generate-config.ts",
|
|
52
|
+
"config:types": "tsx scripts/generate-config-types.ts",
|
|
44
53
|
"dev": "tsx src/cli/index.ts",
|
|
45
54
|
"dbx": "tsx src/cli/index.ts",
|
|
46
55
|
"commitlint": "commitlint",
|
|
@@ -65,17 +74,17 @@
|
|
|
65
74
|
"devDependencies": {
|
|
66
75
|
"@commitlint/cli": "^21.2.2",
|
|
67
76
|
"@commitlint/config-conventional": "^21.2.2",
|
|
68
|
-
"@deltabox/toolchain-biome": "1.1
|
|
69
|
-
"@deltabox/toolchain-changelog": "1.1
|
|
70
|
-
"@deltabox/toolchain-config": "1.1
|
|
71
|
-
"@deltabox/toolchain-core": "1.1
|
|
72
|
-
"@deltabox/toolchain-migrate": "1.1
|
|
73
|
-
"@deltabox/toolchain-project": "1.1
|
|
74
|
-
"@deltabox/toolchain-shared": "1.1
|
|
75
|
-
"@deltabox/toolchain-template": "1.1
|
|
76
|
-
"@deltabox/toolchain-tsconfig": "1.1
|
|
77
|
-
"@deltabox/toolchain-tsdown": "1.1
|
|
78
|
-
"@deltabox/toolchain-vite": "1.1
|
|
77
|
+
"@deltabox/toolchain-biome": "1.2.1",
|
|
78
|
+
"@deltabox/toolchain-changelog": "1.2.1",
|
|
79
|
+
"@deltabox/toolchain-config": "1.2.1",
|
|
80
|
+
"@deltabox/toolchain-core": "1.2.1",
|
|
81
|
+
"@deltabox/toolchain-migrate": "1.2.1",
|
|
82
|
+
"@deltabox/toolchain-project": "1.2.1",
|
|
83
|
+
"@deltabox/toolchain-shared": "1.2.1",
|
|
84
|
+
"@deltabox/toolchain-template": "1.2.1",
|
|
85
|
+
"@deltabox/toolchain-tsconfig": "1.2.1",
|
|
86
|
+
"@deltabox/toolchain-tsdown": "1.2.1",
|
|
87
|
+
"@deltabox/toolchain-vite": "1.2.1",
|
|
79
88
|
"@types/node": "^22.10.2",
|
|
80
89
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
81
90
|
"cross-env": "^10.1.0",
|