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

Upgrade to Babel7 #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["env"]
"presets": ["@babel/preset-env"]
}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

### Getting Started

First we'll install `babel-cli` and `babel-preset-env`.
First we'll install `@babel/cli`, `@babel/preset-env` and `@babel/core`.

```shell
$ npm install --save-dev babel-cli babel-preset-env
$ npm install --save-dev @babel/cli @babel/preset-env @babel/core
```

Then we'll create a `.babelrc` file for configuring babel.
Expand All @@ -18,7 +18,7 @@ This will host any options we might want to configure `babel` with.

```json
{
"presets": ["env"]
"presets": ["@babel/preset-env"]
}
```

Expand Down Expand Up @@ -183,10 +183,10 @@ describe('Example Node Server', () => {
});
```

Next, install `babel-register` for the require hook.
Next, install `@babel/register` for the require hook.

```shell
$ npm install --save-dev babel-register
$ npm install --save-dev @babel/register
```

Then we can add an `npm test` script.
Expand All @@ -196,7 +196,7 @@ Then we can add an `npm test` script.
"start": "nodemon lib/index.js --exec babel-node",
"build": "babel lib -d dist",
"serve": "node dist/index.js",
+ "test": "mocha --require babel-register"
+ "test": "mocha --require @babel/register"
}
```

Expand Down
Loading