diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..10266dd --- /dev/null +++ b/.babelrc @@ -0,0 +1,9 @@ +{ + "presets": [ + "env" + ], + "plugins": [ + "transform-regenerator", + "transform-object-rest-spread" + ] +} diff --git a/.gitignore b/.gitignore index 3d019d9..68d4541 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ source/images todo package-lock.json .env +dist/ diff --git a/package.json b/package.json index f87fe86..8b526d9 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,16 @@ { "name": "bfx-api-node-util", - "version": "1.0.0", + "version": "1.0.1", "description": "Utilities for the Bitfinex node API", "engines": { "node": ">=7" }, - "main": "index.js", + "main": "./dist/index.js", "scripts": { "lint": "standard", "test": "npm run lint && npm run unit", - "unit": "NODE_ENV=test mocha -b --recursive" + "unit": "NODE_ENV=test mocha -b --recursive", + "build": "babel -q ./index.js -d ./dist && babel -q ./lib -d ./dist/lib && copy package.json dist" }, "repository": { "type": "git", @@ -39,6 +40,10 @@ "standard": "^10.0.2" }, "dependencies": { - "bignumber.js": "^6.0.0" + "babel-plugin-transform-object-rest-spread": "^6.26.0", + "babel-plugin-transform-regenerator": "^6.26.0", + "babel-preset-env": "^1.7.0", + "bignumber.js": "^6.0.0", + "copy": "^0.3.2" } }