mbtproject / mbt

The most flexible build tool for monorepo
https://github.com/mbtproject
Apache License 2.0
219 stars 35 forks source link

[feat] Default build command #108

Closed ojizero closed 6 years ago

ojizero commented 6 years ago

We can now define a single default build command to run on any system if the system doesn't have a specific command defined in the spec.

name: example-app
build:
  default:
    cmd: ./generic-script.sh
  windows:
    cmd: powershell
    args:
      - "-ExecutionPolicy"
      - "Bypass"
      - "-File"
      - ".\\build.ps1"

The above example spec would run the generic script on all OSs except on windows where it would the custom defined script

Closes #84

buddhike commented 6 years ago

LGTM. Thank you very much!!!