Merge branch 'updating-babel-config'

This commit is contained in:
Justin 2018-06-27 12:57:29 -04:00
commit 32e32fa5ec
5 changed files with 495 additions and 272 deletions

View File

@ -8,5 +8,18 @@
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread"
]
],
"env": {
"es5": {
"presets": [
["@babel/preset-env", {
"useBuiltIns": false,
}]
],
"plugins": [
"@babel/plugin-transform-async-to-generator",
"@babel/plugin-transform-runtime",
]
}
}
}

View File

@ -1,12 +0,0 @@
{
"presets": [
["@babel/preset-env", {
"useBuiltIns": false,
}]
],
"plugins": [
"@babel/plugin-transform-async-to-generator",
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-object-rest-spread",
]
}

View File

@ -1,5 +1,9 @@
# Changelog
[3.4.4](https://github.com/jdalrymple/node-gitlab/tags/3.4.4) (2018-6-26)
------------------
- Updating babel configuration thanks to a prompt from [bodtx](https://github.com/bodtx) and suggestions from [Logan Smyth](loganfsmyth)
[3.4.3](https://github.com/jdalrymple/node-gitlab/tags/3.4.3) (2018-6-25)
------------------
- Updating packages

730
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "gitlab",
"version": "3.4.3",
"version": "3.4.4",
"description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.",
"main": "dist/latest/index.js",
"engines": {
@ -8,8 +8,8 @@
},
"scripts": {
"build:clean": "rimraf -rf dist && mkdir -p dist",
"build:es6": "babel src -d dist/latest --config-file=./.babelrc",
"build:es5": "babel src -d dist/es5 --config-file=./.babelrc-es5",
"build:es6": "babel src -d dist/latest",
"build:es5": "babel src -d dist/es5 --env-name es5",
"build": "npm run build:clean && npm run build:es6 && npm run build:es5",
"lint": "node_modules/.bin/eslint ./src ./test",
"test:bundles": "jest test/tests/bundles",