@outfitter/presets 0.2.0 → 0.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/README.md +30 -0
- package/dist/index.js +1 -1
- package/package.json +25 -24
- package/presets/basic/.lefthook.yml.template +2 -2
- package/presets/basic/package.json.template +4 -4
- package/presets/cli/.lefthook.yml.template +2 -2
- package/presets/cli/package.json.template +3 -3
- package/presets/daemon/.lefthook.yml.template +2 -2
- package/presets/daemon/package.json.template +3 -3
- package/presets/full-stack/apps/cli/package.json.template +3 -3
- package/presets/full-stack/apps/mcp/package.json.template +3 -3
- package/presets/full-stack/packages/core/package.json.template +3 -3
- package/presets/library/package.json.template +4 -4
- package/presets/mcp/.lefthook.yml.template +2 -2
- package/presets/mcp/package.json.template +3 -3
- package/presets/minimal/.lefthook.yml.template +2 -2
- package/presets/minimal/package.json.template +4 -4
- package/presets/cli/biome.json.template +0 -4
- package/presets/daemon/biome.json.template +0 -4
- package/presets/mcp/biome.json.template +0 -4
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @outfitter/presets
|
|
2
|
+
|
|
3
|
+
Scaffold presets and shared dependency versions for Outfitter projects.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add -d @outfitter/presets
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
This package provides:
|
|
14
|
+
|
|
15
|
+
- **Scaffold presets** -- Template configurations used by `outfitter add` to generate project boilerplate
|
|
16
|
+
- **Shared dependency versions** -- Catalog-resolved dependency versions ensuring consistency across Outfitter projects
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
Presets are consumed by the `outfitter` CLI during scaffolding:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx outfitter add <preset-name>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
For programmatic access to preset metadata:
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { presets } from "@outfitter/presets";
|
|
30
|
+
```
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ function listPresets() {
|
|
|
22
22
|
return readdirSync(presetsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => ({
|
|
23
23
|
name: entry.name,
|
|
24
24
|
path: join(presetsDir, entry.name)
|
|
25
|
-
})).
|
|
25
|
+
})).toSorted((a, b) => a.name.localeCompare(b.name));
|
|
26
26
|
}
|
|
27
27
|
function getPresetPath(presetName) {
|
|
28
28
|
const presetsDir = getPresetsDir();
|
package/package.json
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outfitter/presets",
|
|
3
|
+
"version": "0.2.1",
|
|
3
4
|
"description": "Scaffold presets and shared dependency versions for Outfitter projects",
|
|
4
|
-
"
|
|
5
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"outfitter",
|
|
7
|
+
"presets",
|
|
8
|
+
"scaffolding",
|
|
9
|
+
"templates",
|
|
10
|
+
"versions"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/outfitter-dev/outfitter.git",
|
|
16
|
+
"directory": "packages/presets"
|
|
17
|
+
},
|
|
6
18
|
"files": [
|
|
7
19
|
"dist",
|
|
8
20
|
"presets"
|
|
9
21
|
],
|
|
22
|
+
"type": "module",
|
|
10
23
|
"module": "./dist/index.js",
|
|
11
24
|
"types": "./dist/index.d.ts",
|
|
12
25
|
"exports": {
|
|
@@ -18,8 +31,14 @@
|
|
|
18
31
|
},
|
|
19
32
|
"./package.json": "./package.json"
|
|
20
33
|
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "cd ../.. && bunup --filter @outfitter/presets",
|
|
36
|
+
"clean": "rm -rf dist .turbo",
|
|
37
|
+
"test": "bun test",
|
|
38
|
+
"typecheck": "tsc --noEmit",
|
|
39
|
+
"prepublishOnly": "bun ../../scripts/check-publish-manifest.ts"
|
|
40
|
+
},
|
|
21
41
|
"dependencies": {
|
|
22
|
-
"@biomejs/biome": "2.4.4",
|
|
23
42
|
"@clack/prompts": "^1.0.1",
|
|
24
43
|
"@logtape/logtape": "^2.0.0",
|
|
25
44
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
@@ -28,6 +47,8 @@
|
|
|
28
47
|
"bunup": "^0.16.29",
|
|
29
48
|
"commander": "^14.0.2",
|
|
30
49
|
"lefthook": "^2.1.1",
|
|
50
|
+
"oxfmt": "0.35.0",
|
|
51
|
+
"oxlint": "1.50.0",
|
|
31
52
|
"smol-toml": "^1.6.0",
|
|
32
53
|
"ultracite": "7.2.3",
|
|
33
54
|
"yaml": "^2.8.2",
|
|
@@ -38,26 +59,6 @@
|
|
|
38
59
|
"typescript": "^5.9.3"
|
|
39
60
|
},
|
|
40
61
|
"engines": {
|
|
41
|
-
"bun": ">=1.3.
|
|
42
|
-
},
|
|
43
|
-
"keywords": [
|
|
44
|
-
"outfitter",
|
|
45
|
-
"presets",
|
|
46
|
-
"scaffolding",
|
|
47
|
-
"templates",
|
|
48
|
-
"versions"
|
|
49
|
-
],
|
|
50
|
-
"license": "MIT",
|
|
51
|
-
"repository": {
|
|
52
|
-
"type": "git",
|
|
53
|
-
"url": "https://github.com/outfitter-dev/stack.git",
|
|
54
|
-
"directory": "packages/presets"
|
|
55
|
-
},
|
|
56
|
-
"scripts": {
|
|
57
|
-
"build": "cd ../.. && bunup --filter @outfitter/presets",
|
|
58
|
-
"clean": "rm -rf dist .turbo",
|
|
59
|
-
"test": "bun test",
|
|
60
|
-
"typecheck": "tsc --noEmit",
|
|
61
|
-
"prepublishOnly": "bun ../../scripts/check-publish-manifest.ts"
|
|
62
|
+
"bun": ">=1.3.10"
|
|
62
63
|
}
|
|
63
64
|
}
|
|
@@ -6,12 +6,12 @@ pre-commit:
|
|
|
6
6
|
commands:
|
|
7
7
|
format:
|
|
8
8
|
glob: "*.{js,ts,tsx,json,md}"
|
|
9
|
-
run: bunx
|
|
9
|
+
run: bunx oxfmt --write {staged_files}
|
|
10
10
|
stage_fixed: true
|
|
11
11
|
|
|
12
12
|
lint:
|
|
13
13
|
glob: "*.{js,ts,tsx}"
|
|
14
|
-
run: bunx
|
|
14
|
+
run: bunx oxlint {staged_files}
|
|
15
15
|
|
|
16
16
|
typecheck:
|
|
17
17
|
glob: "*.{ts,tsx}"
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"typecheck": "tsc --noEmit",
|
|
25
25
|
"check": "ultracite check",
|
|
26
26
|
"verify:ci": "bun run typecheck && bun run check && bun run build && bun run test",
|
|
27
|
-
"lint": "
|
|
28
|
-
"lint:fix": "
|
|
29
|
-
"format": "
|
|
27
|
+
"lint": "oxlint .",
|
|
28
|
+
"lint:fix": "oxlint --fix .",
|
|
29
|
+
"format": "oxfmt --write .",
|
|
30
30
|
"clean:artifacts": "rm -rf dist .turbo",
|
|
31
31
|
"clean": "rm -rf dist"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {},
|
|
34
34
|
"engines": {
|
|
35
|
-
"bun": ">=1.3.
|
|
35
|
+
"bun": ">=1.3.10"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [],
|
|
38
38
|
"license": "MIT"
|
|
@@ -6,12 +6,12 @@ pre-commit:
|
|
|
6
6
|
commands:
|
|
7
7
|
format:
|
|
8
8
|
glob: "*.{js,ts,tsx,json,md}"
|
|
9
|
-
run: bunx
|
|
9
|
+
run: bunx oxfmt --write {staged_files}
|
|
10
10
|
stage_fixed: true
|
|
11
11
|
|
|
12
12
|
lint:
|
|
13
13
|
glob: "*.{js,ts,tsx}"
|
|
14
|
-
run: bunx
|
|
14
|
+
run: bunx oxlint {staged_files}
|
|
15
15
|
|
|
16
16
|
typecheck:
|
|
17
17
|
glob: "*.{ts,tsx}"
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"verify:ci": "bun run typecheck && bun run check && bun run build && bun run test",
|
|
23
23
|
"test": "bun test",
|
|
24
24
|
"test:watch": "bun test --watch",
|
|
25
|
-
"lint": "
|
|
26
|
-
"lint:fix": "
|
|
27
|
-
"format": "
|
|
25
|
+
"lint": "oxlint .",
|
|
26
|
+
"lint:fix": "oxlint --fix .",
|
|
27
|
+
"format": "oxfmt --write .",
|
|
28
28
|
"clean:artifacts": "rm -rf dist .turbo"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
@@ -6,12 +6,12 @@ pre-commit:
|
|
|
6
6
|
commands:
|
|
7
7
|
format:
|
|
8
8
|
glob: "*.{js,ts,tsx,json,md}"
|
|
9
|
-
run: bunx
|
|
9
|
+
run: bunx oxfmt --write {staged_files}
|
|
10
10
|
stage_fixed: true
|
|
11
11
|
|
|
12
12
|
lint:
|
|
13
13
|
glob: "*.{js,ts,tsx}"
|
|
14
|
-
run: bunx
|
|
14
|
+
run: bunx oxlint {staged_files}
|
|
15
15
|
|
|
16
16
|
typecheck:
|
|
17
17
|
glob: "*.{ts,tsx}"
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"verify:ci": "bun run typecheck && bun run check && bun run build && bun run test",
|
|
25
25
|
"test": "bun test",
|
|
26
26
|
"test:watch": "bun test --watch",
|
|
27
|
-
"lint": "
|
|
28
|
-
"lint:fix": "
|
|
29
|
-
"format": "
|
|
27
|
+
"lint": "oxlint .",
|
|
28
|
+
"lint:fix": "oxlint --fix .",
|
|
29
|
+
"format": "oxfmt --write .",
|
|
30
30
|
"clean:artifacts": "rm -rf dist .turbo"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"test": "bun test",
|
|
21
21
|
"test:watch": "bun test --watch",
|
|
22
22
|
"typecheck": "tsc --noEmit",
|
|
23
|
-
"lint": "
|
|
24
|
-
"lint:fix": "
|
|
25
|
-
"format": "
|
|
23
|
+
"lint": "oxlint .",
|
|
24
|
+
"lint:fix": "oxlint --fix .",
|
|
25
|
+
"format": "oxfmt --write .",
|
|
26
26
|
"clean:artifacts": "rm -rf dist .turbo"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"test": "bun test",
|
|
21
21
|
"test:watch": "bun test --watch",
|
|
22
22
|
"typecheck": "tsc --noEmit",
|
|
23
|
-
"lint": "
|
|
24
|
-
"lint:fix": "
|
|
25
|
-
"format": "
|
|
23
|
+
"lint": "oxlint .",
|
|
24
|
+
"lint:fix": "oxlint --fix .",
|
|
25
|
+
"format": "oxfmt --write .",
|
|
26
26
|
"clean:artifacts": "rm -rf dist .turbo"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"test": "bun test",
|
|
18
18
|
"test:watch": "bun test --watch",
|
|
19
19
|
"typecheck": "tsc --noEmit",
|
|
20
|
-
"lint": "
|
|
21
|
-
"lint:fix": "
|
|
22
|
-
"format": "
|
|
20
|
+
"lint": "oxlint .",
|
|
21
|
+
"lint:fix": "oxlint --fix .",
|
|
22
|
+
"format": "oxfmt --write .",
|
|
23
23
|
"clean:artifacts": "rm -rf dist .turbo"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"test": "bun test",
|
|
24
24
|
"test:watch": "bun test --watch",
|
|
25
25
|
"typecheck": "tsc --noEmit",
|
|
26
|
-
"lint": "
|
|
27
|
-
"lint:fix": "
|
|
28
|
-
"format": "
|
|
26
|
+
"lint": "oxlint .",
|
|
27
|
+
"lint:fix": "oxlint --fix .",
|
|
28
|
+
"format": "oxfmt --write .",
|
|
29
29
|
"clean:artifacts": "rm -rf dist .turbo",
|
|
30
30
|
"clean": "rm -rf dist"
|
|
31
31
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
|
-
"bun": ">=1.3.
|
|
48
|
+
"bun": ">=1.3.10"
|
|
49
49
|
},
|
|
50
50
|
"keywords": [],
|
|
51
51
|
"license": "MIT"
|
|
@@ -6,12 +6,12 @@ pre-commit:
|
|
|
6
6
|
commands:
|
|
7
7
|
format:
|
|
8
8
|
glob: "*.{js,ts,tsx,json,md}"
|
|
9
|
-
run: bunx
|
|
9
|
+
run: bunx oxfmt --write {staged_files}
|
|
10
10
|
stage_fixed: true
|
|
11
11
|
|
|
12
12
|
lint:
|
|
13
13
|
glob: "*.{js,ts,tsx}"
|
|
14
|
-
run: bunx
|
|
14
|
+
run: bunx oxlint {staged_files}
|
|
15
15
|
|
|
16
16
|
typecheck:
|
|
17
17
|
glob: "*.{ts,tsx}"
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"verify:ci": "bun run typecheck && bun run check && bun run build && bun run test",
|
|
23
23
|
"test": "bun test",
|
|
24
24
|
"test:watch": "bun test --watch",
|
|
25
|
-
"lint": "
|
|
26
|
-
"lint:fix": "
|
|
27
|
-
"format": "
|
|
25
|
+
"lint": "oxlint .",
|
|
26
|
+
"lint:fix": "oxlint --fix .",
|
|
27
|
+
"format": "oxfmt --write .",
|
|
28
28
|
"clean:artifacts": "rm -rf dist .turbo"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
@@ -6,12 +6,12 @@ pre-commit:
|
|
|
6
6
|
commands:
|
|
7
7
|
format:
|
|
8
8
|
glob: "*.{js,ts,tsx,json,md}"
|
|
9
|
-
run: bunx
|
|
9
|
+
run: bunx oxfmt --write {staged_files}
|
|
10
10
|
stage_fixed: true
|
|
11
11
|
|
|
12
12
|
lint:
|
|
13
13
|
glob: "*.{js,ts,tsx}"
|
|
14
|
-
run: bunx
|
|
14
|
+
run: bunx oxlint {staged_files}
|
|
15
15
|
|
|
16
16
|
typecheck:
|
|
17
17
|
glob: "*.{ts,tsx}"
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"typecheck": "tsc --noEmit",
|
|
25
25
|
"check": "ultracite check",
|
|
26
26
|
"verify:ci": "bun run typecheck && bun run check && bun run build && bun run test",
|
|
27
|
-
"lint": "
|
|
28
|
-
"lint:fix": "
|
|
29
|
-
"format": "
|
|
27
|
+
"lint": "oxlint .",
|
|
28
|
+
"lint:fix": "oxlint --fix .",
|
|
29
|
+
"format": "oxfmt --write .",
|
|
30
30
|
"clean:artifacts": "rm -rf dist .turbo",
|
|
31
31
|
"clean": "rm -rf dist"
|
|
32
32
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
|
-
"bun": ">=1.3.
|
|
42
|
+
"bun": ">=1.3.10"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [],
|
|
45
45
|
"license": "MIT"
|