-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdo.ts
More file actions
91 lines (89 loc) · 1.64 KB
/
Copy pathdo.ts
File metadata and controls
91 lines (89 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/** outdo builds itself with outdo. */
import { defineTasks } from "./src/index";
export default defineTasks({
typecheck: {
group: "Verify",
desc: "TypeScript gate (includes compile-time type tests)",
run: async ({ $ }) => {
await $`bun run typecheck`;
},
},
lint: {
group: "Verify",
desc: "Biome lint + format check",
run: async ({ $ }) => {
await $`bun run lint`;
},
},
test: {
group: "Verify",
desc: "Full test suite",
run: async ({ $ }) => {
await $`bun run test`;
},
},
coverage: {
group: "Verify",
desc: "Test suite with coverage report (text + lcov in coverage/)",
run: async ({ $ }) => {
await $`bun run coverage`;
},
},
check: {
group: "Verify",
desc: "Everything that must pass before a commit",
deps: [
"typecheck",
"lint",
"test",
],
},
build: {
group: "Release",
desc: "Bundle dist/ (CLI + library + declarations)",
inputs: [
"src/**/*.ts",
"tsconfig.build.json",
"scripts/build.ts",
],
outputs: [
"dist/**",
],
run: async ({ $ }) => {
await $`bun run build`;
},
},
pack: {
group: "Release",
desc: "Build and create the npm tarball",
deps: [
"build",
],
run: async ({ $ }) => {
await $`bun pm pack`;
},
},
"docs:dev": {
group: "Docs",
desc: "Docs dev server (VitePress)",
persistent: true,
run: async ({ $ }) => {
await $`bun run docs:dev`;
},
},
"docs:build": {
group: "Docs",
desc: "Build the docs site",
inputs: [
"docs/**",
"!docs/.vitepress/dist/**",
"!docs/.vitepress/cache/**",
],
outputs: [
"docs/.vitepress/dist/**",
],
run: async ({ $ }) => {
await $`bun run docs:build`;
},
},
});