Skip to main content

project

The moon project <name> (or moon p) command will display all available information about a project that has been configured and exists within the graph. If a project does not exist, the program will return with a 1 exit code.

$ moon project web

Arguments

  • <name> - Name or alias of a project, as defined in projects.

Options

  • --json - Print the project and its configuration as JSON.

Example output

The following output is an example of what this command prints, using our very own @moonrepo/runtime package.

RUNTIME

Project: runtime
Alias: @moonrepo/runtime
Source: packages/runtime
Root: ~/Projects/moon/packages/runtime
Platform: node
Language: typescript
Stack: unknown
Type: library

DEPENDS ON

- types (implicit, production)

INHERITS FROM

- .moon/tasks/node.yml

TASKS

build:
› packemon build --addFiles --addExports --declaration
format:
› prettier --check --config ../../prettier.config.js --ignore-path ../../.prettierignore --no-error-on-unmatched-pattern .
lint:
› eslint --cache --cache-location ./.eslintcache --color --ext .js,.ts,.tsx --ignore-path ../../.eslintignore --exit-on-fatal-error --no-error-on-unmatched-pattern --report-unused-disable-directives .
lint-fix:
› eslint --cache --cache-location ./.eslintcache --color --ext .js,.ts,.tsx --ignore-path ../../.eslintignore --exit-on-fatal-error --no-error-on-unmatched-pattern --report-unused-disable-directives . --fix
test:
› jest --cache --color --preset jest-preset-moon --passWithNoTests
typecheck:
› tsc --build

FILE GROUPS

configs:
- packages/runtime/*.{js,json}
sources:
- packages/runtime/src/**/*
- packages/runtime/types/**/*
tests:
- packages/runtime/tests/**/*

Configuration