Skip to content

Commit 9670448

Browse files
sibiraj-sloganfsmyth
authored andcommitted
Babel 7: Update babel devDependencies to stable version + drop nodejs 4 (#93)
* chore: update babel to stable version * ci: drop nodejs 4 support * ci: add nodejs 10 support * chore: update minimum nodejs requirement in package.json * docs: update README.md
1 parent 930ba7d commit 9670448

File tree

4 files changed

+503
-342
lines changed

4 files changed

+503
-342
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
sudo: false
22
language: node_js
33
node_js:
4+
- '10'
45
- '8'
56
- '6'
6-
- '4'

README.md

+11-15
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,38 @@
77
88
*Issues with the output should be reported on the Babel [issue tracker](https://github.com/babel/babel/issues).*
99

10-
1110
## Install
1211

1312
```
1413
$ yarn add --dev grunt-babel @babel/core @babel/preset-env
1514
```
1615

17-
1816
## Usage
1917

2018
```js
2119
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
2220

2321
grunt.initConfig({
24-
babel: {
25-
options: {
26-
sourceMap: true,
27-
presets: ['@babel/preset-env']
28-
},
29-
dist: {
30-
files: {
31-
'dist/app.js': 'src/app.js'
32-
}
33-
}
34-
}
22+
babel: {
23+
options: {
24+
sourceMap: true,
25+
presets: ['@babel/preset-env']
26+
},
27+
dist: {
28+
files: {
29+
'dist/app.js': 'src/app.js'
30+
}
31+
}
32+
}
3533
});
3634

3735
grunt.registerTask('default', ['babel']);
3836
```
3937

40-
4138
## Options
4239

4340
See the Babel [options](https://babeljs.io/docs/usage/options), except for `filename` which is handled for you.
4441

45-
4642
## License
4743

4844
MIT © [Sindre Sorhus](https://sindresorhus.com)

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "sindresorhus.com"
1111
},
1212
"engines": {
13-
"node": ">=4"
13+
"node": ">=6"
1414
},
1515
"scripts": {
1616
"lint": "eslint .",
@@ -34,12 +34,12 @@
3434
"compiler"
3535
],
3636
"peerDependencies": {
37-
"@babel/core": "^7.0.0-0",
37+
"@babel/core": "^7.0.0",
3838
"grunt": ">=0.4.0"
3939
},
4040
"devDependencies": {
41-
"@babel/core": "^7.0.0-beta.42",
42-
"@babel/preset-env": "^7.0.0-beta.42",
41+
"@babel/core": "^7.0.0",
42+
"@babel/preset-env": "^7.0.0",
4343
"babel-eslint": "^8.0.0",
4444
"eslint": "^4.19.0",
4545
"eslint-config-babel": "^7.0.2",

0 commit comments

Comments
 (0)