Skip to content

Commit e303cce

Browse files
authored
chore: add syncpack (#88)
Co-authored-by: ndthanhdev <>
1 parent 42fd130 commit e303cce

76 files changed

Lines changed: 347 additions & 617 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.husky/pre-commit

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ if test $(git rev-parse --abbrev-ref HEAD) = "main" ; then
55
fi
66

77
yarn lint-staged
8+
moon run scripts:syncpack-lint

.moon/tasks/tag-syncpack.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
$schema: https://moonrepo.dev/schemas/tasks.json
2+
tasks:
3+
syncpack-lint:
4+
toolchain: node
5+
preset: utility
6+
script: syncpack lint --dependency-types prod,dev
7+
options:
8+
runFromWorkspaceRoot: true
9+
syncpack-fix:
10+
toolchain: node
11+
preset: utility
12+
script: syncpack fix
13+
options:
14+
runFromWorkspaceRoot: true
15+
syncpack-format:
16+
toolchain: node
17+
preset: utility
18+
script: syncpack format
19+
options:
20+
runFromWorkspaceRoot: true
21+
inheritedBy:
22+
tag: syncpack

.moon/tasks/tag-trunk.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
$schema: https://moonrepo.dev/schemas/tasks.json
2+
fileGroups:
3+
sources:
4+
- src/**/*
5+
trunk-config:
6+
- Trunk.toml
7+
- Cargo.toml
8+
- "*.html"
9+
trunk-dist:
10+
- ./target/trunk/dist/**/*
211
tasks:
312
serve:
413
command: trunk serve
514
preset: server
6-
mkTarget:
7-
command: mkdir -p target/apps
8-
build:
15+
trunk-build:
916
script: env -u NO_COLOR trunk build
1017
toolchain: system
1118
inputs:
12-
- src/**/*
13-
- "*.html"
14-
- "*.toml"
15-
deps:
16-
- mkTarget
19+
- "@group(sources)"
20+
- "@group(trunk-config)"
21+
outputs:
22+
- "@group(trunk-dist)"
1723
inheritedBy:
1824
tag: trunk

.syncpackrc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# yaml-language-server: $schema=./node_modules/syncpack/schema.json
2+
source:
3+
- package.json
4+
- apps/*/package.json
5+
- libs/*/package.json
6+
- etc/scripts/package.json
Binary file not shown.
-9.35 KB
Binary file not shown.
Binary file not shown.
-248 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)