added transpilation targeting node 4
This commit is contained in:
parent
0751ce466c
commit
b393d0da67
@ -0,0 +1 @@
|
||||
/lib-es5
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
*.*~
|
||||
node_modules
|
||||
npm-debug.log
|
||||
/lib-es5
|
||||
|
||||
4
.npmignore
Normal file
4
.npmignore
Normal file
@ -0,0 +1,4 @@
|
||||
.eslintignore
|
||||
.gitignore
|
||||
/lib
|
||||
/test
|
||||
19
package.json
19
package.json
@ -3,15 +3,19 @@
|
||||
"version": "0.0.2",
|
||||
"description": "Base binaries for pkg",
|
||||
"readme": "",
|
||||
"main": "lib/index.js",
|
||||
"bin": "lib/bin.js",
|
||||
"main": "lib-es5/index.js",
|
||||
"bin": "lib-es5/bin.js",
|
||||
"babel": {
|
||||
"plugins": [
|
||||
"transform-async-to-generator",
|
||||
"transform-es2015-modules-commonjs"
|
||||
"transform-runtime"
|
||||
],
|
||||
"presets": [
|
||||
"es2015"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-runtime": "6.11.6",
|
||||
"expand-template": "1.0.2",
|
||||
"fs-promise": "0.5.0",
|
||||
"minimist": "1.2.0",
|
||||
@ -23,14 +27,17 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "0.16.0",
|
||||
"babel-cli": "6.11.4",
|
||||
"babel-plugin-transform-async-to-generator": "6.8.0",
|
||||
"babel-plugin-transform-es2015-modules-commonjs": "6.8.0",
|
||||
"babel-plugin-transform-runtime": "6.12.0",
|
||||
"babel-preset-es2015": "6.13.2",
|
||||
"babel-register": "6.9.0",
|
||||
"klopov-eslint": "0.6.2"
|
||||
},
|
||||
"scripts": {
|
||||
"bin": "node -r babel-register lib/bin.js",
|
||||
"upload": "node -r babel-register lib/upload.js",
|
||||
"babel": "babel lib --out-dir lib-es5",
|
||||
"bin": "node lib-es5/bin.js",
|
||||
"upload": "node lib-es5/upload.js",
|
||||
"lint": "klopov-eslint . || true",
|
||||
"test": "ava"
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user