Skip to content

Commit 3f25bd0

Browse files
committed
No more min version
1 parent 593f3c6 commit 3f25bd0

File tree

6 files changed

+21
-35
lines changed

6 files changed

+21
-35
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Visit [functionaljs.com](http://functionaljs.com/) for the full documentation in
1313
### Curry function example
1414

1515
```javascript
16-
var add = fjs.curry(function(arg1, arg2) {
17-
return arg1 + arg2;
16+
var add = fjs.curry(function(a, b) {
17+
return a + b;
1818
});
1919

2020
var add3 = add(3);
@@ -34,6 +34,17 @@ add(1, 2, 3); // => 6
3434
add3(1, 2, 3, 4, 5); // => 18
3535
```
3636

37+
### Curry ES6 example
38+
39+
```javascript
40+
const add = fjs.curry((a, b) => a + b);
41+
42+
const add3 = add(3);
43+
44+
add(1, 2, 3); // => 6
45+
add3(1, 2, 3, 4, 5); // => 18
46+
```
47+
3748
### Real world example
3849

3950
```javascript

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Lee Crossley <leee@hotmail.co.uk> (http://ilee.co.uk/)",
44
"description": "A functional JavaScript library that facilitates currying and point-free programming",
55
"homepage": "http://functionaljs.com",
6-
"version": "0.7.6",
6+
"version": "0.8.0",
77
"keywords": [
88
"functional",
99
"curry",
@@ -13,7 +13,7 @@
1313
"lambda",
1414
"underscore"
1515
],
16-
"main": "functional.min.js",
16+
"main": "functional.js",
1717
"ignore" : [
1818
".gitignore",
1919
".jshintrc",

component.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Lee Crossley <leee@hotmail.co.uk> (http://ilee.co.uk/)",
44
"description": "A functional JavaScript library that facilitates currying and point-free programming",
55
"homepage": "http://functionaljs.com",
6-
"version": "0.7.6",
6+
"version": "0.8.0",
77
"keywords": [
88
"functional",
99
"curry",
@@ -14,9 +14,8 @@
1414
"underscore"
1515
],
1616
"repo": "leecrossley/functional-js",
17-
"main": "functional.min.js",
17+
"main": "functional.js",
1818
"scripts": [
19-
"functional.min.js",
2019
"functional.js"
2120
]
2221
}

functional.min.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

gulpfile.js

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
var gulp = require("gulp");
2-
var rename = require("gulp-rename");
32
var jshint = require("gulp-jshint");
43
var jasmine = require("gulp-jasmine");
5-
var uglify = require("gulp-uglify");
6-
var header = require("gulp-header");
74

85
var pkg = require("./package.json");
96

10-
var banner = "/*!\n " +
11-
"<%= pkg.name %> (v<%= pkg.version %>)\n " +
12-
"(c) <%= pkg.author %>\n" +
13-
"*/\n";
14-
157
gulp.task("jshint", function () {
168
return gulp
17-
.src("*.js,!functional.min.js")
9+
.src("*.js")
1810
.pipe(jshint())
1911
.pipe(jshint.reporter("default"));
2012
});
@@ -24,13 +16,4 @@ gulp.task("jasmine", function () {
2416
.pipe(jasmine());
2517
});
2618

27-
gulp.task("uglify", function () {
28-
return gulp
29-
.src("functional.js")
30-
.pipe(rename("functional.min.js"))
31-
.pipe(uglify())
32-
.pipe(header(banner, {pkg: pkg}))
33-
.pipe(gulp.dest("."));
34-
});
35-
36-
gulp.task("test", ["jshint", "uglify", "jasmine"]);
19+
gulp.task("test", ["jshint", "jasmine"]);

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"author": "Lee Crossley <leee@hotmail.co.uk> (http://ilee.co.uk/)",
44
"description": "A functional JavaScript library that facilitates currying and point-free programming, with optional lambda expressions.",
55
"homepage": "http://functionaljs.com",
6-
"version": "0.7.6",
7-
"main": "functional.min.js",
6+
"version": "0.8.0",
7+
"main": "functional.js",
88
"keywords": [
99
"functional",
1010
"curry",
@@ -36,11 +36,9 @@
3636
},
3737
"devDependencies": {
3838
"gulp": "^3.9.0",
39-
"gulp-header": "^1.7.1",
4039
"gulp-jasmine": "^2.1.0",
4140
"gulp-jshint": "^2.0.0",
4241
"gulp-rename": "^1.2.2",
43-
"gulp-uglify": "^1.4.1",
4442
"jshint": "^2.8.0"
4543
}
4644
}

0 commit comments

Comments
 (0)