-
Notifications
You must be signed in to change notification settings - Fork 36
/
moon.yml
83 lines (70 loc) · 1.89 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
# https://moonrepo.dev/docs/config/tasks
$schema: 'https://moonrepo.dev/schemas/tasks.json'
project:
description: It's the repo root
name: repo
workspace:
inheritedTasks:
exclude: ['build', 'compile', 'release', 'test']
tasks:
build.deps:
deps:
- plugin-inline:build
- plugin-minify:build
- plugin-pretty:build
- create-jsx-email:build
build.all:
command: moon repo:build.deps
deps:
- jsx-email:build
build.samples:
command: email preview ./apps/demo/emails --build-path /tmp/samples.jsx.email
deps:
- clean.samples
options:
cache: false
clean.samples:
command: rm -rf /tmp/samples.jsx.email
inputs:
- src
- package.json
cname.samples:
command: echo samples.jsx.email > /tmp/samples.jsx.email/CNAME && touch /tmp/samples.jsx.email/.nojekyll
options:
cache: false
lint:
deps:
- repo:lint.docs
- repo:lint.json
- repo:lint.package
- repo:lint.js
options:
cache: false
lint.docs:
command: 'prettier --write .github/**/*.md **/README.md docs/**/*.md'
options:
cache: false
lint.js:
command: 'eslint --cache apps packages --ext .js,.ts,.tsx'
env:
NODE_OPTIONS: '--max-old-space-size=16384'
options:
cache: false
lint.json:
command: 'prettier --write .github/**/*.yml **/tsconfig.json **/tsconfig.*.json pnpm-workspace.yaml .moon/*.yml **/moon.yml'
options:
cache: false
lint.package:
command: 'prettier --write **/package.json'
options:
cache: false
release.samples:
command: gh-pages -d /tmp/samples.jsx.email -u "Release Workflow <[email protected]>" --repo [email protected]:shellscape/samples.jsx.email.git
deps:
- ~:clean.dist
- ~:build.samples
- cname.samples
options:
cache: false
outputStyle: 'stream'
runDepsInParallel: false