Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Add watcher that will run tests and lint #616

Merged
merged 2 commits into from
Oct 30, 2018

Conversation

IllusionMH
Copy link
Contributor

@IllusionMH IllusionMH commented Oct 30, 2018

This PR is continues efforts to replace Grunt with npm scripts #484 and adds watcher that wasn't implemented in scope of #584.

New script watch:run-test added that will watch compiled .js files in dist, test-data and test folders content and run tests and lint tasks for repo.

Custom implementation used instead of chokidar-cli because later doesn't wait before command will be finished before starting new one, which might lead to running 2-3 parallel Mocha tests.

Possible future improvements:

Also contains fixes for inconsistent quotes in other JS files. Remove from this PR?

Copy link

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look great, thanks! Will comment with followups.

@JoshuaKGoldberg JoshuaKGoldberg merged commit ea3f12b into microsoft:master Oct 30, 2018
@JoshuaKGoldberg
Copy link

Remove from this PR?

Normally I'd say yes, but since they're in the same area and the changes aren't functional, seems fine for now.

Would you mind filing issues for followups you'd like to see? I have a few ideas but don't want to trample over yours first 🙂.

@IllusionMH IllusionMH deleted the watch-and-test-484 branch November 4, 2018 23:30
@JoshuaKGoldberg JoshuaKGoldberg added this to the 6.0.0-beta0 milestone Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants