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

check full task path to see if compilation is needed #12

Merged
merged 4 commits into from
May 21, 2020

Conversation

ryanatkn
Copy link
Owner

@ryanatkn ryanatkn commented May 21, 2020

This improves a heuristic to detect if we want Gro to compile TypeScript when it tries to run a task. Previously it looked for the presence of the build/ directory, and now it looks for the actual target task file in build/. Typically gro dev takes care of all of this for the developer, but this helps cover usage outside of that normal happy path.

PR #11 changed gro clean to remove directories completely to accommodate the old heuristic, rather than simply emptying the directories like it did before. Although that's no longer needed, because it now looks for the specific task file, I think it's still good behavior to fully remove the build/ and dist/ directories. Feels cleaner for sure. 🧹🧹

@ryanatkn ryanatkn marked this pull request as draft May 21, 2020 19:16
@ryanatkn ryanatkn marked this pull request as ready for review May 21, 2020 20:06
@ryanatkn ryanatkn merged commit 24636bc into master May 21, 2020
@ryanatkn ryanatkn deleted the check-task-path branch May 21, 2020 22:18
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

Successfully merging this pull request may close these issues.

2 participants