outfitter 0.2.7 → 0.3.2
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/README.md +1 -2
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +5 -6
- package/dist/index.js +8 -7
- package/dist/shared/{chunk-x6644tk8.js → chunk-3pwh8ys4.js} +124 -154
- package/package.json +15 -11
- package/dist/actions.d.ts +0 -2
- package/dist/actions.js +0 -35
- package/dist/commands/add.d.ts +0 -54
- package/dist/commands/add.js +0 -16
- package/dist/commands/check-tsdoc.d.ts +0 -22
- package/dist/commands/check-tsdoc.js +0 -8
- package/dist/commands/check.d.ts +0 -91
- package/dist/commands/check.js +0 -14
- package/dist/commands/demo.d.ts +0 -21
- package/dist/commands/demo.js +0 -8
- package/dist/commands/docs-module-loader.d.ts +0 -2
- package/dist/commands/docs-module-loader.js +0 -8
- package/dist/commands/doctor.d.ts +0 -2
- package/dist/commands/doctor.js +0 -25
- package/dist/commands/init.d.ts +0 -7
- package/dist/commands/init.js +0 -32
- package/dist/commands/repo.d.ts +0 -3
- package/dist/commands/repo.js +0 -9
- package/dist/commands/scaffold.d.ts +0 -4
- package/dist/commands/scaffold.js +0 -32
- package/dist/commands/shared-deps.d.ts +0 -21
- package/dist/commands/shared-deps.js +0 -11
- package/dist/commands/upgrade-codemods.d.ts +0 -42
- package/dist/commands/upgrade-codemods.js +0 -15
- package/dist/commands/upgrade-planner.d.ts +0 -58
- package/dist/commands/upgrade-planner.js +0 -8
- package/dist/commands/upgrade-workspace.d.ts +0 -2
- package/dist/commands/upgrade-workspace.js +0 -16
- package/dist/commands/upgrade.d.ts +0 -221
- package/dist/commands/upgrade.js +0 -25
- package/dist/create/index.d.ts +0 -5
- package/dist/create/index.js +0 -30
- package/dist/create/planner.d.ts +0 -3
- package/dist/create/planner.js +0 -22
- package/dist/create/presets.d.ts +0 -3
- package/dist/create/presets.js +0 -12
- package/dist/create/types.d.ts +0 -2
- package/dist/create/types.js +0 -1
- package/dist/engine/blocks.d.ts +0 -3
- package/dist/engine/blocks.js +0 -12
- package/dist/engine/collector.d.ts +0 -2
- package/dist/engine/collector.js +0 -8
- package/dist/engine/config.d.ts +0 -3
- package/dist/engine/config.js +0 -15
- package/dist/engine/dependency-versions.d.ts +0 -12
- package/dist/engine/dependency-versions.js +0 -12
- package/dist/engine/executor.d.ts +0 -3
- package/dist/engine/executor.js +0 -19
- package/dist/engine/index.d.ts +0 -8
- package/dist/engine/index.js +0 -68
- package/dist/engine/names.d.ts +0 -2
- package/dist/engine/names.js +0 -24
- package/dist/engine/post-scaffold.d.ts +0 -3
- package/dist/engine/post-scaffold.js +0 -8
- package/dist/engine/render-plan.d.ts +0 -7
- package/dist/engine/render-plan.js +0 -9
- package/dist/engine/template.d.ts +0 -3
- package/dist/engine/template.js +0 -17
- package/dist/engine/types.d.ts +0 -2
- package/dist/engine/types.js +0 -8
- package/dist/engine/workspace.d.ts +0 -3
- package/dist/engine/workspace.js +0 -20
- package/dist/manifest.d.ts +0 -71
- package/dist/manifest.js +0 -16
- package/dist/output-mode.d.ts +0 -2
- package/dist/output-mode.js +0 -10
- package/dist/shared/outfitter-109s75x0.d.ts +0 -76
- package/dist/shared/outfitter-1fy7byz5.js +0 -170
- package/dist/shared/outfitter-1h7k8xxt.js +0 -29
- package/dist/shared/outfitter-20f6a2n4.js +0 -35
- package/dist/shared/outfitter-344t1r38.js +0 -1
- package/dist/shared/outfitter-4q1zfmvc.js +0 -154
- package/dist/shared/outfitter-4s9meh3j.js +0 -221
- package/dist/shared/outfitter-5akzvppx.js +0 -125
- package/dist/shared/outfitter-5y646xzk.js +0 -301
- package/dist/shared/outfitter-5yjr404v.d.ts +0 -22
- package/dist/shared/outfitter-63gse8fv.js +0 -316
- package/dist/shared/outfitter-6bkqjk86.d.ts +0 -3
- package/dist/shared/outfitter-6fgk6adm.d.ts +0 -40
- package/dist/shared/outfitter-79vfxt6y.js +0 -269
- package/dist/shared/outfitter-7ch26yq8.js +0 -885
- package/dist/shared/outfitter-7r12fj7f.js +0 -30
- package/dist/shared/outfitter-8y2dfx6n.js +0 -11
- package/dist/shared/outfitter-9x1brcmq.js +0 -184
- package/dist/shared/outfitter-a79xrm12.d.ts +0 -17
- package/dist/shared/outfitter-amc4jbs1.d.ts +0 -50
- package/dist/shared/outfitter-bn9c8p2e.js +0 -204
- package/dist/shared/outfitter-bpr28y54.js +0 -70
- package/dist/shared/outfitter-dpj9erew.d.ts +0 -4
- package/dist/shared/outfitter-e9rrfekb.d.ts +0 -51
- package/dist/shared/outfitter-ehp18x1n.js +0 -1
- package/dist/shared/outfitter-f9znfhkn.d.ts +0 -5
- package/dist/shared/outfitter-fhnjpjwc.d.ts +0 -18
- package/dist/shared/outfitter-fn20r49x.d.ts +0 -5
- package/dist/shared/outfitter-h3q6ae6d.d.ts +0 -48
- package/dist/shared/outfitter-ha89qf8q.js +0 -132
- package/dist/shared/outfitter-hsp8vy5m.d.ts +0 -146
- package/dist/shared/outfitter-hvsaxgcp.js +0 -1
- package/dist/shared/outfitter-j833sxws.js +0 -61
- package/dist/shared/outfitter-ksyvwmb5.js +0 -191
- package/dist/shared/outfitter-m3ehh37q.d.ts +0 -22
- package/dist/shared/outfitter-m44n0qzw.js +0 -161
- package/dist/shared/outfitter-mdt37hqm.js +0 -4
- package/dist/shared/outfitter-mt7d1ek2.js +0 -698
- package/dist/shared/outfitter-mtbpabf3.js +0 -91
- package/dist/shared/outfitter-n9g1zk4x.d.ts +0 -66
- package/dist/shared/outfitter-p71qb0f0.js +0 -82
- package/dist/shared/outfitter-pcj9gg2g.js +0 -909
- package/dist/shared/outfitter-pj9vp00r.js +0 -601
- package/dist/shared/outfitter-qakwgrrh.d.ts +0 -4
- package/dist/shared/outfitter-r419zfgs.d.ts +0 -30
- package/dist/shared/outfitter-s7jetkge.d.ts +0 -18
- package/dist/shared/outfitter-ttjr95y9.js +0 -98
- package/dist/shared/outfitter-vh4xgb93.js +0 -35
- package/dist/shared/outfitter-w1j80j1r.js +0 -326
- package/dist/shared/outfitter-xe5mzgdc.js +0 -208
- package/dist/shared/outfitter-ybbazsxq.d.ts +0 -14
- package/dist/shared/outfitter-yraebrmw.d.ts +0 -5
- package/dist/shared/outfitter-yvksv5qb.js +0 -322
- package/dist/shared/outfitter-z0we32cp.d.ts +0 -63
- package/dist/shared/outfitter-z5sx06qe.d.ts +0 -25
- package/dist/shared/outfitter-zwyvewr1.js +0 -36
- package/dist/targets/index.d.ts +0 -4
- package/dist/targets/index.js +0 -29
- package/dist/targets/registry.d.ts +0 -3
- package/dist/targets/registry.js +0 -28
- package/dist/targets/types.d.ts +0 -2
- package/dist/targets/types.js +0 -1
- package/template-versions.json +0 -22
- package/templates/.gitkeep +0 -0
- package/templates/basic/.gitignore.template +0 -30
- package/templates/basic/.lefthook.yml.template +0 -26
- package/templates/basic/package.json.template +0 -46
- package/templates/basic/src/index.ts.template +0 -26
- package/templates/basic/tsconfig.json.template +0 -34
- package/templates/cli/.gitignore.template +0 -4
- package/templates/cli/.lefthook.yml.template +0 -26
- package/templates/cli/README.md.template +0 -35
- package/templates/cli/biome.json.template +0 -4
- package/templates/cli/package.json.template +0 -53
- package/templates/cli/src/cli.ts.template +0 -8
- package/templates/cli/src/index.ts.template +0 -7
- package/templates/cli/src/program.ts.template +0 -31
- package/templates/cli/tsconfig.json.template +0 -34
- package/templates/daemon/.gitignore.template +0 -4
- package/templates/daemon/.lefthook.yml.template +0 -26
- package/templates/daemon/README.md.template +0 -67
- package/templates/daemon/biome.json.template +0 -4
- package/templates/daemon/package.json.template +0 -56
- package/templates/daemon/src/cli.ts.template +0 -96
- package/templates/daemon/src/daemon-main.ts.template +0 -79
- package/templates/daemon/src/daemon.ts.template +0 -11
- package/templates/daemon/src/index.ts.template +0 -7
- package/templates/daemon/tsconfig.json.template +0 -23
- package/templates/full-stack/.gitignore.template +0 -30
- package/templates/full-stack/README.md.template +0 -30
- package/templates/full-stack/apps/cli/package.json.template +0 -39
- package/templates/full-stack/apps/cli/src/cli.ts.template +0 -24
- package/templates/full-stack/apps/cli/src/index.test.ts.template +0 -18
- package/templates/full-stack/apps/cli/src/index.ts.template +0 -5
- package/templates/full-stack/apps/cli/tsconfig.json.template +0 -37
- package/templates/full-stack/apps/mcp/package.json.template +0 -40
- package/templates/full-stack/apps/mcp/src/index.test.ts.template +0 -18
- package/templates/full-stack/apps/mcp/src/index.ts.template +0 -6
- package/templates/full-stack/apps/mcp/src/mcp.ts.template +0 -22
- package/templates/full-stack/apps/mcp/src/server.ts.template +0 -10
- package/templates/full-stack/apps/mcp/tsconfig.json.template +0 -37
- package/templates/full-stack/package.json.template +0 -16
- package/templates/full-stack/packages/core/package.json.template +0 -36
- package/templates/full-stack/packages/core/src/handlers.ts.template +0 -31
- package/templates/full-stack/packages/core/src/index.test.ts.template +0 -30
- package/templates/full-stack/packages/core/src/index.ts.template +0 -8
- package/templates/full-stack/packages/core/src/types.ts.template +0 -13
- package/templates/full-stack/packages/core/tsconfig.json.template +0 -34
- package/templates/library/.gitignore.template +0 -30
- package/templates/library/README.md.template +0 -29
- package/templates/library/bunup.config.ts.template +0 -20
- package/templates/library/package.json.template +0 -55
- package/templates/library/src/handlers.ts.template +0 -31
- package/templates/library/src/index.test.ts.template +0 -35
- package/templates/library/src/index.ts.template +0 -8
- package/templates/library/src/types.ts.template +0 -13
- package/templates/library/tsconfig.json.template +0 -34
- package/templates/mcp/.gitignore.template +0 -4
- package/templates/mcp/.lefthook.yml.template +0 -26
- package/templates/mcp/README.md.template +0 -54
- package/templates/mcp/biome.json.template +0 -4
- package/templates/mcp/package.json.template +0 -53
- package/templates/mcp/src/index.ts.template +0 -7
- package/templates/mcp/src/mcp.ts.template +0 -33
- package/templates/mcp/src/server.ts.template +0 -8
- package/templates/mcp/tsconfig.json.template +0 -23
- package/templates/minimal/.gitignore.template +0 -30
- package/templates/minimal/.lefthook.yml.template +0 -26
- package/templates/minimal/package.json.template +0 -53
- package/templates/minimal/src/index.ts.template +0 -26
- package/templates/minimal/tsconfig.json.template +0 -34
package/README.md
CHANGED
|
@@ -62,7 +62,6 @@ Options:
|
|
|
62
62
|
- `-n, --name <name>` - Package name
|
|
63
63
|
- `-b, --bin <name>` - Binary name
|
|
64
64
|
- `-p, --preset <preset>` - Preset (`minimal`, `cli`, `mcp`, `daemon`)
|
|
65
|
-
- `-t, --template <template>` - Deprecated alias for `--preset`
|
|
66
65
|
- `-s, --structure <mode>` - Project structure (`single` | `workspace`)
|
|
67
66
|
- `--workspace-name <name>` - Workspace root package name
|
|
68
67
|
- `--local` - Use `workspace:*` for `@outfitter/*` dependencies
|
|
@@ -82,7 +81,7 @@ Examples:
|
|
|
82
81
|
outfitter init my-lib --preset minimal --yes
|
|
83
82
|
outfitter init cli my-project --yes
|
|
84
83
|
outfitter init my-workspace --preset mcp --structure workspace --workspace-name @acme/root
|
|
85
|
-
outfitter init . --
|
|
84
|
+
outfitter init . --preset minimal --name my-lib
|
|
86
85
|
```
|
|
87
86
|
|
|
88
87
|
### `scaffold`
|
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -183,9 +183,9 @@ interface TargetDefinition {
|
|
|
183
183
|
readonly description: string;
|
|
184
184
|
readonly id: TargetId;
|
|
185
185
|
readonly placement: "apps" | "packages";
|
|
186
|
+
readonly presetDir: string;
|
|
186
187
|
readonly scope: TargetScope;
|
|
187
188
|
readonly status: TargetStatus;
|
|
188
|
-
readonly templateDir: string;
|
|
189
189
|
}
|
|
190
190
|
declare const TARGET_REGISTRY: ReadonlyMap<TargetId, TargetDefinition>;
|
|
191
191
|
declare const TARGET_IDS: readonly TargetId[];
|
|
@@ -221,8 +221,6 @@ interface InitOptions {
|
|
|
221
221
|
readonly skipInstall?: boolean | undefined;
|
|
222
222
|
readonly structure?: InitStructure | undefined;
|
|
223
223
|
readonly targetDir: string;
|
|
224
|
-
/** @deprecated Use `preset` instead. */
|
|
225
|
-
readonly template?: string | undefined;
|
|
226
224
|
readonly with?: string | undefined;
|
|
227
225
|
readonly workspaceName?: string | undefined;
|
|
228
226
|
readonly yes?: boolean | undefined;
|
|
@@ -352,8 +350,8 @@ type CreatePresetId = "basic" | "cli" | "daemon" | "mcp";
|
|
|
352
350
|
interface CreatePresetDefinition {
|
|
353
351
|
readonly defaultBlocks: readonly string[];
|
|
354
352
|
readonly id: CreatePresetId;
|
|
353
|
+
readonly presetDir: CreatePresetId;
|
|
355
354
|
readonly summary: string;
|
|
356
|
-
readonly template: CreatePresetId;
|
|
357
355
|
}
|
|
358
356
|
interface CreateProjectInput {
|
|
359
357
|
readonly description?: string;
|
|
@@ -367,9 +365,10 @@ interface CreateProjectInput {
|
|
|
367
365
|
readonly year?: string;
|
|
368
366
|
}
|
|
369
367
|
type CreatePlanChange = {
|
|
370
|
-
readonly type: "copy-
|
|
371
|
-
readonly
|
|
368
|
+
readonly type: "copy-preset";
|
|
369
|
+
readonly preset: string;
|
|
372
370
|
readonly targetDir: string;
|
|
371
|
+
readonly includeTooling: boolean;
|
|
373
372
|
readonly overlayBaseTemplate: boolean;
|
|
374
373
|
} | {
|
|
375
374
|
readonly type: "inject-shared-config";
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
runInit,
|
|
26
26
|
runScaffold,
|
|
27
27
|
scaffoldCommand
|
|
28
|
-
} from "./shared/chunk-
|
|
28
|
+
} from "./shared/chunk-3pwh8ys4.js";
|
|
29
29
|
// src/create/planner.ts
|
|
30
30
|
import { Result, ValidationError } from "@outfitter/contracts";
|
|
31
31
|
|
|
@@ -33,25 +33,25 @@ import { Result, ValidationError } from "@outfitter/contracts";
|
|
|
33
33
|
var CREATE_PRESETS = {
|
|
34
34
|
basic: {
|
|
35
35
|
id: "basic",
|
|
36
|
-
|
|
36
|
+
presetDir: "basic",
|
|
37
37
|
summary: "Minimal Bun + TypeScript project.",
|
|
38
38
|
defaultBlocks: ["scaffolding"]
|
|
39
39
|
},
|
|
40
40
|
cli: {
|
|
41
41
|
id: "cli",
|
|
42
|
-
|
|
42
|
+
presetDir: "cli",
|
|
43
43
|
summary: "CLI starter with Outfitter command ergonomics.",
|
|
44
44
|
defaultBlocks: ["scaffolding"]
|
|
45
45
|
},
|
|
46
46
|
daemon: {
|
|
47
47
|
id: "daemon",
|
|
48
|
-
|
|
48
|
+
presetDir: "daemon",
|
|
49
49
|
summary: "Daemon + control CLI starter.",
|
|
50
50
|
defaultBlocks: ["scaffolding"]
|
|
51
51
|
},
|
|
52
52
|
mcp: {
|
|
53
53
|
id: "mcp",
|
|
54
|
-
|
|
54
|
+
presetDir: "mcp",
|
|
55
55
|
summary: "MCP server starter.",
|
|
56
56
|
defaultBlocks: ["scaffolding"]
|
|
57
57
|
}
|
|
@@ -105,9 +105,10 @@ function planCreateProject(input) {
|
|
|
105
105
|
const defaultBlocks = includeTooling ? [...preset.defaultBlocks] : [];
|
|
106
106
|
const changes = [
|
|
107
107
|
{
|
|
108
|
-
type: "copy-
|
|
109
|
-
|
|
108
|
+
type: "copy-preset",
|
|
109
|
+
preset: preset.presetDir,
|
|
110
110
|
targetDir,
|
|
111
|
+
includeTooling,
|
|
111
112
|
overlayBaseTemplate: true
|
|
112
113
|
},
|
|
113
114
|
{ type: "inject-shared-config" }
|