-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
docs(contributing): move to docs directory [skip ci] #735
Conversation
+ Add docs about fixtures testing + Add some getting-started docs
@@ -0,0 +1,27 @@ | |||
# Debugging | |||
|
|||
In your project, if you find that there is a bug that appears ONLY when you use BabelMinify, it's most likely that there is a bug in BabelMinify and you should definitely report it. Here are some guidelines that might help you drill down the issue. If it doesn't help you, you can of course create a minimal repro project with the bug and report it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we extend this and add like
when you use BabelMinify standalone or babel-minify as a preset in babelrc
docs/debugging.md
Outdated
|
||
If you get a syntax error at compile time, then it could be a few things: | ||
|
||
1. The parser itself doesn't handle the syntax being used (a [babylon](https://github.com/babel/babylon) bug). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Babylon is now inside the monorepo.
docs/debugging.md
Outdated
|
||
1. The parser itself doesn't handle the syntax being used (a [babylon](https://github.com/babel/babylon) bug). | ||
2. The code is actually invalid syntax. | ||
3. You didn't turn on the relevant Babel plugin for that syntax (if experimental). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be in order by probability? (2-3-1)
|
||
## Lint | ||
|
||
This project uses [prettier](https://github.com/prettier/prettier) for formatting code and [eslint](https://github.com/eslint/eslint) for other linting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint :)
docs/tests.md
Outdated
- fixtures/ | ||
- fixture-name/ | ||
- actual.js # source | ||
- expected.js # minify transforms applied (except whitespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and comment removal
a559124
to
8c0992e
Compare
No description provided.