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

Disable run --watch #259

Merged
merged 3 commits into from
Feb 1, 2019
Merged

Disable run --watch #259

merged 3 commits into from
Feb 1, 2019

Conversation

guybedford
Copy link
Contributor

This adds a proper error message on the ncc run --watch case, which otherwise has some edge cases around signal handling that need to be worked out to fully support this. Some discussion on this is in #253, and the feature could certainly be developed further if desired.

@codecov-io
Copy link

codecov-io commented Jan 31, 2019

Codecov Report

Merging #259 into master will decrease coverage by 0.05%.
The diff coverage is 16.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #259      +/-   ##
==========================================
- Coverage   74.29%   74.23%   -0.06%     
==========================================
  Files          17       17              
  Lines         883      885       +2     
==========================================
+ Hits          656      657       +1     
- Misses        227      228       +1
Impacted Files Coverage Δ
src/cli.js 59.61% <16.66%> (-0.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a760d2a...940c3b5. Read the comment docs.

}

function errFlagNotCompatible (flag, cmd) {
nccError(`Error: ${flag} flag is not compatible with ncc ${cmd}\n${usage}`);
nccError(`Error: ${flag} flag is not compatible with ncc ${cmd}\n${usage}`, 2);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've extended the use of the 2 exit code here for CLI validation errors, as was provided for the help output already.

I'm not sure who implemented this code in the first place, but it seems a useful separation and helps to work with the code-based tests, but I can certainly remove it too and move this to an integration test rather as well.

@rauchg rauchg merged commit 61dcf6c into master Feb 1, 2019
@rauchg rauchg deleted the run-watch branch February 1, 2019 06:58
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.

3 participants