Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update husky tasks to check for changes in src #1

Open
FranciscoG opened this issue Oct 21, 2019 · 1 comment
Open

Update husky tasks to check for changes in src #1

FranciscoG opened this issue Oct 21, 2019 · 1 comment

Comments

@FranciscoG
Copy link
Owner

add a check (in Bash) to see if src files were updated before running the npm tasks
https://github.com/FranciscoG/DubPlus/blob/beta/package.json#L21

in bash pseudo code, something like this

$. git status | grep for "src" in piped input | if not empty, run tasks
@FranciscoG
Copy link
Owner Author

git status | grep "src" && npm test... || echo "src not updated, skipping tasks"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant