flux-core-0.5.2 is not a library.
Flux
Declarative task runner with dependency management. Modern alternative to Makefile and package.json scripts.
Quick Start
# Install
# Create config
# Run
Features
| Feature | Command | Description |
|---|---|---|
| π Declarative | flux.yaml |
Define tasks in YAML |
| π Dependencies | depends_on |
Automatic task ordering |
| β‘ Parallel | flux build,test |
Run multiple tasks at once |
| ποΈ Watch | flux watch build |
Auto-run on file changes |
| πͺ Hooks | pre_hook / post_hook |
Execute before/after |
| π Multi-lang | cargo, npm, make |
Works with any runner |
| π³ Docker | flux-runner |
Containerized deployment |
| π WASM | flux-wasm |
Edge runtime support |
Usage
Configuration Example
dev:
command: "cargo run"
description: "Start dev server"
build:
command: "cargo build --release"
depends_on:
pre_hook: "echo 'Building...'"
test:
command: "cargo test"
runner: "cargo"
publish:
command: "cargo publish"
depends_on:
post_hook: "echo 'Published!'"
Installation
Cargo
Docker
From Source
&&
Why Flux?
| Make | npm | Flux | |
|---|---|---|---|
| Syntax | Complex | JSON-only | YAML |
| Dependencies | Limited | β | β DAG |
| Parallel | β | β | β |
| Watch | β | Needs tool | β Built-in |
| Multi-lang | β | β JS-only | β |
Documentation
License
MIT Β© Yunus GΓΌngΓΆr