Skip to content

Commit

Permalink
chore: setup root moon project
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSnow committed Apr 12, 2024
1 parent 2025031 commit 9ace905
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 9 deletions.
13 changes: 10 additions & 3 deletions .moon/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,24 @@ $schema: 'https://moonrepo.dev/schemas/workspace.json'
# path to the project folder as the map value. File paths are relative from the workspace root,
# and cannot reference projects located outside the workspace boundary.
projects:
- 'packages/*'
karbon-mono: .
code-highlight: packages/code-highlight
create-karbon: packages/create-karbon
custom-field: packages/custom-field
jose-browser: packages/jose-browser
karbon: packages/karbon
playground: packages/playground
typesense-xior: packages/typesense-xior

# Configures the version control system to utilize within the workspace. A VCS
# is required for determining touched (added, modified, etc) files, calculating file hashes,
# computing affected files, and much more.
vcs:
# The client to use when managing the repository.
# Accepts "git". Defaults to "git".
manager: 'git'
manager: git

# The default branch (master/main/trunk) in the repository for comparing the
# local branch against. For git, this is is typically "master" or "main",
# and must include the remote prefix (before /).
defaultBranch: 'main'
defaultBranch: main
14 changes: 14 additions & 0 deletions moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
id: karbon-monorepo

tasks:
build:
command: noop
deps:
- playground:dev-prepare
test:
command: vitest
inputs:
- packages/**/*
- vitest.workspace.ts
deps:
- ~:build
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"private": true,
"packageManager": "[email protected]",
"scripts": {
"build": "moon run playground:dev-prepare",
"test": "vitest"
"build": "moon run build",
"test": "moon run test"
},
"workspaces": [
"packages/*"
Expand Down
12 changes: 8 additions & 4 deletions packages/playground/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ tasks:
- build
platform: node
deps:
- ^:build
- karbon:build
- custom-field:build
bundle:
command: karbon
platform: node
deps:
- ^:build
- karbon:build
- custom-field:build
dev:
command:
- nuxt
Expand All @@ -23,14 +25,16 @@ tasks:
platform: node
deps:
- dev-prepare
- ^:build
- karbon:build
- custom-field:build
dev-prepare:
command:
- nuxt
- prepare
platform: node
deps:
- ^:build
- karbon:build
- custom-field:build
generate:
command:
- nuxt
Expand Down

0 comments on commit 9ace905

Please sign in to comment.