|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
794 bytes
|
| Line | |
|---|
| 1 | # `babel-preset-current-node-syntax`
|
|---|
| 2 |
|
|---|
| 3 | > A Babel preset that enables parsing of proposals supported by the current Node.js version.
|
|---|
| 4 |
|
|---|
| 5 | ## Installation
|
|---|
| 6 |
|
|---|
| 7 | If you are using yarn:
|
|---|
| 8 | ```
|
|---|
| 9 | yarn add --dev babel-preset-current-node-syntax
|
|---|
| 10 | ```
|
|---|
| 11 |
|
|---|
| 12 | If you are using npm:
|
|---|
| 13 | ```
|
|---|
| 14 | npm install --save-dev babel-preset-current-node-syntax
|
|---|
| 15 | ```
|
|---|
| 16 |
|
|---|
| 17 | ## Contributing
|
|---|
| 18 |
|
|---|
| 19 | PRs are welcome! The codebase is so small that I didn't setup a linter, but try
|
|---|
| 20 | to match the style of the existing code.
|
|---|
| 21 |
|
|---|
| 22 | You can run tests with the following command:
|
|---|
| 23 | ```
|
|---|
| 24 | yarn node test/index.js
|
|---|
| 25 | ```
|
|---|
| 26 |
|
|---|
| 27 | The `test/fixtures.json` file contains a bunch of syntax tests, alongside with
|
|---|
| 28 | the minimum supported node version for each of them. Babel should throw on
|
|---|
| 29 | older versions, without support for that given syntax.
|
|---|
| 30 | All the tests are run using `@babel/parser@7.0.0`.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.