website/docs/cheat-sheet.mdx
import Columns from '@site/src/components/Columns';
Don't have time to read the docs? Here's a quick cheat sheet to get you started.
Learn more about tasks and targets.
moon check --all
moon check project
moon run :task
moon run '#tag:task'
# OR
moon run \#tag:task
# OR
moon run :task --query "tag=tag"
moon run project:task
moon run :task1 :task2
moon run projecta:task1 projectb:task2
moon run :task --query "projectLayer=application"
moon run :task --query "language=typescript"
moon run :task --query "project~react-*"
moon run :task --query "projectSource~packages/*"
Learn more about available options.
tasks:
example:
# ...
options:
cache: false
tasks:
example:
# ...
options:
retryCount: 3
# Also inferred from the language
dependsOn:
- 'project-a'
- 'project-b'
tasks:
example:
# ...
deps:
- '^:build'
tasks:
example:
# ...
deps:
- 'other-project:task'
tasks:
example:
# ...
deps:
- 'first'
- 'second'
- 'third'
options:
runDepsInParallel: false
tasks:
example:
command: 'noop'
deps:
- 'app:watch'
- 'backend:start'
- 'tailwind:watch'
preset: 'server'
The
persistentsetting is required for this to work.
PATHlanguage: 'bash' # batch, etc
tasks:
example:
command: 'printenv'
tasks:
example:
command: 'printenv'
toolchain: 'system'
language: 'ruby'
tasks:
example:
command: 'rubocop'
toolchain: 'system'
language: 'javascript' # typescript
tasks:
example:
command: 'eslint'
tasks:
example:
command: 'eslint'
toolchain: 'node'