-
Notifications
You must be signed in to change notification settings - Fork 0
/
moon.yml
109 lines (99 loc) · 2.19 KB
/
moon.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
$schema: 'https://moonrepo.dev/schemas/project.json'
id: 'hexon'
type: library
language: typescript
stack: backend
tags:
- nestjs
- lib
fileGroups:
src:
- 'src/**/*'
- 'tsconfig.json'
- 'package.json'
tests:
- 'tests/**/*'
- 'jest.config.ts'
- 'tsconfig.spec.json'
tasks:
# Builds the library.
build:
command: 'pnpm build'
description: 'Builds the library'
type: build
inputs:
- '@group(src)'
outputs:
- 'dist/**/*'
deps:
- 'lint-check'
- 'format-check'
- 'test'
# Checks code quality using ESLint (fixable).
lint:
command: 'pnpm lint'
description: 'Checks code quality using ESLint'
type: run
inputs:
- '@group(src)'
- '@group(tests)'
- 'eslint.config.mjs'
# Checks code quality using ESLint (non-fixable).
lint-check:
command: 'pnpm lint-check'
description: 'Checks code quality using ESLint'
type: run
inputs:
- '@group(src)'
- '@group(tests)'
- 'eslint.config.mjs'
# Runs unit tests.
test:
command: 'pnpm test'
description: 'Runs unit tests'
type: test
inputs:
- '@group(src)'
- '@group(tests)'
outputs:
- 'coverage/**/*'
# Runs unit tests in watch mode.
test-watch:
command: 'pnpm test-watch'
description: 'Runs unit tests in watch mode'
type: test
inputs:
- '@group(src)'
- '@group(tests)'
outputs:
- 'coverage/**/*'
# Runs unit tests with coverage.
test-cov:
command: 'pnpm test-cov'
description: 'Runs unit tests with coverage'
type: test
inputs:
- '@group(src)'
- '@group(tests)'
outputs:
- 'coverage/**/*'
# Formats the code using Prettier.
format:
command: 'pnpm format'
description: 'Formats the code using Prettier'
type: run
inputs:
- '@group(src)'
- '@group(tests)'
- 'prettier.config.mjs'
- '.prettierignore'
# Checks formatting using Prettier.
format-check:
command: 'pnpm format-check'
description: 'Checks formatting using Prettier'
type: run
inputs:
- '@group(src)'
- '@group(tests)'
- 'prettier.config.mjs'
- '.prettierignore'