Skip to content

Commit

Permalink
Merge pull request #3 from evangelion1204/2-backwards-compatibility-0…
Browse files Browse the repository at this point in the history
….12.x

Adjusted coverage, supported versions and scripts.
  • Loading branch information
evangelion1204 committed Jan 5, 2016
2 parents 5dc7b51 + 2c55373 commit 8e88a15
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
9 changes: 8 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
"ignore": [
"node_modules/*"
],
"plugins": ["transform-es2015-modules-commonjs", "transform-es2015-parameters"]
"plugins": [
"transform-es2015-modules-commonjs",
"transform-es2015-parameters",
"babel-plugin-transform-es2015-block-scoping",
"babel-plugin-check-es2015-constants",
"babel-plugin-transform-es2015-classes",
"babel-plugin-transform-es2015-template-literals"
]
}
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
language: node_js
node_js:
- "5.3"
- "5.2"
- "5.1"
- "5.0"
install: npm install --dev
- "0.12"
- "1"
- "2"
- "3"
- "4"
- "5"
install: npm install
script: npm test
after_script: npm run coveralls
after_script: npm install coveralls && npm run coverage && cat ./coverage/lcov.info | coveralls
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "radix-tree",
"version": "0.1.2",
"version": "0.1.3",
"description": "Node.js version of a radix tree usable for routers or url path based storage.",
"main": "index.js",
"engines" : {
"node" : ">=4.0.0"
"engines": {
"node": ">=0.12"
},
"scripts": {
"prepublish": "babel src --out-dir lib",
"predistribute": "babel src --out-dir lib",
"test": "babel-node ./node_modules/.bin/_mocha",
"coverage": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha",
"coveralls": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha && cat ./coverage/lcov.info | coveralls",
"bench": "babel-node --harmony benchmark/joined.js"
"bench": "babel-node --harmony benchmark/joined.js",
"distribute": "npm publish"
},
"repository": {
"type": "git",
Expand All @@ -23,16 +23,16 @@
"url": "https://github.com/evangelion1204/radix-tree/issues"
},
"homepage": "https://github.com/evangelion1204/radix-tree#readme",
"dependencies": {
"lodash": "^3.10.1"
},
"devDependencies": {
"babel-cli": "^6.3.17",
"babel-plugin-check-es2015-constants": "^6.3.13",
"babel-plugin-transform-es2015-block-scoping": "^6.3.13",
"babel-plugin-transform-es2015-classes": "^6.3.15",
"babel-plugin-transform-es2015-modules-commonjs": "^6.3.16",
"babel-plugin-transform-es2015-parameters": "^6.3.26",
"babel-plugin-transform-es2015-template-literals": "^6.3.13",
"benchmark": "^2.0.0",
"chai": "^3.4.1",
"coveralls": "^2.11.6",
"isparta": "^4.0.0",
"mocha": "^2.3.4",
"sinon": "^1.17.2",
Expand Down

0 comments on commit 8e88a15

Please sign in to comment.