GitXplorerGitXplorer
o

bbreloader

public
0 stars
0 forks
3 issues

Commits

List of commits on branch master.
Unverified
ed036fd81915bb5539a55bb9040098eb58ba6749

Connecting build output to Builder.Run output

oobject88 committed 8 years ago
Unverified
31ff24fe97fa562761cff9042e4be9ee675a8070

Typo

oobject88 committed 8 years ago
Unverified
5e9ef160c7490751f0d5c097ed05ad2d4bbe53a9

Testing for args

oobject88 committed 8 years ago
Unverified
795f68544ae67ffa4940a81f1db3e7c32b3c3ef3

Adding error to build output

oobject88 committed 8 years ago
Unverified
1cbe9e3cd369b79e4ca98ca0501c792a029ba8a0

Merge pull request #1 from object88/refactor_for_commands

oobject88 committed 8 years ago
Unverified
cc1e5aefb6c1faf1f6178272ded86773506d4123

Restart after build

oobject88 committed 8 years ago

README

The README file for this repository.

Reloader

Reloader is a local continuous build and integration tool.

Reloader watches your source code for changes. When a change is detected, it will rebuild the code and runs either the tests or the project.

Reloader is written with Golang projects in mind, but can be adapted to work for other languages or toolsets by overwriting certain default configurations.

Configuration file example:

{
  "projects": [{
    "root": ".",
    "target": "./bin/bbreloader",
    "build": {
      "pre-build-steps": [],
      "args": "",
      "post-build-steps": [{
        "command": "chmod",
        "args": ["744", "./bin/bbreloader"]
      }, {
        "command": "codesign",
        "args": "-s $CERT ./bin/bbreloader",
      }]
    },
    "test": {
      "args": "",
      "restart-trigger-glob": "*_test.go",
    },
    "run": {
      "args": "",
      "retain": true,
      "rebuild-trigger-glob": "**/*.go, !**/*_test.go",
      "restart-trigger-glob": "*.json",
    },
  }]
}

projects

An array of projects

Project

  • root
  • target (optional)
  • build
  • test
  • run

Examples

Rebuild and run tests

Command: rebuilder test

{
  "projects": [{}]
}

Rebuild and restart a server when any .go file changes

{
  "projects": [{
    "target": "./bin/myservice",
    "run": {
      "retain": true,
      "rebuild-trigger-glob": "**/*.go",
    },
  }]
}

Reloader is not...

A substitute for npm, grunt, gulp, or other multi-purpose tools. Reloader will not install your dependencies, clean up your artifacts, or commit your code to a source code repository.

What other tools are there?

  • watcher
  • gradle / grunt / gulp / npm
  • Whatever that tool was in the gopher meetup