-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
91 lines (75 loc) · 2.04 KB
/
Copy pathTaskfile.yml
File metadata and controls
91 lines (75 loc) · 2.04 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
# https://taskfile.dev
version: "3"
tasks:
default:
desc: "List all available tasks"
silent: true
cmds:
- task --list
setup:
desc: "Install dependencies and generate Nuxt type stubs (run once per clone)"
cmds:
- pnpm install
- pnpm run dev:prepare
setup:hooks:
desc: "Install the pre-commit hooks (formatting, lint, commit-message checks)"
cmds:
- pnpm run setup:hooks
dev:
desc: "Run the playground with the module stubbed in (hot reload)"
cmds:
- pnpm run dev
build:
desc: "Build the distributable module into dist/"
cmds:
- pnpm run prepack
build:playground:
desc: "Build the playground app"
cmds:
- pnpm run dev:build
generate:
desc: "Generate the static playground site (what GitHub Pages deploys)"
cmds:
- pnpm exec nuxi generate playground
test:
desc: "Run the test suite once"
cmds:
- pnpm run test
test:watch:
desc: "Run the test suite in watch mode"
cmds:
- pnpm run test:watch
test:types:
desc: "Type-check the module and the playground"
cmds:
- pnpm run test:types
lint:
desc: "Lint all files with ESLint"
cmds:
- pnpm run lint
lint:fix:
desc: "Lint and auto-fix all files with ESLint"
cmds:
- pnpm run lint:fix
check:
desc: "Run everything CI runs: lint, type-check, tests, build"
cmds:
- task: lint
- task: test:types
- task: test
- task: build
clean:
desc: "Remove build artifacts and generated dirs (dist, .nuxt, .output, coverage)"
cmds:
- rm -rf dist .nuxt .output coverage
- rm -rf playground/.nuxt playground/.output playground/dist
- rm -rf test/fixtures/*/.nuxt test/fixtures/*/.output
clean:all:
desc: "Clean everything including node_modules (follow with `task setup`)"
cmds:
- task: clean
- rm -rf node_modules playground/node_modules
release:
desc: "Lint, test, build, bump version + CHANGELOG, publish to npm, push tags"
cmds:
- pnpm run release