Skip to content

Commit

Permalink
breaking: Rename .moon/project.yml to .moon/tasks.yml. (#558)
Browse files Browse the repository at this point in the history
* Rename files.

* More renames.

* Rename config struct.

* Rename vars.

* Random fixes.

* Update tests.

* Update docs.

* Clean up http mocks.

* Add temp project file.
  • Loading branch information
milesj committed Jan 30, 2023
1 parent 7306b20 commit fe64e38
Show file tree
Hide file tree
Showing 90 changed files with 1,281 additions and 1,066 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
paths:
- .github/workflows/moon.yml
- .moon/workspace.yml
- .moon/tasks.yml
- .moon/toolchain.yml
- .moon/project.yml
- crates/**
- packages/**
- website/**
Expand Down
94 changes: 2 additions & 92 deletions .moon/project.yml
Original file line number Diff line number Diff line change
@@ -1,92 +1,2 @@
$schema: '../website/static/schemas/global-project.json'

fileGroups:
configs:
- '*.{js,json}'
sources:
- 'src/**/*'
- 'types/**/*'
tests:
- 'tests/**/*'

tasks:
build:
command:
'packemon build --addFiles --addExports --declaration --declarationConfig tsconfig.build.json'
env:
NODE_ENV: 'production'
inputs:
- '@globs(sources)'
- 'package.json'
- 'tsconfig.json'
- 'tsconfig.build.json'
- '/tsconfig.options.json'
outputs:
- 'cjs'
- 'dts'

format:
command: 'prettier'
args:
- '--check'
- '--config'
- '@in(3)'
- '--ignore-path'
- '@in(2)'
- '--no-error-on-unmatched-pattern'
inputs:
- '@globs(sources)'
- '@globs(tests)'
- '/.prettierignore'
- '/prettier.config.js'
options:
affectedFiles: true

lint:
command: 'eslint'
args:
- '--cache'
- '--cache-location'
- './.eslintcache'
- '--color'
- '--ext'
- '.js,.ts,.tsx'
- '--fix'
- '--ignore-path'
- '@in(5)'
- '--exit-on-fatal-error'
- '--no-error-on-unmatched-pattern'
- '--report-unused-disable-directives'
inputs:
- '@globs(sources)'
- '@globs(tests)'
- '*.js'
- '.eslintrc.js'
- 'tsconfig.json'
- '/.eslintignore'
- '/.eslintrc.js'
- '/tsconfig.eslint.json'
- '/tsconfig.options.json'
options:
affectedFiles: true

test:
command: 'jest'
args:
- '--cache'
- '--color'
- '--preset'
- 'jest-preset-moon'
- '--passWithNoTests'
inputs:
- '@globs(sources)'
- '@globs(tests)'
- 'jest.config.js'

typecheck:
command: 'tsc --build --verbose'
inputs:
- '@globs(sources)'
- '@globs(tests)'
- 'tsconfig.json'
- '/tsconfig.options.json'
# Temporary until v0.23 is released!
extends: './tasks.yml'
92 changes: 92 additions & 0 deletions .moon/tasks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
$schema: '../website/static/schemas/tasks.json'

fileGroups:
configs:
- '*.{js,json}'
sources:
- 'src/**/*'
- 'types/**/*'
tests:
- 'tests/**/*'

tasks:
build:
command:
'packemon build --addFiles --addExports --declaration --declarationConfig tsconfig.build.json'
env:
NODE_ENV: 'production'
inputs:
- '@globs(sources)'
- 'package.json'
- 'tsconfig.json'
- 'tsconfig.build.json'
- '/tsconfig.options.json'
outputs:
- 'cjs'
- 'dts'

format:
command: 'prettier'
args:
- '--check'
- '--config'
- '@in(3)'
- '--ignore-path'
- '@in(2)'
- '--no-error-on-unmatched-pattern'
inputs:
- '@globs(sources)'
- '@globs(tests)'
- '/.prettierignore'
- '/prettier.config.js'
options:
affectedFiles: true

lint:
command: 'eslint'
args:
- '--cache'
- '--cache-location'
- './.eslintcache'
- '--color'
- '--ext'
- '.js,.ts,.tsx'
- '--fix'
- '--ignore-path'
- '@in(5)'
- '--exit-on-fatal-error'
- '--no-error-on-unmatched-pattern'
- '--report-unused-disable-directives'
inputs:
- '@globs(sources)'
- '@globs(tests)'
- '*.js'
- '.eslintrc.js'
- 'tsconfig.json'
- '/.eslintignore'
- '/.eslintrc.js'
- '/tsconfig.eslint.json'
- '/tsconfig.options.json'
options:
affectedFiles: true

test:
command: 'jest'
args:
- '--cache'
- '--color'
- '--preset'
- 'jest-preset-moon'
- '--passWithNoTests'
inputs:
- '@globs(sources)'
- '@globs(tests)'
- 'jest.config.js'

typecheck:
command: 'tsc --build --verbose'
inputs:
- '@globs(sources)'
- '@globs(tests)'
- 'tsconfig.json'
- '/tsconfig.options.json'
22 changes: 14 additions & 8 deletions .yarn/versions/8ea39e72.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
releases:
"@moonrepo/cli": minor
"@moonrepo/core-linux-arm64-gnu": minor
"@moonrepo/core-linux-arm64-musl": minor
"@moonrepo/core-linux-x64-gnu": minor
"@moonrepo/core-linux-x64-musl": minor
"@moonrepo/core-macos-arm64": minor
"@moonrepo/core-macos-x64": minor
"@moonrepo/core-windows-x64-msvc": minor
'@moonrepo/cli': minor
'@moonrepo/core-linux-arm64-gnu': minor
'@moonrepo/core-linux-arm64-musl': minor
'@moonrepo/core-linux-x64-gnu': minor
'@moonrepo/core-linux-x64-musl': minor
'@moonrepo/core-macos-arm64': minor
'@moonrepo/core-macos-x64': minor
'@moonrepo/core-windows-x64-msvc': minor
'@moonrepo/types': patch

declined:
- '@moonrepo/report'
- '@moonrepo/runtime'
- 'website'
Loading

0 comments on commit fe64e38

Please sign in to comment.