Skip to content

An example monorepo using moon and popular JS tooling.

License

Notifications You must be signed in to change notification settings

moonrepo/examples

Repository files navigation

moon examples

A collection of packages and applications using moon and popular tooling.

Usage

To begin, we suggest installing moon globally: https://moonrepo.dev/docs/install

Once installed, run the following commands for common tasks:

  • moon check --all - Run all tasks (below).
  • moon run :build - Build all projects.
  • moon run :lint - Lint code in all projects.
  • moon run :test - Run tests in all projects.
  • moon run :format - Format code in all projects.
  • moon run :typecheck - Type check code in all projects.

Tasks can also be focused to individual projects. The list of projects can be found in .moon/workspace.yml.

  • moon check <project>
  • moon run <project>:<task>
  • moon run <project>:dev - For applications, starts the development server.

JavaScript

The following tools are configured as moon tasks.

  • ESLint
  • Jest
  • Packemon
  • Prettier
  • TypeScript

Frameworks

The following frameworks have been integrated into moon.