-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
63 lines (51 loc) · 1.52 KB
/
Taskfile.yml
File metadata and controls
63 lines (51 loc) · 1.52 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
version: "3"
vars:
# All available variants
VARIANTS: architecture idp mcp gitops jit kitchen-sink security poc-eval billing
# Default variants for build:datasheet (matches original npm script)
DEFAULT_VARIANTS: idp mcp gitops jit
# Directories
DIST_DIR: ./dist
PDF_OUTPUT_DIR: ../../../static/pdfs
# Source patterns for watching and dependency tracking
SRC_PATTERN: src/**/*.{tsx,ts,jsx,js,css,mdx}
ASSETS_PATTERN: assets/**/*
STYLES_FILE: styles.css
tasks:
# ============================================================================
# Base Tasks (Parameterized)
# ============================================================================
clean:
desc: "Clean build outputs"
cmds:
- rm -rf {{.DIST_DIR}}
- mkdir -p {{.DIST_DIR}}
build:
sources:
- src/**/*.{tsx,ts,jsx,js,css,mdx}
- cli/src/**/*.{tsx,ts,jsx,js,css,mdx}
cmds:
- npm run build
install:
deps:
- build
cmds:
- cp dist/facet /usr/local/bin
storybook:
desc: "Run Storybook development server on port 6006"
cmds:
- npm run storybook
storybook:build:
desc: "Build static Storybook for deployment"
cmds:
- npm run build-storybook
test:storybook:
desc: "Build Storybook and verify all stories load without errors"
cmds:
- npm run build-storybook
- echo "✓ Storybook build completed successfully"
- echo "✓ All stories compiled without errors"
default:
desc: "Show available tasks"
cmds:
- task --list