chore: auto-commit task -
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
$schema: 'https://moonrepo.dev/schema/config/v2.json'
|
||||
|
||||
# Global task templates — each project must explicitly inherit via workspace.inheritedTasks
|
||||
# In moon v2, these define reusable task templates
|
||||
tasks:
|
||||
lint:
|
||||
command: biome
|
||||
args:
|
||||
- check
|
||||
- '--diagnostic-level=error'
|
||||
- .
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- 'src/**/*'
|
||||
- '*.js'
|
||||
- '*.mjs'
|
||||
- '*.ts'
|
||||
- '*.mts'
|
||||
|
||||
format:
|
||||
command: biome
|
||||
args:
|
||||
- format
|
||||
- '--write'
|
||||
- .
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- 'src/**/*'
|
||||
- '*.js'
|
||||
- '*.mjs'
|
||||
- '*.ts'
|
||||
- '*.mts'
|
||||
@@ -1,3 +1,5 @@
|
||||
$schema: 'https://moonrepo.dev/schema/config/v2.json'
|
||||
|
||||
# Moon Workspace Configuration
|
||||
projects:
|
||||
- 'services/*'
|
||||
|
||||
@@ -5,6 +5,8 @@ language: typescript
|
||||
tasks:
|
||||
typecheck:
|
||||
command: tsc --noEmit
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
- tsconfig.json
|
||||
|
||||
@@ -8,6 +8,8 @@ tasks:
|
||||
|
||||
build:
|
||||
command: tsc
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
- tsconfig.json
|
||||
@@ -16,22 +18,30 @@ tasks:
|
||||
|
||||
typecheck:
|
||||
command: tsc --noEmit
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
- tsconfig.json
|
||||
|
||||
lint:
|
||||
command: biome check --diagnostic-level=error .
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
|
||||
format:
|
||||
command: biome format --write .
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
|
||||
test:
|
||||
command: vitest run
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
- tests
|
||||
|
||||
@@ -8,6 +8,8 @@ tasks:
|
||||
|
||||
build:
|
||||
command: tsc
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
- tsconfig.json
|
||||
@@ -16,22 +18,30 @@ tasks:
|
||||
|
||||
typecheck:
|
||||
command: tsc --noEmit
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
- tsconfig.json
|
||||
|
||||
lint:
|
||||
command: biome check --diagnostic-level=error .
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
|
||||
format:
|
||||
command: biome format --write .
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
|
||||
test:
|
||||
command: vitest run
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
- tests
|
||||
|
||||
@@ -7,7 +7,9 @@ tasks:
|
||||
preset: server
|
||||
|
||||
build:
|
||||
command: tsc --noEmit && NODE_NO_WARNINGS=1 vite build
|
||||
script: 'tsc --noEmit && NODE_NO_WARNINGS=1 vite build'
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
- tsconfig.json
|
||||
@@ -22,16 +24,22 @@ tasks:
|
||||
|
||||
typecheck:
|
||||
command: tsc --noEmit
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
- tsconfig.json
|
||||
|
||||
lint:
|
||||
command: biome check --diagnostic-level=error src/
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
|
||||
format:
|
||||
command: biome format --write src/
|
||||
options:
|
||||
runFromWorkspaceRoot: false
|
||||
inputs:
|
||||
- src
|
||||
|
||||
Reference in New Issue
Block a user