Skip to content

Commit

Permalink
fix: Add support for Node 4 (#286)
Browse files Browse the repository at this point in the history
Closes #285 
Fixes #236
  • Loading branch information
futagoza authored and tleunen committed Mar 24, 2018
1 parent 04ef195 commit 2d5bf09
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"presets": [
["env", {
"targets": {
"node": 6
"node": 4
},
"loose": true,
"useBuiltIns": true
Expand Down
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
version: 2
jobs:
test_with_node_4:
docker:
- image: circleci/node:4
steps:
- checkout
- run:
name: Install dependencies
command: npm install
- run:
name: Test
command: npm test
test_with_node_6:
docker:
- image: circleci/node:6
Expand Down Expand Up @@ -40,6 +51,7 @@ workflows:
version: 2
test_all:
jobs:
- test_with_node_4
- test_with_node_6
- test_with_node_8
- test_with_node_9
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
environment:
matrix:
- nodejs_version: '4'
- nodejs_version: '6'
- nodejs_version: '8'
- nodejs_version: '9'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/tleunen/babel-plugin-module-resolver.git"
},
"engines": {
"node": ">= 6.0.0"
"node": ">= 4.0.0"
},
"files": ["lib"],
"author": {
Expand Down Expand Up @@ -72,6 +72,7 @@
"*.{js}": ["prettier-eslint --write", "eslint --fix", "git add"]
},
"jest": {
"testEnvironment": "node",
"testRegex": "/test/.*\\.test\\.js$",
"collectCoverageFrom": ["src/**/*.js", "!src/log.js"]
}
Expand Down

0 comments on commit 2d5bf09

Please sign in to comment.