Back to Moon

Migrate

website/docs/__partials__/migrate/go/migrate.mdx

2.4.0643 B
Original Source
yaml
language: 'go'

fileGroups:
  sources:
    - 'cmd/**/*'
    - 'include/**/*'
    - 'pkg/**/*'

tasks:
  build:
    command: 'go build -o @out(0)'
    inputs:
      - '@globs(sources)'
    outputs:
      - 'bin'
  dev:
    command: 'go run'
    inputs:
      - '@globs(sources)'
    preset: 'server'
  format:
    command: 'go fmt'
    inputs:
      - '@globs(sources)'
  lint:
    command: 'staticcheck'
    inputs:
      - '@globs(sources)'
      - 'staticcheck.conf'
  test:
    command: 'go test'
    inputs:
      - '@globs(sources)'
  vet:
    command: 'go vet'
    inputs:
      - '@globs(sources)'