Skip to content

Commit

Permalink
Removed support for Node < 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ascartabelli committed Mar 3, 2017
1 parent bbca0ec commit 7bc5ae4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 24 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ node_js:
- "5"
- "4"
- "4.2"
- "0.12"
- "0.11"
after_script:
- npm run coveralls
4 changes: 2 additions & 2 deletions dist/lamb.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @overview lamb - A lightweight, and docile, JavaScript library to help embracing functional programming.
* @author Andrea Scartabelli <andrea.scartabelli@gmail.com>
* @version 0.52.0-alpha.3
* @version 0.52.0-alpha.4
* @module lamb
* @license MIT
* @preserve
Expand All @@ -17,7 +17,7 @@
* @private
* @type String
*/
lamb._version = "0.52.0-alpha.3";
lamb._version = "0.52.0-alpha.4";

// alias used as a placeholder argument for partial application
var _ = lamb;
Expand Down
4 changes: 2 additions & 2 deletions dist/lamb.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lamb.min.js.map

Large diffs are not rendered by default.

20 changes: 6 additions & 14 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var gulp = require("gulp");
var pkg = require("./package.json");
var concat = require("gulp-concat");
var footer = require("gulp-footer");
var gutil = require("gulp-util");
var header = require("gulp-header");
var indent = require("gulp-indent");
var istanbul = require("gulp-istanbul");
Expand All @@ -31,20 +30,13 @@ var scripts = [
];

function lint () {
// eslint supports node >= 4
if (parseInt(process.versions.node, 10) >= 4) {
// isolated because of shelljs, again
var eslint = require("gulp-eslint");
// isolated because of shelljs, again
var eslint = require("gulp-eslint");

return gulp.src("./dist/lamb.js")
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
} else {
return gutil.log(gutil.colors.yellow(
"[skipped linting for node " + process.version + "]"
));
}
return gulp.src("./dist/lamb.js")
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
}

gulp.task("analysis", function (done) {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"url": "https://github.com/ascartabelli/lamb.git"
},
"engines": {
"node": ">=0.11.0"
"node": ">=4.0.0"
},
"scripts": {
"test": "gulp test",
"coveralls": "gulp coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"tonicExample": "var _ = require('lamb');",
"version": "0.52.0-alpha.3",
"version": "0.52.0-alpha.4",
"devDependencies": {
"coveralls": "^2.11.16",
"gulp": "^3.9.1",
Expand All @@ -48,7 +48,6 @@
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^1.11.1",
"gulp-uglify": "^2.0.1",
"gulp-util": "^3.0.8",
"plato": "^1.7.0"
},
"dependencies": {}
Expand Down

0 comments on commit 7bc5ae4

Please sign in to comment.