Back to articles
moon Has a Free API — Here's How to Use This Rust-Powered Repository Management Tool

moon Has a Free API — Here's How to Use This Rust-Powered Repository Management Tool

via Dev.to JavaScriptAlex Spinov

moon is a repository management tool built in Rust. It handles task running, dependency management, and code generation for JavaScript, TypeScript, and other language monorepos — with blazing speed. Installation curl -fsSL https://moonrepo.dev/install/moon.sh | bash # or npm install -g @moonrepo/cli Workspace Setup # .moon/workspace.yml projects : - " apps/*" - " packages/*" node : version : " 20.11.0" packageManager : " pnpm" pnpm : version : " 8.15.0" Task Configuration # moon.yml (in project root) tasks : build : command : " tsc --build" inputs : - " src/**/*" - " tsconfig.json" outputs : - " dist" deps : - " ^:build" test : command : " vitest run" inputs : - " src/**/*" - " tests/**/*" deps : - " ~:build" lint : command : " eslint src/" inputs : - " src/**/*" Running Tasks # Run a task for a project moon run app:build # Run task for all projects moon run :build # Run affected tasks only moon ci # Check what would run moon run :build --status Code Generation # Generate from template

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
8 views

Related Articles