Commit e4dae7c
authored
feat: task graph loading (#48)
# feat: Add vite_task_graph crate for task dependency management
This PR introduces a new `vite_task_graph` crate that provides a robust implementation for building and managing task dependency graphs in monorepo workspaces. The crate handles package discovery, task resolution, and dependency tracking between tasks.
Key changes:
- Created new `vite_task_graph` crate with clean API for task graph management
- Implemented `TaskGraph` structure to represent task dependencies with proper edge types
- Added support for explicit and topological dependency types
- Migrated test fixtures from `vite_task` to `vite_task_graph` for better organization
- Added snapshot testing for task graph validation
- Renamed `get_package_graph` to `discover_package_graph` and added `load_package_graph` in workspace module1 parent edf07c7 commit e4dae7c
File tree
73 files changed
+1550
-1216
lines changed- crates
- vite_path/src
- vite_task_graph
- src
- config
- tests
- fixtures
- cache-sharing
- comprehensive-task-graph
- packages
- api
- app
- config
- pkg#special
- tools
- ui
- conflict-test
- packages
- scope-a-b
- scope-a
- test-package
- empty-package-test
- packages
- another-empty
- empty-name
- normal-package
- explicit-deps-workspace
- packages
- app
- core
- utils
- fingerprint-ignore-test
- recursive-topological-workspace
- apps/web
- packages
- app
- core
- utils
- transitive-dependency-workspace
- packages
- a
- b
- c
- snapshots
- vite_task/src
- config
- vite_workspace/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
73 files changed
+1550
-1216
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
98 | | - | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
0 commit comments