This package consumes the following services:
atom-tcr
A simple plugin to automate the
test && commit || revert
workflow in atom.
Installation
apm install atom-tcr
Usage
Save a JSON file named .tcr in your project directory, looking something like:
{
"test": "node test.js",
"commit": "git add -A && git commit -am working",
"revert": "git reset --hard"
}
When the above configuration file is present, and any file is saved in your project:
- The
testcommand is executed. - When
testterminates with exit code 0,commitis executed. - When
testterminates with any other exit coderevertis executed.
In either case, stdout and stderr are written to a file called ./tcr-feedback