项目作者: unchartedworks

项目描述 :
Execute build script automatically when any specified files in working directory are modified.
高级语言: Swift
项目地址: git://github.com/unchartedworks/autobuild.git
创建时间: 2017-07-16T11:52:52Z
项目社区:https://github.com/unchartedworks/autobuild

开源协议:MIT License

下载


autobuild

Execute build script automatically when any specified files in working directory are modified.

Examples

autobuild -s ./playground.sh -t "{red}"
screen shot 2017-10-31 at 09 46 08

autobuild -s ./build.sh -t "{swift}"

screen shot 2017-10-30 at 11 03 18

Installation

Prerequisites

  • macOS 10.13
  • Xcode 9+ & Xcode command line tools
  • fswatch
    1. brew install fswatch

Install

  1. git clone https://github.com/unchartedworks/autobuild.git
  2. cd autobuild
  3. ./build.sh

Usage

  1. Usage: autobuild [options]
  2. -c, --chdir:
  3. Change working directory before any other operation
  4. -s, --script:
  5. Build script path
  6. -t, --types:
  7. file extensions to be monitored, such as "{swift,m,h}".
  8. If there is no file extensions specified, all kinds of files in working directory will be monitored.
  9. -h, --help:
  10. print usage
  11. autobuild (-c|--chdir workingdirectory) (-s|--script scriptpath) (-t|--types fileextensions)
  12. Execute build script automatically when any specified files in working directory are modified.