File tree 4 files changed +503
-342
lines changed
4 files changed +503
-342
lines changed Original file line number Diff line number Diff line change 1
1
sudo : false
2
2
language : node_js
3
3
node_js :
4
+ - ' 10'
4
5
- ' 8'
5
6
- ' 6'
6
- - ' 4'
Original file line number Diff line number Diff line change 7
7
8
8
* Issues with the output should be reported on the Babel [ issue tracker] ( https://github.com/babel/babel/issues ) .*
9
9
10
-
11
10
## Install
12
11
13
12
```
14
13
$ yarn add --dev grunt-babel @babel/core @babel/preset-env
15
14
```
16
15
17
-
18
16
## Usage
19
17
20
18
``` js
21
19
require (' load-grunt-tasks' )(grunt); // npm install --save-dev load-grunt-tasks
22
20
23
21
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
+ }
35
33
});
36
34
37
35
grunt .registerTask (' default' , [' babel' ]);
38
36
```
39
37
40
-
41
38
## Options
42
39
43
40
See the Babel [ options] ( https://babeljs.io/docs/usage/options ) , except for ` filename ` which is handled for you.
44
41
45
-
46
42
## License
47
43
48
44
MIT © [ Sindre Sorhus] ( https://sindresorhus.com )
Original file line number Diff line number Diff line change 10
10
"url" : " sindresorhus.com"
11
11
},
12
12
"engines" : {
13
- "node" : " >=4 "
13
+ "node" : " >=6 "
14
14
},
15
15
"scripts" : {
16
16
"lint" : " eslint ." ,
34
34
" compiler"
35
35
],
36
36
"peerDependencies" : {
37
- "@babel/core" : " ^7.0.0-0 " ,
37
+ "@babel/core" : " ^7.0.0" ,
38
38
"grunt" : " >=0.4.0"
39
39
},
40
40
"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" ,
43
43
"babel-eslint" : " ^8.0.0" ,
44
44
"eslint" : " ^4.19.0" ,
45
45
"eslint-config-babel" : " ^7.0.2" ,
You can’t perform that action at this time.
0 commit comments