Skip to content

Commit

Permalink
Update packages and Babel config; Ignore files; Lint fix;
Browse files Browse the repository at this point in the history
  • Loading branch information
flexdinesh committed Mar 6, 2018
1 parent 5421ab5 commit d15d8ea
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 21 deletions.
20 changes: 15 additions & 5 deletions .babelrc
@@ -1,6 +1,16 @@
{
"presets": ["env"],
"plugins": [
"add-module-exports"
]
}
"env": {
"development": {
"presets": ["env"],
"plugins": [
"add-module-exports"
]
},
"production": {
"presets": ["env", "minify"],
"plugins": [
"add-module-exports"
]
}
}
}
2 changes: 1 addition & 1 deletion .eslintignore
@@ -1 +1 @@
iamnotadir
examples
6 changes: 3 additions & 3 deletions .eslintrc
Expand Up @@ -4,9 +4,9 @@
"env": {
"mocha": true
},
rules: {
"rules": {
"comma-dangle": ["error", "only-multiline"],
"no-underscore-dangle": off,
"no-param-reassign": off
"no-underscore-dangle": "off",
"no-param-reassign": "off"
}
}
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -44,3 +44,4 @@ lib

# npm package lock
package-lock.json
yarn.lock
28 changes: 28 additions & 0 deletions .npmignore
@@ -0,0 +1,28 @@
*.log
npm-debug.log*

# Coverage directory used by tools like istanbul
coverage
.nyc_output

# Dependency directories
node_modules

# Lib
lib

# npm package lock
package-lock.json
yarn.lock

# project files
src
test
examples
CHANGELOG.md
.travis.yml
.editorconfig
.eslintignore
.eslintrc
.babelrc
.gitignore
1 change: 0 additions & 1 deletion examples/example.js
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
const axios = require('axios');
const axiosRetryInterceptor = require('axios-retry-interceptor');

Expand Down
5 changes: 0 additions & 5 deletions examples/index.js

This file was deleted.

14 changes: 8 additions & 6 deletions package.json
Expand Up @@ -5,12 +5,13 @@
"main": "./lib/index.js",
"scripts": {
"clean": "rimraf lib",
"test": "npm run cover",
"test:only": "cross-env BABEL_ENV=commonjs mocha --require babel-core/register --require babel-polyfill --recursive",
"test": "npm run lint && npm run cover",
"test:only": "mocha --require babel-core/register --require babel-polyfill --recursive",
"test:prod": "cross-env BABEL_ENV=production npm run test",
"test:watch": "npm test -- --watch",
"cover": "cross-env BABEL_ENV=commonjs istanbul cover _mocha -- --require babel-core/register --require babel-polyfill --recursive",
"cover": "istanbul cover _mocha -- --require babel-core/register --require babel-polyfill --recursive",
"lint": "eslint src test",
"build": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
"build": "cross-env BABEL_ENV=production babel src --out-dir lib",
"prepublish": "npm run clean && npm run lint && npm run test && npm run build"
},
"files": [
Expand All @@ -35,13 +36,14 @@
},
"homepage": "https://github.com/flexdinesh/axios-retry-interceptor#readme",
"devDependencies": {
"axios": "^0.17.1",
"axios": "^0.18.0",
"babel": "^6.23.0",
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.1",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-minify": "^0.3.0",
"chai": "^4.1.2",
"chalk": "^2.3.1",
"cross-env": "^5.1.3",
Expand All @@ -56,6 +58,6 @@
"rimraf": "^2.6.2"
},
"dependencies": {
"typy": "^1.4.3"
"typy": "^2.0.0"
}
}

0 comments on commit d15d8ea

Please sign in to comment.