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

Added doc for Include ignored files #2146

Closed
wants to merge 1 commit into from
Closed

Added doc for Include ignored files #2146

wants to merge 1 commit into from

Conversation

rajasekarm
Copy link
Member

Added information for Include ignored flag in CLI.

babel/babel#10831

@netlify
Copy link

netlify bot commented Dec 17, 2019

Deploy preview for babel ready!

Built with commit a07d18d

https://deploy-preview-2146--babel.netlify.com


```sh
npx babel src --out-dir lib --ignore "src/**/*.spec.js","src/**/*.test.js"
```

### Include ignored files
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this addition to the versioned doc since --include-ignore is new?

@@ -100,15 +100,23 @@ npx babel src --out-file script-compiled.js

### Ignore files

Ignore spec and test files
Given files will be ignored from compilation and will not moved to destination folder.
Copy link
Member

Choose a reason for hiding this comment

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

One tricky thing with this page, is that these are basically "recipes" for doing common things as opposed to a full detailed list of options.

Should we just keep the original text to match and maybe add a more noticeable section above this that links to options that replaces the easily missed "Advanced Usage" section at the bottom?

@rajasekarm
Copy link
Member Author

rajasekarm commented Dec 17, 2019

Closing this PR, Since --include-ignored flag will come under advance usage section.

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.

None yet

2 participants