Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .moon/tasks/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,24 @@ fileGroups:
default:
- '**/*'
production: [ ]

tasks:
# This task can be used to make a task depend on the source files in the workspace
source:
command: 'true'
inputs:
- '@group(src)'
options:
internal: true
runFromWorkspaceRoot: true

# This task can be used to make a task depend on the full upstream source files of a select project
source-upstream:
command: 'true'
inputs:
- '@group(src)'
deps:
- '^:source-upstream'
options:
internal: true
runFromWorkspaceRoot: true
23 changes: 23 additions & 0 deletions .moon/tasks/tag-jest-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
$schema: https://moonrepo.dev/schemas/tasks.json

inheritedBy:
tags:
- jest-unit-tests

tasks:
jest:
command: node
args:
- scripts/jest.js
- '--runInBand'
- '--passWithNoTests'
- '--config'
- '@files(jest-config)'
deps:
- '~:source'
- '~:source-upstream'
inputs:
- '@group(src)'
options:
mergeArgs: append
runFromWorkspaceRoot: true
26 changes: 3 additions & 23 deletions examples/content_management_examples/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,6 @@ fileGroups:
- public/**/*.tsx
- server/**/*.ts
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
26 changes: 3 additions & 23 deletions examples/controls_example/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,6 @@ fileGroups:
- public/**/*.tsx
- server/**/*.ts
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
26 changes: 3 additions & 23 deletions examples/embeddable_examples/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,6 @@ fileGroups:
- public/**/*.tsx
- server/**/*.ts
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
26 changes: 3 additions & 23 deletions packages/kbn-capture-oas-snapshot-cli/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,6 @@ fileGroups:
src:
- '**/*.ts'
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
26 changes: 3 additions & 23 deletions packages/kbn-check-prod-native-modules-cli/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,6 @@ fileGroups:
src:
- '**/*.ts'
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
26 changes: 3 additions & 23 deletions packages/kbn-check-saved-objects-cli/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,6 @@ fileGroups:
src:
- '**/*.ts'
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
26 changes: 3 additions & 23 deletions packages/kbn-ci-stats-performance-metrics/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,6 @@ fileGroups:
src:
- '**/*.ts'
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
26 changes: 3 additions & 23 deletions packages/kbn-ci-stats-shipper-cli/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,6 @@ fileGroups:
src:
- '**/*.ts'
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
26 changes: 3 additions & 23 deletions packages/kbn-cli-dev-mode/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,6 @@ fileGroups:
src:
- '**/*.ts'
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
26 changes: 3 additions & 23 deletions packages/kbn-dependency-ownership/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,6 @@ fileGroups:
- '**/*.ts'
- '**/*.tsx'
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
26 changes: 3 additions & 23 deletions packages/kbn-dependency-usage/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,6 @@ fileGroups:
src:
- '**/*.ts'
- '!target/**/*'
tasks:
jest:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jestCI:
command: node
args:
- '--no-experimental-require-module'
- $workspaceRoot/scripts/jest
- '--config'
- $projectRoot/jest.config.js
options:
runFromWorkspaceRoot: true
inputs:
- '@group(src)'
jest-config:
- jest.config.js
tasks: {}
Loading
Loading