Skip to content

Commit 2165185

Browse files
committed
build: add js shared for inputs
1 parent dfb83bc commit 2165185

5 files changed

Lines changed: 30 additions & 0 deletions

File tree

.moon/tasks/javascript.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
inheritedBy:
22
toolchains: ['javascript', 'typescript']
33

4+
fileGroups:
5+
js-shared:
6+
- '/package.json'
7+
- '/pnpm-lock.yaml'
8+
- '/pnpm-workspace.yaml'
9+
410
tasks:
511
ensure-deps:
612
command: 'pnpm install'

apps/extension/moon.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,29 @@ tasks:
2323
build:
2424
command: "pnpm"
2525
args: ["run", "build"]
26+
inputs:
27+
- '**/*'
28+
- '@group(js-shared)'
2629
deps:
2730
- ~:ensure-deps
2831
- analysis:build
2932

3033
build-firefox:
3134
command: "pnpm"
3235
args: ["run", "build:firefox"]
36+
inputs:
37+
- '**/*'
38+
- '@group(js-shared)'
3339
deps:
3440
- ~:ensure-deps
3541
- analysis:build
3642

3743
test-unit:
3844
command: "pnpm"
3945
args: ["run", "test:unit"]
46+
inputs:
47+
- '**/*'
48+
- '@group(js-shared)'
4049
deps:
4150
- ~:ensure-deps
4251

apps/server-ui-e2e/moon.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ tasks:
1313
e2e:
1414
command: 'pnpm'
1515
args: ['run', 'e2e']
16+
inputs:
17+
- '**/*'
18+
- '@group(js-shared)'
1619
deps:
1720
- server-ui:build
1821
- ~:install-playwright

apps/server-ui/moon.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,25 @@ tasks:
66
build:
77
command: 'pnpm'
88
args: ['run', 'build']
9+
inputs:
10+
- '**/*'
11+
- '@group(js-shared)'
912
deps:
1013
- ~:ensure-deps
1114
test:
1215
command: 'pnpm'
1316
args: ['run', 'test']
17+
inputs:
18+
- '**/*'
19+
- '@group(js-shared)'
1420
deps:
1521
- ~:ensure-deps
1622
typecheck:
1723
command: 'pnpm'
1824
args: ['run', 'typecheck']
25+
inputs:
26+
- '**/*'
27+
- '@group(js-shared)'
1928
deps:
2029
- ~:ensure-deps
2130
preview:

libs/analysis/moon.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ tasks:
66
build:
77
command: "pnpm"
88
args: ["--filter", "analysis", "run", "build"]
9+
inputs:
10+
- '**/*'
11+
- '@group(js-shared)'
912
deps:
1013
- ~:ensure-deps

0 commit comments

Comments
 (0)