yet-another-js-utils 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gruntfile.js +3 -3
- package/js-utils.js +4 -2
- package/main.js +1 -1
- package/package.json +1 -1
package/gruntfile.js
CHANGED
@@ -15,7 +15,7 @@ module.exports = function(grunt) {
|
|
15
15
|
},
|
16
16
|
watch: {
|
17
17
|
devBuild: {
|
18
|
-
files: ['
|
18
|
+
files: ['main.js', 'js/*.js'],
|
19
19
|
tasks: ['esbuild:dev', 'exec:mocha'],
|
20
20
|
options: {
|
21
21
|
livereload: true
|
@@ -39,8 +39,8 @@ module.exports = function(grunt) {
|
|
39
39
|
buildFunction: require('esbuild').build
|
40
40
|
},
|
41
41
|
prod: {
|
42
|
-
entryPoints: ['
|
43
|
-
outfile: './dist/
|
42
|
+
entryPoints: ['main.js'],
|
43
|
+
outfile: './dist/yaju.min.js',
|
44
44
|
bundle: true,
|
45
45
|
minify: true
|
46
46
|
},
|
package/js-utils.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
module.exports =
|
1
|
+
module.exports =
|
2
|
+
(function () { return {
|
2
3
|
// # Nil
|
3
4
|
|
4
5
|
// I like the NOT operator
|
@@ -296,4 +297,5 @@ module.exports = {
|
|
296
297
|
pipe(input, ...functions) {
|
297
298
|
return functions.reduce((res, fun) => fun(res), input);
|
298
299
|
}
|
299
|
-
}
|
300
|
+
}
|
301
|
+
});
|
package/main.js
CHANGED
package/package.json
CHANGED