-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpubspec.yaml
More file actions
101 lines (83 loc) · 3.6 KB
/
Copy pathpubspec.yaml
File metadata and controls
101 lines (83 loc) · 3.6 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
92
93
94
95
96
97
98
99
100
101
name: dievas_workspace
description: A design system.
version: 0.0.1
publish_to: none
environment:
sdk: ">=3.11.4 <4.0.0"
workspace:
- packages/dievas
- packages/dievas_gallery
- packages/dievas_tokens
dev_dependencies:
lints: ^6.1.0
melos: ^8.0.0
melos:
packages:
- packages/*
scripts:
analyze:
exec: dart analyze .
description: Run dart analyzer across all packages
concurrency: 1
format:
exec: dart format . --line-length 120
description: Format all Dart files
format:check:
exec: dart format . --line-length 120 --set-exit-if-changed
description: Check formatting without modifying files
test:
exec: flutter test
packageFilters:
dirExists: test
description: Run tests across all packages
codegen:
exec: dart run build_runner build --delete-conflicting-outputs
packageFilters:
dependsOn: build_runner
description: Run build_runner across packages that need it
codegen:watch:
exec: dart run build_runner watch --delete-conflicting-outputs
packageFilters:
dependsOn: build_runner
description: Watch mode for build_runner
# ── Landing (Jaspr + Tailwind) ───────────────────────────────────
# Run from landing/ directory. These are NOT Melos package scripts —
# they are convenience wrappers since landing/ is outside packages/.
landing:theme:
run: cd landing && dart run tool/generate_theme.dart
description: >
Generate landing/web/styles.css @theme block from dievas_tokens.
Run this whenever tokens change, then follow with landing:css.
landing:css:
run: cd landing && npm run build:css
description: Compile Tailwind CSS → landing/web/output.css
landing:dev:css:
run: cd landing && npm run dev:css
description: Watch mode for Tailwind CSS compilation
landing:codegen:
run: cd landing && dart run build_runner build --delete-conflicting-outputs
description: Generate jaspr_options.dart (registers @client components)
landing:build:
run: cd landing && dart pub global run jaspr build --release
description: Build the Jaspr server release artifact (requires global jaspr activation)
landing:serve:
# Quick server — runs the Dart binary directly, no hot reload.
# Good for verifying the page renders correctly.
run: cd landing && dart run lib/main.dart
description: Run Jaspr server locally (no hot reload)
landing:serve:dev:
# Full dev server with hot reload. Requires:
# 1. dart pub global activate jaspr
# 2. export PATH="$PATH":"$HOME/.pub-cache/bin" (add to ~/.zshrc)
# After that, `jaspr serve` is on PATH and this works.
run: cd landing && jaspr serve
description: Run Jaspr dev server with hot reload (requires global jaspr activation + ~/.pub-cache/bin in PATH)
landing:setup:
run: |
cd landing
dart pub get
npm install
dart run tool/generate_theme.dart
npm run build:css
dart run build_runner build
description: Full first-time setup for landing (deps + codegen + CSS)