This tool will help checking the project code, executing scripts based on file changed.
It works both with any diff or git status
git diff | project-check
git status | project-check
Golang should be already installed. You can install project-check as follows:
go get -u github.com/doppiogancio/project-check
Go to the project directory
cd my-project
Create the configuration file
touch check.config.yaml
Paste the following text
configurations:
- name: Catalog Client CS
directory: catalog-client/
regex: "catalog-client/.*"
command:
name: make
arg: cs-check
- name: WILLIAM CS
directory: william/
regex: "william/.*"
command:
name: make
arg: cs-check
The check.config.yaml can contain any number of configurations. Each configuration needs:
- a unique name
- a directory path relative to the project root where the command will be executed.
- a regex to determine if any file was updated/created/deleted.
- a command to executed in case of updated/created/deleted files.