Skip to content

Commit 9620cd6

Browse files
committed
build: move task js ensure-deps to root task
1 parent f1689b1 commit 9620cd6

5 files changed

Lines changed: 27 additions & 11 deletions

File tree

.moon/tasks/javascript.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
inheritedBy:
2+
toolchains: ['javascript', 'typescript']
3+
4+
tasks:
5+
ensure-deps:
6+
command: 'pnpm install'
7+
inputs:
8+
- '/pnpm-lock.yaml'
9+
- '/pnpm-workspace.yaml'
10+
- 'package.json'
11+
outputs:
12+
- 'node_modules'
13+
options:
14+
cache: true

apps/extension/moon.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,6 @@ tasks:
1212
options:
1313
runInCI: false
1414

15-
ensure-deps:
16-
command: "pnpm install"
17-
inputs:
18-
- "/pnpm-lock.yaml"
19-
- "/pnpm-workspace.yaml"
20-
- "package.json"
21-
outputs:
22-
- "node_modules"
23-
options:
24-
cache: true
25-
2615
build:
2716
command: "pnpm"
2817
args: ["run", "build"]

apps/server-ui-e2e/moon.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ tasks:
88
options:
99
cache: false
1010
mutex: 'playwright-install'
11+
deps:
12+
- ~:ensure-deps
1113
e2e:
1214
command: 'pnpm'
1315
args: ['run', 'e2e']

apps/server-ui/moon.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ tasks:
66
build:
77
command: 'pnpm'
88
args: ['run', 'build']
9+
deps:
10+
- ~:ensure-deps
911
test:
1012
command: 'pnpm'
1113
args: ['run', 'test']
14+
deps:
15+
- ~:ensure-deps
1216
typecheck:
1317
command: 'pnpm'
1418
args: ['run', 'typecheck']
19+
deps:
20+
- ~:ensure-deps
1521
preview:
1622
command: 'pnpm'
1723
args: ['run', 'preview']

libs/analysis/moon.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
language: 'typescript'
22
layer: 'library'
33
tags: ['lit', 'web-components']
4+
5+
tasks:
6+
build:
7+
deps:
8+
- ~:ensure-deps

0 commit comments

Comments
 (0)