@deltabox/toolchain 0.0.0-stage → 1.1.21
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 +314 -0
- package/LICENSE +373 -0
- package/README.md +235 -2
- package/dist/_virtual/_rolldown/runtime.js +1 -0
- package/dist/biome.d.ts +4 -0
- package/dist/biome.js +1 -0
- package/dist/changelog.d.ts +17 -0
- package/dist/changelog.js +1 -0
- package/dist/cli/commands/index.js +1 -0
- package/dist/cli/commands/projects.js +1 -0
- package/dist/cli/commands/providers.js +1 -0
- package/dist/cli/commands/reset.js +1 -0
- package/dist/cli/commands/shared.js +1 -0
- package/dist/cli/commands/sync.js +1 -0
- package/dist/cli/commands/watch.js +1 -0
- package/dist/cli/context.js +1 -0
- package/dist/cli/index.d.ts +15 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/options.js +1 -0
- package/dist/cli/register.d.ts +14 -0
- package/dist/cli/register.js +1 -0
- package/dist/config.d.ts +18 -0
- package/dist/config.js +1 -0
- package/dist/core.d.ts +13 -0
- package/dist/core.js +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +1 -0
- package/dist/migrate.d.ts +15 -0
- package/dist/migrate.js +1 -0
- package/dist/package.js +1 -0
- package/dist/packages/biome/src/config.js +1 -0
- package/dist/packages/biome/src/index.d.ts +34 -0
- package/dist/packages/biome/src/index.js +1 -0
- package/dist/packages/biome/src/vscode-settings.js +1 -0
- package/dist/packages/changelog/src/cli/index.d.ts +8 -0
- package/dist/packages/changelog/src/cli/index.js +1 -0
- package/dist/packages/changelog/src/index.d.ts +19 -0
- package/dist/packages/changelog/src/index.js +1 -0
- package/dist/packages/changelog/src/run-workflows.d.ts +35 -0
- package/dist/packages/changelog/src/run-workflows.js +1 -0
- package/dist/packages/changelog/src/run.d.ts +14 -0
- package/dist/packages/changelog/src/run.js +1 -0
- package/dist/packages/changelog/src/sync.d.ts +18 -0
- package/dist/packages/changelog/src/sync.js +1 -0
- package/dist/packages/changelog/src/templates.d.ts +27 -0
- package/dist/packages/changelog/src/templates.js +27 -0
- package/dist/packages/changelog/src/utils/args.d.ts +7 -0
- package/dist/packages/changelog/src/utils/args.js +1 -0
- package/dist/packages/changelog/src/utils/format.d.ts +27 -0
- package/dist/packages/changelog/src/utils/format.js +5 -0
- package/dist/packages/changelog/src/utils/git.d.ts +9 -0
- package/dist/packages/changelog/src/utils/git.js +1 -0
- package/dist/packages/changelog/src/utils/packages.js +4 -0
- package/dist/packages/changelog/src/utils/reformat.d.ts +9 -0
- package/dist/packages/changelog/src/utils/reformat.js +6 -0
- package/dist/packages/changelog/src/utils/repo.js +1 -0
- package/dist/packages/changelog/src/utils/summary.d.ts +7 -0
- package/dist/packages/changelog/src/utils/summary.js +1 -0
- package/dist/packages/changelog/src/utils/types.d.ts +58 -0
- package/dist/packages/changelog/src/utils/version.d.ts +6 -0
- package/dist/packages/changelog/src/utils/version.js +14 -0
- package/dist/packages/changelog/src/utils/write.js +1 -0
- package/dist/packages/changelog/src/workflows.d.ts +53 -0
- package/dist/packages/changelog/src/workflows.js +5 -0
- package/dist/packages/config/src/cli/index.d.ts +28 -0
- package/dist/packages/config/src/cli/index.js +1 -0
- package/dist/packages/config/src/collect.d.ts +19 -0
- package/dist/packages/config/src/collect.js +1 -0
- package/dist/packages/config/src/config-json.d.ts +33 -0
- package/dist/packages/config/src/config-json.js +1 -0
- package/dist/packages/config/src/engine.d.ts +56 -0
- package/dist/packages/config/src/engine.js +1 -0
- package/dist/packages/config/src/env-file.d.ts +33 -0
- package/dist/packages/config/src/env-file.js +3 -0
- package/dist/packages/config/src/env.d.ts +31 -0
- package/dist/packages/config/src/env.js +1 -0
- package/dist/packages/config/src/generators/cli.d.ts +78 -0
- package/dist/packages/config/src/generators/cli.js +1 -0
- package/dist/packages/config/src/generators/env.d.ts +42 -0
- package/dist/packages/config/src/generators/env.js +23 -0
- package/dist/packages/config/src/generators/index.d.ts +8 -0
- package/dist/packages/config/src/generators/index.js +1 -0
- package/dist/packages/config/src/generators/json.d.ts +24 -0
- package/dist/packages/config/src/generators/json.js +1 -0
- package/dist/packages/config/src/generators/markdown.d.ts +77 -0
- package/dist/packages/config/src/generators/markdown.js +27 -0
- package/dist/packages/config/src/generators/types.d.ts +32 -0
- package/dist/packages/config/src/generators/types.js +1 -0
- package/dist/packages/config/src/index.d.ts +21 -0
- package/dist/packages/config/src/index.js +1 -0
- package/dist/packages/config/src/root.d.ts +11 -0
- package/dist/packages/config/src/root.js +1 -0
- package/dist/packages/config/src/schema.d.ts +34 -0
- package/dist/packages/config/src/schema.js +1 -0
- package/dist/packages/config/src/types.d.ts +75 -0
- package/dist/packages/config/src/types.js +1 -0
- package/dist/packages/core/src/graph.d.ts +55 -0
- package/dist/packages/core/src/graph.js +1 -0
- package/dist/packages/core/src/index.d.ts +16 -0
- package/dist/packages/core/src/index.js +1 -0
- package/dist/packages/core/src/loader.d.ts +27 -0
- package/dist/packages/core/src/loader.js +1 -0
- package/dist/packages/core/src/manifest.d.ts +17 -0
- package/dist/packages/core/src/manifest.js +1 -0
- package/dist/packages/core/src/project-type.d.ts +14 -0
- package/dist/packages/core/src/project-type.js +1 -0
- package/dist/packages/core/src/reset.d.ts +51 -0
- package/dist/packages/core/src/reset.js +1 -0
- package/dist/packages/core/src/select.d.ts +32 -0
- package/dist/packages/core/src/select.js +1 -0
- package/dist/packages/core/src/sync.d.ts +42 -0
- package/dist/packages/core/src/sync.js +1 -0
- package/dist/packages/core/src/vscode.d.ts +27 -0
- package/dist/packages/core/src/vscode.js +1 -0
- package/dist/packages/core/src/watch.d.ts +17 -0
- package/dist/packages/core/src/watch.js +1 -0
- package/dist/packages/migrate/src/biome.d.ts +18 -0
- package/dist/packages/migrate/src/biome.js +2 -0
- package/dist/packages/migrate/src/check.d.ts +14 -0
- package/dist/packages/migrate/src/check.js +1 -0
- package/dist/packages/migrate/src/cli/index.d.ts +12 -0
- package/dist/packages/migrate/src/cli/index.js +1 -0
- package/dist/packages/migrate/src/dprint.d.ts +18 -0
- package/dist/packages/migrate/src/dprint.js +1 -0
- package/dist/packages/migrate/src/eslint.d.ts +24 -0
- package/dist/packages/migrate/src/eslint.js +1 -0
- package/dist/packages/migrate/src/index.d.ts +14 -0
- package/dist/packages/migrate/src/index.js +1 -0
- package/dist/packages/migrate/src/oxfmt-map.d.ts +28 -0
- package/dist/packages/migrate/src/oxfmt-map.js +1 -0
- package/dist/packages/migrate/src/oxlint-map.d.ts +22 -0
- package/dist/packages/migrate/src/oxlint-map.js +1 -0
- package/dist/packages/migrate/src/prettier.d.ts +20 -0
- package/dist/packages/migrate/src/prettier.js +2 -0
- package/dist/packages/migrate/src/registry.d.ts +26 -0
- package/dist/packages/migrate/src/registry.js +1 -0
- package/dist/packages/migrate/src/types.d.ts +75 -0
- package/dist/packages/migrate/src/vite-target.d.ts +31 -0
- package/dist/packages/migrate/src/vite-target.js +5 -0
- package/dist/packages/project/src/cli/index.d.ts +8 -0
- package/dist/packages/project/src/cli/index.js +1 -0
- package/dist/packages/project/src/config.d.ts +55 -0
- package/dist/packages/project/src/config.js +1 -0
- package/dist/packages/project/src/index.d.ts +10 -0
- package/dist/packages/project/src/index.js +1 -0
- package/dist/packages/project/src/typescript.d.ts +66 -0
- package/dist/packages/project/src/typescript.js +22 -0
- package/dist/packages/shared/src/config-schema.d.ts +2039 -0
- package/dist/packages/shared/src/config-schema.js +1 -0
- package/dist/packages/shared/src/fs-utils.d.ts +18 -0
- package/dist/packages/shared/src/fs-utils.js +1 -0
- package/dist/packages/shared/src/index.d.ts +17 -0
- package/dist/packages/shared/src/index.js +1 -0
- package/dist/packages/shared/src/object-utils.d.ts +15 -0
- package/dist/packages/shared/src/object-utils.js +1 -0
- package/dist/packages/shared/src/provider.d.ts +66 -0
- package/dist/packages/shared/src/provider.js +1 -0
- package/dist/packages/shared/src/run.d.ts +26 -0
- package/dist/packages/shared/src/run.js +1 -0
- package/dist/packages/shared/src/string-utils.d.ts +52 -0
- package/dist/packages/shared/src/string-utils.js +3 -0
- package/dist/packages/shared/src/template.d.ts +53 -0
- package/dist/packages/shared/src/template.js +1 -0
- package/dist/packages/shared/src/toolchain.d.ts +159 -0
- package/dist/packages/shared/src/toolchain.js +1 -0
- package/dist/packages/shared/src/types.d.ts +100 -0
- package/dist/packages/shared/src/yaml.d.ts +17 -0
- package/dist/packages/shared/src/yaml.js +5 -0
- package/dist/packages/template/src/builtin.d.ts +10 -0
- package/dist/packages/template/src/builtin.js +1 -0
- package/dist/packages/template/src/cli/index.d.ts +8 -0
- package/dist/packages/template/src/cli/index.js +1 -0
- package/dist/packages/template/src/index.d.ts +10 -0
- package/dist/packages/template/src/index.js +1 -0
- package/dist/packages/template/src/local.d.ts +20 -0
- package/dist/packages/template/src/local.js +1 -0
- package/dist/packages/template/src/online.d.ts +17 -0
- package/dist/packages/template/src/online.js +1 -0
- package/dist/packages/template/src/registry.d.ts +48 -0
- package/dist/packages/template/src/registry.js +1 -0
- package/dist/packages/template/src/scaffold.d.ts +25 -0
- package/dist/packages/template/src/scaffold.js +1 -0
- package/dist/packages/template/src/types.d.ts +59 -0
- package/dist/packages/tsconfig/src/cli/generate/index.d.ts +35 -0
- package/dist/packages/tsconfig/src/cli/generate/index.js +1 -0
- package/dist/packages/tsconfig/src/cli/generate/utils.d.ts +43 -0
- package/dist/packages/tsconfig/src/cli/generate/utils.js +1 -0
- package/dist/packages/tsconfig/src/cli/index.d.ts +11 -0
- package/dist/packages/tsconfig/src/cli/index.js +1 -0
- package/dist/packages/tsconfig/src/index.d.ts +10 -0
- package/dist/packages/tsconfig/src/index.js +1 -0
- package/dist/packages/tsconfig/src/sync.d.ts +15 -0
- package/dist/packages/tsconfig/src/sync.js +1 -0
- package/dist/packages/tsconfig/src/templates/tsconfig.base.js +1 -0
- package/dist/packages/tsconfig/src/templates/tsconfig.build.js +1 -0
- package/dist/packages/tsconfig/src/templates/tsconfig.default.js +1 -0
- package/dist/packages/tsconfig/src/templates.d.ts +38 -0
- package/dist/packages/tsconfig/src/templates.js +1 -0
- package/dist/packages/tsdown/src/cleanup.d.ts +17 -0
- package/dist/packages/tsdown/src/cleanup.js +1 -0
- package/dist/packages/tsdown/src/cli/index.d.ts +11 -0
- package/dist/packages/tsdown/src/cli/index.js +1 -0
- package/dist/packages/tsdown/src/config/node.d.ts +37 -0
- package/dist/packages/tsdown/src/config/node.js +3 -0
- package/dist/packages/tsdown/src/index.d.ts +9 -0
- package/dist/packages/tsdown/src/index.js +1 -0
- package/dist/packages/vite/src/cli/index.d.ts +8 -0
- package/dist/packages/vite/src/cli/index.js +1 -0
- package/dist/packages/vite/src/commands.d.ts +29 -0
- package/dist/packages/vite/src/commands.js +1 -0
- package/dist/packages/vite/src/index.d.ts +9 -0
- package/dist/packages/vite/src/index.js +1 -0
- package/dist/packages/vite/src/plugin.d.ts +65 -0
- package/dist/packages/vite/src/plugin.js +1 -0
- package/dist/packages/vite/src/provider.d.ts +11 -0
- package/dist/packages/vite/src/provider.js +1 -0
- package/dist/packages/vite/src/sync.d.ts +25 -0
- package/dist/packages/vite/src/sync.js +2 -0
- package/dist/packages/vite/src/vp.d.ts +59 -0
- package/dist/packages/vite/src/vp.js +1 -0
- package/dist/project.d.ts +7 -0
- package/dist/project.js +1 -0
- package/dist/providers.d.ts +11 -0
- package/dist/providers.js +1 -0
- package/dist/shared.d.ts +14 -0
- package/dist/shared.js +1 -0
- package/dist/sync.d.ts +12 -0
- package/dist/sync.js +1 -0
- package/dist/template.d.ts +11 -0
- package/dist/template.js +1 -0
- package/dist/tsconfig.d.ts +8 -0
- package/dist/tsconfig.js +1 -0
- package/dist/tsdown.d.ts +7 -0
- package/dist/tsdown.js +1 -0
- package/dist/vite.d.ts +10 -0
- package/dist/vite.js +1 -0
- package/package.json +114 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
Mozilla Public License Version 2.0
|
|
2
|
+
==================================
|
|
3
|
+
|
|
4
|
+
1. Definitions
|
|
5
|
+
--------------
|
|
6
|
+
|
|
7
|
+
1.1. "Contributor"
|
|
8
|
+
means each individual or legal entity that creates, contributes to
|
|
9
|
+
the creation of, or owns Covered Software.
|
|
10
|
+
|
|
11
|
+
1.2. "Contributor Version"
|
|
12
|
+
means the combination of the Contributions of others (if any) used
|
|
13
|
+
by a Contributor and that particular Contributor's Contribution.
|
|
14
|
+
|
|
15
|
+
1.3. "Contribution"
|
|
16
|
+
means Covered Software of a particular Contributor.
|
|
17
|
+
|
|
18
|
+
1.4. "Covered Software"
|
|
19
|
+
means Source Code Form to which the initial Contributor has attached
|
|
20
|
+
the notice in Exhibit A, the Executable Form of such Source Code
|
|
21
|
+
Form, and Modifications of such Source Code Form, in each case
|
|
22
|
+
including portions thereof.
|
|
23
|
+
|
|
24
|
+
1.5. "Incompatible With Secondary Licenses"
|
|
25
|
+
means
|
|
26
|
+
|
|
27
|
+
(a) that the initial Contributor has attached the notice described
|
|
28
|
+
in Exhibit B to the Covered Software; or
|
|
29
|
+
|
|
30
|
+
(b) that the Covered Software was made available under the terms of
|
|
31
|
+
version 1.1 or earlier of the License, but not also under the
|
|
32
|
+
terms of a Secondary License.
|
|
33
|
+
|
|
34
|
+
1.6. "Executable Form"
|
|
35
|
+
means any form of the work other than Source Code Form.
|
|
36
|
+
|
|
37
|
+
1.7. "Larger Work"
|
|
38
|
+
means a work that combines Covered Software with other material, in
|
|
39
|
+
a separate file or files, that is not Covered Software.
|
|
40
|
+
|
|
41
|
+
1.8. "License"
|
|
42
|
+
means this document.
|
|
43
|
+
|
|
44
|
+
1.9. "Licensable"
|
|
45
|
+
means having the right to grant, to the maximum extent possible,
|
|
46
|
+
whether at the time of the initial grant or subsequently, any and
|
|
47
|
+
all of the rights conveyed by this License.
|
|
48
|
+
|
|
49
|
+
1.10. "Modifications"
|
|
50
|
+
means any of the following:
|
|
51
|
+
|
|
52
|
+
(a) any file in Source Code Form that results from an addition to,
|
|
53
|
+
deletion from, or modification of the contents of Covered
|
|
54
|
+
Software; or
|
|
55
|
+
|
|
56
|
+
(b) any new file in Source Code Form that contains any Covered
|
|
57
|
+
Software.
|
|
58
|
+
|
|
59
|
+
1.11. "Patent Claims" of a Contributor
|
|
60
|
+
means any patent claim(s), including without limitation, method,
|
|
61
|
+
process, and apparatus claims, in any patent Licensable by such
|
|
62
|
+
Contributor that would be infringed, but for the grant of the
|
|
63
|
+
License, by the making, using, selling, offering for sale, having
|
|
64
|
+
made, import, or transfer of either its Contributions or its
|
|
65
|
+
Contributor Version.
|
|
66
|
+
|
|
67
|
+
1.12. "Secondary License"
|
|
68
|
+
means either the GNU General Public License, Version 2.0, the GNU
|
|
69
|
+
Lesser General Public License, Version 2.1, the GNU Affero General
|
|
70
|
+
Public License, Version 3.0, or any later versions of those
|
|
71
|
+
licenses.
|
|
72
|
+
|
|
73
|
+
1.13. "Source Code Form"
|
|
74
|
+
means the form of the work preferred for making modifications.
|
|
75
|
+
|
|
76
|
+
1.14. "You" (or "Your")
|
|
77
|
+
means an individual or a legal entity exercising rights under this
|
|
78
|
+
License. For legal entities, "You" includes any entity that
|
|
79
|
+
controls, is controlled by, or is under common control with You. For
|
|
80
|
+
purposes of this definition, "control" means (a) the power, direct
|
|
81
|
+
or indirect, to cause the direction or management of such entity,
|
|
82
|
+
whether by contract or otherwise, or (b) ownership of more than
|
|
83
|
+
fifty percent (50%) of the outstanding shares or beneficial
|
|
84
|
+
ownership of such entity.
|
|
85
|
+
|
|
86
|
+
2. License Grants and Conditions
|
|
87
|
+
--------------------------------
|
|
88
|
+
|
|
89
|
+
2.1. Grants
|
|
90
|
+
|
|
91
|
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
92
|
+
non-exclusive license:
|
|
93
|
+
|
|
94
|
+
(a) under intellectual property rights (other than patent or trademark)
|
|
95
|
+
Licensable by such Contributor to use, reproduce, make available,
|
|
96
|
+
modify, display, perform, distribute, and otherwise exploit its
|
|
97
|
+
Contributions, either on an unmodified basis, with Modifications, or
|
|
98
|
+
as part of a Larger Work; and
|
|
99
|
+
|
|
100
|
+
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
|
101
|
+
for sale, have made, import, and otherwise transfer either its
|
|
102
|
+
Contributions or its Contributor Version.
|
|
103
|
+
|
|
104
|
+
2.2. Effective Date
|
|
105
|
+
|
|
106
|
+
The licenses granted in Section 2.1 with respect to any Contribution
|
|
107
|
+
become effective for each Contribution on the date the Contributor first
|
|
108
|
+
distributes such Contribution.
|
|
109
|
+
|
|
110
|
+
2.3. Limitations on Grant Scope
|
|
111
|
+
|
|
112
|
+
The licenses granted in this Section 2 are the only rights granted under
|
|
113
|
+
this License. No additional rights or licenses will be implied from the
|
|
114
|
+
distribution or licensing of Covered Software under this License.
|
|
115
|
+
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
|
116
|
+
Contributor:
|
|
117
|
+
|
|
118
|
+
(a) for any code that a Contributor has removed from Covered Software;
|
|
119
|
+
or
|
|
120
|
+
|
|
121
|
+
(b) for infringements caused by: (i) Your and any other third party's
|
|
122
|
+
modifications of Covered Software, or (ii) the combination of its
|
|
123
|
+
Contributions with other software (except as part of its Contributor
|
|
124
|
+
Version); or
|
|
125
|
+
|
|
126
|
+
(c) under Patent Claims infringed by Covered Software in the absence of
|
|
127
|
+
its Contributions.
|
|
128
|
+
|
|
129
|
+
This License does not grant any rights in the trademarks, service marks,
|
|
130
|
+
or logos of any Contributor (except as may be necessary to comply with
|
|
131
|
+
the notice requirements in Section 3.4).
|
|
132
|
+
|
|
133
|
+
2.4. Subsequent Licenses
|
|
134
|
+
|
|
135
|
+
No Contributor makes additional grants as a result of Your choice to
|
|
136
|
+
distribute the Covered Software under a subsequent version of this
|
|
137
|
+
License (see Section 10.2) or under the terms of a Secondary License (if
|
|
138
|
+
permitted under the terms of Section 3.3).
|
|
139
|
+
|
|
140
|
+
2.5. Representation
|
|
141
|
+
|
|
142
|
+
Each Contributor represents that the Contributor believes its
|
|
143
|
+
Contributions are its original creation(s) or it has sufficient rights
|
|
144
|
+
to grant the rights to its Contributions conveyed by this License.
|
|
145
|
+
|
|
146
|
+
2.6. Fair Use
|
|
147
|
+
|
|
148
|
+
This License is not intended to limit any rights You have under
|
|
149
|
+
applicable copyright doctrines of fair use, fair dealing, or other
|
|
150
|
+
equivalents.
|
|
151
|
+
|
|
152
|
+
2.7. Conditions
|
|
153
|
+
|
|
154
|
+
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
|
155
|
+
in Section 2.1.
|
|
156
|
+
|
|
157
|
+
3. Responsibilities
|
|
158
|
+
-------------------
|
|
159
|
+
|
|
160
|
+
3.1. Distribution of Source Form
|
|
161
|
+
|
|
162
|
+
All distribution of Covered Software in Source Code Form, including any
|
|
163
|
+
Modifications that You create or to which You contribute, must be under
|
|
164
|
+
the terms of this License. You must inform recipients that the Source
|
|
165
|
+
Code Form of the Covered Software is governed by the terms of this
|
|
166
|
+
License, and how they can obtain a copy of this License. You may not
|
|
167
|
+
attempt to alter or restrict the recipients' rights in the Source Code
|
|
168
|
+
Form.
|
|
169
|
+
|
|
170
|
+
3.2. Distribution of Executable Form
|
|
171
|
+
|
|
172
|
+
If You distribute Covered Software in Executable Form then:
|
|
173
|
+
|
|
174
|
+
(a) such Covered Software must also be made available in Source Code
|
|
175
|
+
Form, as described in Section 3.1, and You must inform recipients of
|
|
176
|
+
the Executable Form how they can obtain a copy of such Source Code
|
|
177
|
+
Form by reasonable means in a timely manner, at a charge no more
|
|
178
|
+
than the cost of distribution to the recipient; and
|
|
179
|
+
|
|
180
|
+
(b) You may distribute such Executable Form under the terms of this
|
|
181
|
+
License, or sublicense it under different terms, provided that the
|
|
182
|
+
license for the Executable Form does not attempt to limit or alter
|
|
183
|
+
the recipients' rights in the Source Code Form under this License.
|
|
184
|
+
|
|
185
|
+
3.3. Distribution of a Larger Work
|
|
186
|
+
|
|
187
|
+
You may create and distribute a Larger Work under terms of Your choice,
|
|
188
|
+
provided that You also comply with the requirements of this License for
|
|
189
|
+
the Covered Software. If the Larger Work is a combination of Covered
|
|
190
|
+
Software with a work governed by one or more Secondary Licenses, and the
|
|
191
|
+
Covered Software is not Incompatible With Secondary Licenses, this
|
|
192
|
+
License permits You to additionally distribute such Covered Software
|
|
193
|
+
under the terms of such Secondary License(s), so that the recipient of
|
|
194
|
+
the Larger Work may, at their option, further distribute the Covered
|
|
195
|
+
Software under the terms of either this License or such Secondary
|
|
196
|
+
License(s).
|
|
197
|
+
|
|
198
|
+
3.4. Notices
|
|
199
|
+
|
|
200
|
+
You may not remove or alter the substance of any license notices
|
|
201
|
+
(including copyright notices, patent notices, disclaimers of warranty,
|
|
202
|
+
or limitations of liability) contained within the Source Code Form of
|
|
203
|
+
the Covered Software, except that You may alter any license notices to
|
|
204
|
+
the extent required to remedy known factual inaccuracies.
|
|
205
|
+
|
|
206
|
+
3.5. Application of Additional Terms
|
|
207
|
+
|
|
208
|
+
You may choose to offer, and to charge a fee for, warranty, support,
|
|
209
|
+
indemnity or liability obligations to one or more recipients of Covered
|
|
210
|
+
Software. However, You may do so only on Your own behalf, and not on
|
|
211
|
+
behalf of any Contributor. You must make it absolutely clear that any
|
|
212
|
+
such warranty, support, indemnity, or liability obligation is offered by
|
|
213
|
+
You alone, and You hereby agree to indemnify every Contributor for any
|
|
214
|
+
liability incurred by such Contributor as a result of warranty, support,
|
|
215
|
+
indemnity or liability terms You offer. You may include additional
|
|
216
|
+
disclaimers of warranty and limitations of liability specific to any
|
|
217
|
+
jurisdiction.
|
|
218
|
+
|
|
219
|
+
4. Inability to Comply Due to Statute or Regulation
|
|
220
|
+
---------------------------------------------------
|
|
221
|
+
|
|
222
|
+
If it is impossible for You to comply with any of the terms of this
|
|
223
|
+
License with respect to some or all of the Covered Software due to
|
|
224
|
+
statute, judicial order, or regulation then You must: (a) comply with
|
|
225
|
+
the terms of this License to the maximum extent possible; and (b)
|
|
226
|
+
describe the limitations and the code they affect. Such description must
|
|
227
|
+
be placed in a text file included with all distributions of the Covered
|
|
228
|
+
Software under this License. Except to the extent prohibited by statute
|
|
229
|
+
or regulation, such description must be sufficiently detailed for a
|
|
230
|
+
recipient of ordinary skill to be able to understand it.
|
|
231
|
+
|
|
232
|
+
5. Termination
|
|
233
|
+
--------------
|
|
234
|
+
|
|
235
|
+
5.1. The rights granted under this License will terminate automatically
|
|
236
|
+
if You fail to comply with any of its terms. However, if You become
|
|
237
|
+
compliant, then the rights granted under this License from a particular
|
|
238
|
+
Contributor are reinstated (a) provisionally, unless and until such
|
|
239
|
+
Contributor explicitly and finally terminates Your grants, and (b) on an
|
|
240
|
+
ongoing basis, if such Contributor fails to notify You of the
|
|
241
|
+
non-compliance by some reasonable means prior to 60 days after You have
|
|
242
|
+
come back into compliance. Moreover, Your grants from a particular
|
|
243
|
+
Contributor are reinstated on an ongoing basis if such Contributor
|
|
244
|
+
notifies You of the non-compliance by some reasonable means, this is the
|
|
245
|
+
first time You have received notice of non-compliance with this License
|
|
246
|
+
from such Contributor, and You become compliant prior to 30 days after
|
|
247
|
+
Your receipt of the notice.
|
|
248
|
+
|
|
249
|
+
5.2. If You initiate litigation against any entity by asserting a patent
|
|
250
|
+
infringement claim (excluding declaratory judgment actions,
|
|
251
|
+
counter-claims, and cross-claims) alleging that a Contributor Version
|
|
252
|
+
directly or indirectly infringes any patent, then the rights granted to
|
|
253
|
+
You by any and all Contributors for the Covered Software under Section
|
|
254
|
+
2.1 of this License shall terminate.
|
|
255
|
+
|
|
256
|
+
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
|
257
|
+
end user license agreements (excluding distributors and resellers) which
|
|
258
|
+
have been validly granted by You or Your distributors under this License
|
|
259
|
+
prior to termination shall survive termination.
|
|
260
|
+
|
|
261
|
+
************************************************************************
|
|
262
|
+
* *
|
|
263
|
+
* 6. Disclaimer of Warranty *
|
|
264
|
+
* ------------------------- *
|
|
265
|
+
* *
|
|
266
|
+
* Covered Software is provided under this License on an "as is" *
|
|
267
|
+
* basis, without warranty of any kind, either expressed, implied, or *
|
|
268
|
+
* statutory, including, without limitation, warranties that the *
|
|
269
|
+
* Covered Software is free of defects, merchantable, fit for a *
|
|
270
|
+
* particular purpose or non-infringing. The entire risk as to the *
|
|
271
|
+
* quality and performance of the Covered Software is with You. *
|
|
272
|
+
* Should any Covered Software prove defective in any respect, You *
|
|
273
|
+
* (not any Contributor) assume the cost of any necessary servicing, *
|
|
274
|
+
* repair, or correction. This disclaimer of warranty constitutes an *
|
|
275
|
+
* essential part of this License. No use of any Covered Software is *
|
|
276
|
+
* authorized under this License except under this disclaimer. *
|
|
277
|
+
* *
|
|
278
|
+
************************************************************************
|
|
279
|
+
|
|
280
|
+
************************************************************************
|
|
281
|
+
* *
|
|
282
|
+
* 7. Limitation of Liability *
|
|
283
|
+
* -------------------------- *
|
|
284
|
+
* *
|
|
285
|
+
* Under no circumstances and under no legal theory, whether tort *
|
|
286
|
+
* (including negligence), contract, or otherwise, shall any *
|
|
287
|
+
* Contributor, or anyone who distributes Covered Software as *
|
|
288
|
+
* permitted above, be liable to You for any direct, indirect, *
|
|
289
|
+
* special, incidental, or consequential damages of any character *
|
|
290
|
+
* including, without limitation, damages for lost profits, loss of *
|
|
291
|
+
* goodwill, work stoppage, computer failure or malfunction, or any *
|
|
292
|
+
* and all other commercial damages or losses, even if such party *
|
|
293
|
+
* shall have been informed of the possibility of such damages. This *
|
|
294
|
+
* limitation of liability shall not apply to liability for death or *
|
|
295
|
+
* personal injury resulting from such party's negligence to the *
|
|
296
|
+
* extent applicable law prohibits such limitation. Some *
|
|
297
|
+
* jurisdictions do not allow the exclusion or limitation of *
|
|
298
|
+
* incidental or consequential damages, so this exclusion and *
|
|
299
|
+
* limitation may not apply to You. *
|
|
300
|
+
* *
|
|
301
|
+
************************************************************************
|
|
302
|
+
|
|
303
|
+
8. Litigation
|
|
304
|
+
-------------
|
|
305
|
+
|
|
306
|
+
Any litigation relating to this License may be brought only in the
|
|
307
|
+
courts of a jurisdiction where the defendant maintains its principal
|
|
308
|
+
place of business and such litigation shall be governed by laws of that
|
|
309
|
+
jurisdiction, without reference to its conflict-of-law provisions.
|
|
310
|
+
Nothing in this Section shall prevent a party's ability to bring
|
|
311
|
+
cross-claims or counter-claims.
|
|
312
|
+
|
|
313
|
+
9. Miscellaneous
|
|
314
|
+
----------------
|
|
315
|
+
|
|
316
|
+
This License represents the complete agreement concerning the subject
|
|
317
|
+
matter hereof. If any provision of this License is held to be
|
|
318
|
+
unenforceable, such provision shall be reformed only to the extent
|
|
319
|
+
necessary to make it enforceable. Any law or regulation which provides
|
|
320
|
+
that the language of a contract shall be construed against the drafter
|
|
321
|
+
shall not be used to construe this License against a Contributor.
|
|
322
|
+
|
|
323
|
+
10. Versions of the License
|
|
324
|
+
---------------------------
|
|
325
|
+
|
|
326
|
+
10.1. New Versions
|
|
327
|
+
|
|
328
|
+
Mozilla Foundation is the license steward. Except as provided in Section
|
|
329
|
+
10.3, no one other than the license steward has the right to modify or
|
|
330
|
+
publish new versions of this License. Each version will be given a
|
|
331
|
+
distinguishing version number.
|
|
332
|
+
|
|
333
|
+
10.2. Effect of New Versions
|
|
334
|
+
|
|
335
|
+
You may distribute the Covered Software under the terms of the version
|
|
336
|
+
of the License under which You originally received the Covered Software,
|
|
337
|
+
or under the terms of any subsequent version published by the license
|
|
338
|
+
steward.
|
|
339
|
+
|
|
340
|
+
10.3. Modified Versions
|
|
341
|
+
|
|
342
|
+
If you create software not governed by this License, and you want to
|
|
343
|
+
create a new license for such software, you may create and use a
|
|
344
|
+
modified version of this License if you rename the license and remove
|
|
345
|
+
any references to the name of the license steward (except to note that
|
|
346
|
+
such modified license differs from this License).
|
|
347
|
+
|
|
348
|
+
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
|
349
|
+
Licenses
|
|
350
|
+
|
|
351
|
+
If You choose to distribute Source Code Form that is Incompatible With
|
|
352
|
+
Secondary Licenses under the terms of this version of the License, the
|
|
353
|
+
notice described in Exhibit B of this License must be attached.
|
|
354
|
+
|
|
355
|
+
Exhibit A - Source Code Form License Notice
|
|
356
|
+
-------------------------------------------
|
|
357
|
+
|
|
358
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
|
359
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
360
|
+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
361
|
+
|
|
362
|
+
If it is not possible or desirable to put the notice in a particular
|
|
363
|
+
file, then You may include the notice in a location (such as a LICENSE
|
|
364
|
+
file in a relevant directory) where a recipient would be likely to look
|
|
365
|
+
for such a notice.
|
|
366
|
+
|
|
367
|
+
You may add additional accurate notices of copyright ownership.
|
|
368
|
+
|
|
369
|
+
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
|
370
|
+
---------------------------------------------------------
|
|
371
|
+
|
|
372
|
+
This Source Code Form is "Incompatible With Secondary Licenses", as
|
|
373
|
+
defined by the Mozilla Public License, v. 2.0.
|
package/README.md
CHANGED
|
@@ -1,3 +1,236 @@
|
|
|
1
|
-
#
|
|
1
|
+
# deltabox toolchain
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
All-in-one, config-driven dev toolchain: scaffold projects, generate and manage configs, tsconfigs, changelogs and CI, run Vite+, and migrate other tools onto Ox.
|
|
4
|
+
|
|
5
|
+
[](./package.json)
|
|
6
|
+
[](https://github.com/deltabox-studio/toolchain/actions/workflows/ci.yml)
|
|
7
|
+
[](https://www.npmjs.com/package/@deltabox/toolchain)
|
|
8
|
+
|
|
9
|
+
`@deltabox/toolchain` is driven by a single `dbx.config.ts` at a repo
|
|
10
|
+
root. Define the sections you want and the toolchain generates and keeps the
|
|
11
|
+
matching files in sync — from a CLI, a programmatic API, and a VS Code extension.
|
|
12
|
+
|
|
13
|
+
See [CHANGELOG.md](/CHANGELOG.md) for latest updates.
|
|
14
|
+
|
|
15
|
+
**Documentation, guides and examples:** [toolchain.deltabox.studio](https://toolchain.deltabox.studio).
|
|
16
|
+
|
|
17
|
+
## Table of contents
|
|
18
|
+
|
|
19
|
+
- [deltabox toolchain](#deltabox-toolchain)
|
|
20
|
+
- [Table of contents](#table-of-contents)
|
|
21
|
+
- [Features](#features)
|
|
22
|
+
- [Install](#install)
|
|
23
|
+
- [Quickstart](#quickstart)
|
|
24
|
+
- [Config generator](#config-generator)
|
|
25
|
+
- [Vite / Vite+ plugin](#vite--vite-plugin)
|
|
26
|
+
- [CLI](#cli)
|
|
27
|
+
- [Programmatic API](#programmatic-api)
|
|
28
|
+
- [VS Code extension](#vs-code-extension)
|
|
29
|
+
- [Development](#development)
|
|
30
|
+
- [Docs](#docs)
|
|
31
|
+
- [License](#license)
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
- **Config-driven.** Every area is an opt-in section in `dbx.config.ts`
|
|
36
|
+
(`project`, `changelog`, `biome`, `tsconfig`, `templates`, `vite`, `watch`,
|
|
37
|
+
`hooks`). Define a section to enable it; omit it and nothing is touched.
|
|
38
|
+
- **Config generator.** A generic Zod/env engine (`createConfigEngine`) turns
|
|
39
|
+
your schemas into a `.env.example`, a JSON Schema, a markdown reference, TS
|
|
40
|
+
types and CLI flags, and wires `config:*` commands into your own CLI. See the
|
|
41
|
+
[config generator guide](https://toolchain.deltabox.studio/guide/config-generator).
|
|
42
|
+
- **Vite / Vite+ plugin.** Drive dbx from `vite.config.ts`: the `dbx()` plugin
|
|
43
|
+
runs `dbx sync` before dev/build (or `dbx sync --check` in CI). Works with both
|
|
44
|
+
Vite and Vite+.
|
|
45
|
+
- **Changelogs & releases.** Conventional-Commits commitlint, a changelog
|
|
46
|
+
pipeline that bumps versions and writes `CHANGELOG.md`, plus GitHub workflows
|
|
47
|
+
for CI, changelog, release and issues.
|
|
48
|
+
- **tsconfig generation.** Workspace `tsconfig.json` files with path aliases and
|
|
49
|
+
project references, driven from one config.
|
|
50
|
+
- **Providers.** Wire external toolchains behind one CLI. Vite+ ships as a
|
|
51
|
+
provider, so every `vp` command is reachable as `dbx vite:*`.
|
|
52
|
+
- **Templates.** Offline (builtin + local `template.json` dirs) and online
|
|
53
|
+
(npm/git/Vite+) templates, creatable from the CLI or the extension.
|
|
54
|
+
- **Migrations.** Move Biome, Prettier, ESLint or Dprint onto Ox
|
|
55
|
+
(Oxfmt/Oxlint) with a pluggable migration engine (`--target files` or `vite`).
|
|
56
|
+
- **Editor first.** A VS Code extension to sync, scaffold, run workflows, run
|
|
57
|
+
Vite+ commands and pick templates.
|
|
58
|
+
- **Monorepo aware.** Project graph, workspace tsconfigs, dependency-ordered
|
|
59
|
+
tasks via `vp run`, and per-workspace files.
|
|
60
|
+
|
|
61
|
+
## Install
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# as a dev dependency in the project you want to manage
|
|
65
|
+
yarn add -D @deltabox/toolchain
|
|
66
|
+
|
|
67
|
+
# or for global usage
|
|
68
|
+
npm install -g @deltabox/toolchain
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The package exposes one binary, `dbx`:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
yarn dbx --help
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Quickstart
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# 1. Write a dbx.config.ts for the current project
|
|
81
|
+
dbx project:config
|
|
82
|
+
|
|
83
|
+
# 2. Generate / refresh every managed file (adds .dbx/toolchain/manifest.json)
|
|
84
|
+
dbx sync
|
|
85
|
+
|
|
86
|
+
# 3. Verify in CI — fails when files are out of date
|
|
87
|
+
dbx sync --check
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
A minimal config:
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
import { defineConfig } from '@deltabox/toolchain';
|
|
94
|
+
|
|
95
|
+
export default defineConfig({
|
|
96
|
+
toolchain: {
|
|
97
|
+
project: { type: 'monorepo-root', name: 'acme', scope: '@acme' },
|
|
98
|
+
changelog: { workflows: { ci: true, release: true } },
|
|
99
|
+
tsconfig: { refs: true },
|
|
100
|
+
biome: true,
|
|
101
|
+
vite: { defaultTemplate: '@acme' },
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
The `@deltabox/toolchain` settings live under the `toolchain` key. Every section
|
|
107
|
+
there is **opt-in by presence**: `section: true` enables it with defaults,
|
|
108
|
+
`section: false` disables it, and `section: { ... }` configures it.
|
|
109
|
+
See the [configuration reference](https://toolchain.deltabox.studio/config/reference).
|
|
110
|
+
|
|
111
|
+
## Config generator
|
|
112
|
+
|
|
113
|
+
The same Zod-first approach powers a standalone config engine. Describe your
|
|
114
|
+
config once and generate `.env.example`, a JSON Schema, a markdown reference, TS
|
|
115
|
+
types and CLI flags from it — no hand-maintained docs to drift:
|
|
116
|
+
|
|
117
|
+
```ts
|
|
118
|
+
import { z } from 'zod';
|
|
119
|
+
|
|
120
|
+
import { createConfigEngine } from '@deltabox/toolchain/config';
|
|
121
|
+
|
|
122
|
+
export const engine = createConfigEngine({
|
|
123
|
+
scopes: {
|
|
124
|
+
server: {
|
|
125
|
+
zodSchema: z.object({
|
|
126
|
+
port: z.number().default(3000).meta({ env: 'MYAPP_PORT' }),
|
|
127
|
+
}),
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
envPrefix: 'MYAPP_',
|
|
131
|
+
baseGroup: 'base',
|
|
132
|
+
root: process.cwd(),
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
await engine.writeJsonSchema({ output: 'config.schema.json' });
|
|
136
|
+
engine.writeEnvFile({ output: '.env.example' });
|
|
137
|
+
engine.writeMarkdown({ outDir: 'docs/reference/configuration' });
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`configCommands({ engine })` also exposes the same generators as `config:*`
|
|
141
|
+
commands on your own CLI. See the [config generator
|
|
142
|
+
guide](https://toolchain.deltabox.studio/guide/config-generator).
|
|
143
|
+
|
|
144
|
+
## Vite / Vite+ plugin
|
|
145
|
+
|
|
146
|
+
`@deltabox/toolchain` ships a Vite plugin, so a Vite (or Vite+) project can run
|
|
147
|
+
dbx as part of its own pipeline — no separate `dbx sync` step:
|
|
148
|
+
|
|
149
|
+
```ts
|
|
150
|
+
// vite.config.ts
|
|
151
|
+
import { defineConfig } from 'vite'; // or 'vite-plus'
|
|
152
|
+
|
|
153
|
+
import { defineDbxConfig } from '@deltabox/toolchain/vite';
|
|
154
|
+
|
|
155
|
+
export default defineConfig(
|
|
156
|
+
defineDbxConfig({
|
|
157
|
+
// your usual Vite / Vite+ config
|
|
158
|
+
})
|
|
159
|
+
);
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
- The `dbx()` plugin runs `dbx sync` before the dev server / build, or
|
|
163
|
+
`dbx sync --check` in CI (which fails the build when generated files are out of
|
|
164
|
+
date), and re-syncs when a `dbx.config.*` / `tsconfig.*.json` input changes.
|
|
165
|
+
- `defineDbxConfig` also registers `vp run dbx:sync` / `vp run dbx:check`. Prefer
|
|
166
|
+
the bare plugin when you don't want the tasks:
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
import { dbx } from '@deltabox/toolchain/vite';
|
|
170
|
+
|
|
171
|
+
export default defineConfig({ plugins: [dbx({ check: true })] });
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
See the [providers guide](https://toolchain.deltabox.studio/guide/providers).
|
|
175
|
+
|
|
176
|
+
## CLI
|
|
177
|
+
|
|
178
|
+
Visit the [CLI docs](https://toolchain.deltabox.studio/guide/cli) to learn more.
|
|
179
|
+
|
|
180
|
+
Note: Commands that run against a project load its `dbx.config.ts` first, so
|
|
181
|
+
config-derived defaults apply unless overridden on the command line.
|
|
182
|
+
|
|
183
|
+
## Programmatic API
|
|
184
|
+
|
|
185
|
+
```ts
|
|
186
|
+
import { defineConfig, loadToolingConfig, runSync, defaultSyncTasks } from '@deltabox/toolchain';
|
|
187
|
+
|
|
188
|
+
const { config, tokens, projectType } = await loadToolingConfig(process.cwd());
|
|
189
|
+
await runSync({ tasks: defaultSyncTasks(), cwd: process.cwd(), config, tokens, projectType });
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## VS Code extension
|
|
193
|
+
|
|
194
|
+
A VS Code extension is available for `deltabox toolchain`.
|
|
195
|
+
|
|
196
|
+
Follow the steps below to use it. Will be published to the marketplace in the future.
|
|
197
|
+
|
|
198
|
+
1. Download `deltabox-toolchain.vsix` from [releases](https://github.com/deltabox-studio/toolchain/releases).
|
|
199
|
+
2. In VS Code install the `deltabox-toolchain.vsix` by going to the Extensions sidebar panel, click the three dotted menu on the panel header and select `Install from VSIX...` from the context menu.
|
|
200
|
+
3. Now a screwdriver icon should pop up on the VS Code sidemenu, and you can use the command palette (Ctrl + P) as well:
|
|
201
|
+
1. Sync / Check sync / Scaffold project, From template…
|
|
202
|
+
2. Run Vite+ command...
|
|
203
|
+
3. Create Vite+ project...
|
|
204
|
+
|
|
205
|
+
See [packages/vscode/README.md](./packages/vscode/README.md) to learn more about how it works.
|
|
206
|
+
|
|
207
|
+
## Development
|
|
208
|
+
|
|
209
|
+
This repo is a Yarn 4 workspace; Vite+ (`vp`) drives format, lint, test and the
|
|
210
|
+
task runner from the root `vite.config.ts`.
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
yarn install # fresh checkout
|
|
214
|
+
yarn build # packages via `vp run` + root tsdown
|
|
215
|
+
yarn test # package + root tests
|
|
216
|
+
yarn typecheck # packages + root
|
|
217
|
+
yarn check # Oxfmt + Oxlint (format + lint)
|
|
218
|
+
yarn format # `vp fmt`
|
|
219
|
+
yarn lint # `vp lint --fix`
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
> `vp` resolves only at the repo root, so run these from the root. Package
|
|
223
|
+
> typechecks/tests resolve workspace deps from their built `dist`, so run a full
|
|
224
|
+
> `yarn build` after changing a package's public exports.
|
|
225
|
+
|
|
226
|
+
Docs live in `apps/docs` (VitePress): `yarn workspace @deltabox/toolchain-docs build`.
|
|
227
|
+
|
|
228
|
+
## Docs
|
|
229
|
+
|
|
230
|
+
Full documentation, guides and examples live at [toolchain.deltabox.studio](https://toolchain.deltabox.studio).
|
|
231
|
+
|
|
232
|
+
The source pages live in `apps/docs`.
|
|
233
|
+
|
|
234
|
+
## License
|
|
235
|
+
|
|
236
|
+
[MPL-2.0](./LICENSE) © deltabox
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{t as __exportAll};
|
package/dist/biome.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { biomeConfig, biomeSyncTask, biomeVscodeSettings, mergeBiomeConfig, renderBiomeConfig, renderBiomeJson, renderVscodeSettings } from "./packages/biome/src/index.js";
|
|
4
|
+
export { biomeConfig, biomeSyncTask, biomeVscodeSettings, mergeBiomeConfig, renderBiomeConfig, renderBiomeJson, renderVscodeSettings };
|
package/dist/biome.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;export{biomeConfig,biomeSyncTask,biomeVscodeSettings,mergeBiomeConfig,renderBiomeConfig,renderBiomeJson,renderVscodeSettings}from"./packages/biome/src/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import __tsdown_shims_path from 'node:path';
|
|
2
|
+
import __tsdown_shims_url from 'node:url';
|
|
3
|
+
import { AuthorInfo, BumpType, CliOptions, CommitRecord, ExistingEntry, GroupedItem, GroupedRule, IssueInfo, ParsedCommit, ProcessingMethod } from "./packages/changelog/src/utils/types.js";
|
|
4
|
+
import { parseArgsCli } from "./packages/changelog/src/utils/args.js";
|
|
5
|
+
import { formatBody, groupItems, parseCcSubject, renderGroups, ruleTitle, splitInlineDescription } from "./packages/changelog/src/utils/format.js";
|
|
6
|
+
import { deriveBump, readCommits } from "./packages/changelog/src/utils/git.js";
|
|
7
|
+
import { parseExistingChangelog, reformatChangelogContent } from "./packages/changelog/src/utils/reformat.js";
|
|
8
|
+
import { buildSummary } from "./packages/changelog/src/utils/summary.js";
|
|
9
|
+
import { renderChangelogEntry } from "./packages/changelog/src/utils/version.js";
|
|
10
|
+
import { main, runChangelog } from "./packages/changelog/src/run.js";
|
|
11
|
+
import { DEFAULT_WORKFLOW_TOKENS, RenderWorkflowOptions, WORKFLOW_FILENAMES, Workflow, WorkflowId, WorkflowJob, applyWorkflowConfig, defaultWorkflows, isEnabled, renderWorkflow, renderWorkflows } from "./packages/changelog/src/workflows.js";
|
|
12
|
+
import { RanWorkflow, RunWorkflowsOptions, RunWorkflowsResult, resolveWorkflowId, runWorkflows } from "./packages/changelog/src/run-workflows.js";
|
|
13
|
+
import { COMMITLINT_HEADER, WORKFLOW_HEADER, changelogSyncTask, workflowFilenames } from "./packages/changelog/src/sync.js";
|
|
14
|
+
import { CommitlintOptions, conventionalCommitsVscodeExtensions, conventionalCommitsVscodeSettings, renderCommitlintConfig } from "./packages/changelog/src/templates.js";
|
|
15
|
+
import "./packages/changelog/src/index.js";
|
|
16
|
+
import { changelogCommands } from "./packages/changelog/src/cli/index.js";
|
|
17
|
+
export { AuthorInfo, BumpType, COMMITLINT_HEADER, CliOptions, CommitRecord, CommitlintOptions, DEFAULT_WORKFLOW_TOKENS, ExistingEntry, GroupedItem, GroupedRule, IssueInfo, ParsedCommit, ProcessingMethod, RanWorkflow, RenderWorkflowOptions, RunWorkflowsOptions, RunWorkflowsResult, WORKFLOW_FILENAMES, WORKFLOW_HEADER, Workflow, WorkflowId, WorkflowJob, applyWorkflowConfig, buildSummary, changelogCommands, changelogSyncTask, conventionalCommitsVscodeExtensions, conventionalCommitsVscodeSettings, defaultWorkflows, deriveBump, formatBody, groupItems, isEnabled, main, parseArgsCli, parseCcSubject, parseExistingChangelog, readCommits, reformatChangelogContent, renderChangelogEntry, renderCommitlintConfig, renderGroups, renderWorkflow, renderWorkflows, resolveWorkflowId, ruleTitle, runChangelog, runWorkflows, splitInlineDescription, workflowFilenames };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{parseArgsCli as e}from"./packages/changelog/src/utils/args.js";import{deriveBump as t,readCommits as n}from"./packages/changelog/src/utils/git.js";import{formatBody as r,groupItems as i,parseCcSubject as a,renderGroups as o,ruleTitle as s,splitInlineDescription as c}from"./packages/changelog/src/utils/format.js";import{renderChangelogEntry as l}from"./packages/changelog/src/utils/version.js";import{parseExistingChangelog as u,reformatChangelogContent as d}from"./packages/changelog/src/utils/reformat.js";import{buildSummary as f}from"./packages/changelog/src/utils/summary.js";import{main as p,runChangelog as m}from"./packages/changelog/src/run.js";import{DEFAULT_WORKFLOW_TOKENS as h,WORKFLOW_FILENAMES as g,applyWorkflowConfig as _,defaultWorkflows as v,isEnabled as y,renderWorkflow as b,renderWorkflows as x}from"./packages/changelog/src/workflows.js";import{resolveWorkflowId as S,runWorkflows as C}from"./packages/changelog/src/run-workflows.js";import{conventionalCommitsVscodeExtensions as w,conventionalCommitsVscodeSettings as T,renderCommitlintConfig as E}from"./packages/changelog/src/templates.js";import{COMMITLINT_HEADER as D,WORKFLOW_HEADER as O,changelogSyncTask as k,workflowFilenames as A}from"./packages/changelog/src/sync.js";import"./packages/changelog/src/index.js";import{changelogCommands as j}from"./packages/changelog/src/cli/index.js";export{D as COMMITLINT_HEADER,h as DEFAULT_WORKFLOW_TOKENS,g as WORKFLOW_FILENAMES,O as WORKFLOW_HEADER,_ as applyWorkflowConfig,f as buildSummary,j as changelogCommands,k as changelogSyncTask,w as conventionalCommitsVscodeExtensions,T as conventionalCommitsVscodeSettings,v as defaultWorkflows,t as deriveBump,r as formatBody,i as groupItems,y as isEnabled,p as main,e as parseArgsCli,a as parseCcSubject,u as parseExistingChangelog,n as readCommits,d as reformatChangelogContent,l as renderChangelogEntry,E as renderCommitlintConfig,o as renderGroups,b as renderWorkflow,x as renderWorkflows,S as resolveWorkflowId,s as ruleTitle,m as runChangelog,C as runWorkflows,c as splitInlineDescription,A as workflowFilenames};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{projectsCommand as e}from"./projects.js";import{providerCommands as t}from"./providers.js";import{resetCommand as n}from"./reset.js";import{baseOptions as r,watchOptions as i}from"./shared.js";import{syncCommand as a}from"./sync.js";import{watchCommand as o}from"./watch.js";function s(){return[e(),a(),o(),n(),...t()]}export{r as baseOptions,s as syncCommands,i as watchOptions};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{buildProjectGraph as e,writeProjectGraph as t}from"../../packages/core/src/graph.js";import"../../packages/core/src/index.js";function n(){return{name:`projects`,description:`Discover projects and write .dbx/toolchain/projects.json.`,options:[{flags:`--cwd <dir>`,description:`Root to scan (default: cwd).`},{flags:`--max-depth <n>`,description:`Max directory depth.`,default:`5`},{flags:`--no-write`,description:`Do not write the graph file.`},{flags:`--json`,description:`Print the graph as JSON.`}],run:(n,r)=>{let i=e(r.cwd,{maxDepth:Number.parseInt(String(n.maxDepth??`5`),10)});if(n.write!==!1&&t(r.cwd,i),n.json)console.log(JSON.stringify(i,null,4));else{console.log(`dbx: ${i.dbxProjects.length} dbx project(s), ${i.projects.length} package(s), package manager: ${i.packageManager??`unknown`}`);for(let e of i.order){let t=i.dbxProjects.find(t=>t.dir===e),n=t?.dependencies.length?` (deps: ${t.dependencies.join(`, `)})`:``;console.log(` - ${t?.name??e} [${e}]${n}`)}}}}}export{n as projectsCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{toolingProviders as e}from"../../providers.js";function t(){return[{name:`providers`,description:`List the tooling providers (Vite+, ...) and their commands.`,options:[{flags:`--json`,description:`Print the providers (with actions) as JSON.`}],run:t=>{let n=e();if(t.json)console.log(JSON.stringify(n,null,4));else for(let e of n){let t=e.binary?` (${e.binary})`:``;console.log(`${e.name}${t} [${e.id}]`),e.description&&console.log(` ${e.description}`);for(let t of e.commands)console.log(` ${t.name.padEnd(20)} ${t.description}`)}}}]}export{t as providerCommands};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"node:path";import"node:url";import.meta.url;import{resetProjects as e}from"../../packages/core/src/reset.js";import"../../packages/core/src/index.js";function t(){return{name:`reset`,description:`Remove generated files, the .dbx/toolchain manifest and/or the dbx config from a project.`,options:[{flags:`--cwd <dir>`,description:`Project root (default: cwd).`},{flags:`--recursive`,description:`Reset every discovered project under the root.`},{flags:`--include <pattern...>`,description:`Only projects matching these patterns (glob or substring).`},{flags:`--exclude <pattern...>`,description:`Skip projects matching these patterns (glob or substring).`},{flags:`--generated`,description:`Remove only the generated/managed files.`},{flags:`--manifest`,description:`Remove only the .dbx/toolchain directory.`},{flags:`--config`,description:`Also remove dbx.config.*.`},{flags:`--all`,description:`Remove generated files, the manifest and the config.`},{flags:`--dry-run`,description:`Report what would be removed without deleting.`},{flags:`--json`,description:`Print the result as JSON.`}],run:(t,n)=>{let r=t.cwd??n.cwd,i=t.all?{generated:!0,manifest:!0,config:!0}:{...t.generated?{generated:!0}:{},...t.manifest?{manifest:!0}:{},...t.config?{config:!0}:{}},a=e({root:r,recursive:!!t.recursive,dryRun:!!t.dryRun,...i,...t.include?{include:t.include}:{},...t.exclude?{exclude:t.exclude}:{}});if(t.json){console.log(JSON.stringify(a,null,4));return}let o=a.dryRun?`would remove`:`removed`,s=0;for(let e of a.results)if(e.removed.length!==0){s+=e.removed.length,console.log(`dbx: ${e.rel===`.`?r:e.rel}`);for(let t of e.removed)console.log(` - ${t}`)}console.log(`dbx: ${o} ${s} item(s) across ${a.results.length} project(s).`)}}}export{t as resetCommand};
|