From 36e02502d00bea09e7ad5483ef743931509c0b7f Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 4 Jun 2016 01:14:25 +0200 Subject: [PATCH] update dependencies --- README.md | 6 +++--- dist/gulpfunction.plugins.d.ts | 3 +++ dist/gulpfunction.plugins.js | 4 ++-- dist/index.d.ts | 1 + dist/index.js | 4 ++-- package.json | 11 ++++++----- test/test.d.ts | 1 + test/test.js | 6 ++++-- test/test.ts | 2 +- ts/gulpfunction.plugins.ts | 2 +- ts/index.ts | 2 +- ts/typings.json | 7 ------- 12 files changed, 25 insertions(+), 24 deletions(-) create mode 100644 dist/gulpfunction.plugins.d.ts create mode 100644 dist/index.d.ts create mode 100644 test/test.d.ts delete mode 100644 ts/typings.json diff --git a/README.md b/README.md index 6c2c8ac..5152e2c 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,9 @@ gulp.task('gulpTest',function() { ### Notes: * The first argument of gulpFunction can also be an **array of multiple functionnames**. -Each function can return a promise. the pipe stop will finish when every promise is fullfilled. -* the second argument can be empty, it defaults to "forEach" -* the following options are available: +Each function can return a promise. The pipe stop will finish when every promise is fullfilled. +* The second argument can be empty, it defaults to "forEach" +* The following options are available: * "forFirst" - executes when first chunk/vinylfile of the stream reaches the pipestop. file is pushed further down the line when function's returned promise is fullfilled. * "forEach" - executes like "forFirst" but with every chunk/vinylfile in the stream; diff --git a/dist/gulpfunction.plugins.d.ts b/dist/gulpfunction.plugins.d.ts new file mode 100644 index 0000000..97d5ca8 --- /dev/null +++ b/dist/gulpfunction.plugins.d.ts @@ -0,0 +1,3 @@ +import "typings-global"; +export declare let Q: any; +export declare let through2: any; diff --git a/dist/gulpfunction.plugins.js b/dist/gulpfunction.plugins.js index 4beeb7d..32a3d0f 100644 --- a/dist/gulpfunction.plugins.js +++ b/dist/gulpfunction.plugins.js @@ -1,6 +1,6 @@ -/// "use strict"; +require("typings-global"); exports.Q = require("q"); exports.through2 = require("through2"); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImd1bHBmdW5jdGlvbi5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQzs7QUFFL0IsU0FBQyxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNqQixnQkFBUSxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQyIsImZpbGUiOiJndWxwZnVuY3Rpb24ucGx1Z2lucy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCJ0eXBpbmdzL21haW4uZC50c1wiIC8+XG5cbmV4cG9ydCBsZXQgUSA9IHJlcXVpcmUoXCJxXCIpO1xuZXhwb3J0IGxldCB0aHJvdWdoMiA9IHJlcXVpcmUoXCJ0aHJvdWdoMlwiKTtcbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ== +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImd1bHBmdW5jdGlvbi5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxRQUFPLGdCQUFnQixDQUFDLENBQUE7QUFFYixTQUFDLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ2pCLGdCQUFRLEdBQUcsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDIiwiZmlsZSI6Imd1bHBmdW5jdGlvbi5wbHVnaW5zLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFwidHlwaW5ncy1nbG9iYWxcIjtcclxuXHJcbmV4cG9ydCBsZXQgUSA9IHJlcXVpcmUoXCJxXCIpO1xyXG5leHBvcnQgbGV0IHRocm91Z2gyID0gcmVxdWlyZShcInRocm91Z2gyXCIpO1xyXG4iXX0= diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..62d7805 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1 @@ +import "typings-global"; diff --git a/dist/index.js b/dist/index.js index fd2a237..2dd3ec7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,5 +1,5 @@ -/// "use strict"; +require("typings-global"); var plugins = require("./gulpfunction.plugins"); module.exports = function (functionsToExecuteArg, executionModeArg) { if (executionModeArg === void 0) { executionModeArg = 'forEach'; } @@ -61,4 +61,4 @@ module.exports = function (functionsToExecuteArg, executionModeArg) { return plugins.through2.obj(forEach, atEnd); }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQzs7QUFFMUMsSUFBTyxPQUFPLFdBQVcsd0JBQXdCLENBQUMsQ0FBQztBQUtuRCxNQUFNLENBQUMsT0FBTyxHQUFHLFVBQVUscUJBQStCLEVBQUMsZ0JBQW1DO0lBQW5DLGdDQUFtQyxHQUFuQyw0QkFBbUM7SUFDMUYsZ0JBQWdCO0lBQ2hCLElBQUksYUFBYSxHQUFHLGdCQUFnQixDQUFDLENBQUMseUJBQXlCO0lBQy9ELElBQUksa0JBQWtCLEdBQUcscUJBQXFCLENBQUM7SUFDL0MsSUFBSSxZQUFZLEdBQUcsRUFBRSxDQUFDO0lBQ3RCLElBQUksV0FBVyxHQUFHLFVBQVMsV0FBVztRQUNsQyxJQUFJLFdBQVcsR0FBRyxXQUFXLEVBQUUsQ0FBQztRQUNoQyxFQUFFLENBQUMsQ0FBQyxPQUFPLFdBQVcsS0FBSyxXQUFXLElBQUksT0FBTyxXQUFXLENBQUMsSUFBSSxLQUFLLFdBQVcsQ0FBQyxDQUFDLENBQUM7WUFDaEYsWUFBWSxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUNuQyxDQUFDO0lBQ0wsQ0FBQyxDQUFDO0lBRUYsSUFBSSxtQkFBbUIsR0FBRztR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dGhyb3cgbmV3IEVycm9yKFwiZ3VscC1jYWxsZnVuY3Rpb246IHNvbWV0aGluZyBpcyBzdHJhbmdlIHdpdGggdGhlIGdpdmVuIGFyZ3VtZW50c1wiKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gcGx1Z2lucy5RLmFsbChwcm9taXNlQXJyYXkpO1xuICAgIH07XG5cbiAgICBsZXQgaGFzRXhlY3V0ZWRPbmNlID0gZmFsc2U7XG4gICAgbGV0IGZvckVhY2ggPSBmdW5jdGlvbiAoZmlsZSwgZW5jLCBjYikgeyAvL3RoZSBmb3JFYWNoIGZ1bmN0aW9uIGlzIGNhbGxlZCBmb3IgZXZlcnkgY2h1bmtcbiAgICAgICAgc3dpdGNoIChleGVjdXRpb25Nb2RlKXtcbiAgICAgICAgICAgIGNhc2UgXCJmb3JFYWNoXCI6XG4gICAgICAgICAgICAgICAgY2hlY2tBbmRSdW5GdW5jdGlvbigpLnRoZW4oZnVuY3Rpb24oKXtcbiAgICAgICAgICAgICAgICAgICAgY2IobnVsbCwgZmlsZSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlIFwiZm9yRmlyc3RcIjpcbiAgICAgICAgICAgICAgICAhaGFzRXhlY3V0ZWRPbmNlID8gY2hlY2tBbmRSdW5GdW5jdGlvbigpLnRoZW4oZnVuY3Rpb24oKXtcbiAgICAgICAgICAgICAgICAgICAgY2IobnVsbCwgZmlsZSk7XG4gICAgICAgICAgICAgICAgfSkgOiBjYihudWxsLCBmaWxlKTtcbiAgICAgICAgICAgICAgICBoYXNFeGVjdXRlZE9uY2UgPSB0cnVlO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSBcImF0RW5kXCI6XG4gICAgICAgICAgICAgICAgY2IobnVsbCwgZmlsZSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICA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ICAgICAgICB9KSA6IGNiKG51bGwsIGZpbGUpO1xyXG4gICAgICAgICAgICAgICAgaGFzRXhlY3V0ZWRPbmNlID0gdHJ1ZTtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlIFwiYXRFbmRcIjpcclxuICAgICAgICAgICAgICAgIGNiKG51bGwsIGZpbGUpO1xyXG4gICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICB9XHJcbiAgICB9O1xyXG5cclxuICAgIGxldCBhdEVuZCA9IGZ1bmN0aW9uKGNiKSB7XHJcbiAgICAgICAgaWYgKGV4ZWN1dGlvbk1vZGUgPT09IFwiYXRFbmRcIikge1xyXG4gICAgICAgICAgICBjaGVja0FuZFJ1bkZ1bmN0aW9uKCkudGhlbihmdW5jdGlvbigpe1xyXG4gICAgICAgICAgICAgICAgY2IoKTtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgY2IoKTtcclxuICAgICAgICB9XHJcbiAgICB9O1xyXG4gICAgcmV0dXJuIHBsdWdpbnMudGhyb3VnaDIub2JqKGZvckVhY2gsYXRFbmQpO1xyXG59O1xyXG4iXX0= diff --git a/package.json b/package.json index 8cb167a..e316789 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.3.1", "description": "accepts a function call as parameter to execute in gulp pipeline", "main": "dist/index.js", + "typings":"dist/index.d.ts", "scripts": { "test": "(npmts)", "reinstall": "(rm -r node_modules && npm install)", @@ -11,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/pushrocks/gulp-function.git" + "url": "https://gitlab.com/pushrocks/gulp-function.git" }, "keywords": [ "gulpplugin", @@ -21,16 +22,16 @@ "author": "Lossless GmbH (https://lossless.com)", "license": "MIT", "bugs": { - "url": "https://github.com/pushrocks/gulp-function/issues" + "url": "https://gitlab.com/pushrocks/gulp-function/issues" }, - "homepage": "https://github.com/pushrocks/gulp-function", + "homepage": "https://gitlab.com/pushrocks/gulp-function", "dependencies": { "q": "^1.4.1", "through2": "^2.0.1" }, "devDependencies": { - "beautylog": "^4.1.2", + "beautylog": "^5.0.8", "gulp": "^3.9.1", - "npmts": "^5.0.3" + "npmts": "^5.2.1" } } diff --git a/test/test.d.ts b/test/test.d.ts new file mode 100644 index 0000000..e7cc8ee --- /dev/null +++ b/test/test.d.ts @@ -0,0 +1 @@ +import "typings-test"; diff --git a/test/test.js b/test/test.js index 14825e7..50e19a6 100644 --- a/test/test.js +++ b/test/test.js @@ -1,4 +1,5 @@ -/// +"use strict"; +require("typings-test"); var gulp = require("gulp"); var gulpFunction = require("../dist/index.js"); var beautylog = require("beautylog"); @@ -98,4 +99,5 @@ describe("gulpFunction", function () { }); }); }); -//# sourceMappingURL=test.js.map \ No newline at end of file + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sY0FDUCxDQUFDLENBRG9CO0FBQ3JCLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUMzQixJQUFJLFlBQVksR0FBRyxPQUFPLENBQUMsa0JBQWtCLENBQUMsQ0FBQztBQUMvQyxJQUFJLFNBQVMsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDckMsSUFBSSxDQUFDLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBRXJCLElBQUksVUFBVSxHQUFHO0lBQ2IsSUFBSSxJQUFJLEdBQUcsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFBO0lBQ3BCLFNBQVMsQ0FBQyxHQUFHLENBQUMsbUJBQW1CLENBQUMsQ0FBQztJQUNuQyxJQUFJLENBQUMsT0FBT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ICAgICBsZXQgc3RyZWFtID0gZ3VscC5zcmMoJy4vdGVzdC8qLm1kJylcclxuICAgICAgICAgICAgLnBpcGUoZ3VscEZ1bmN0aW9uKFtiZWZvcmVGdW5jdGlvbixtaWRkbGVGdW5jdGlvbixtaWRkbGVGdW5jdGlvbl0sJ2F0RW5kJykpXHJcbiAgICAgICAgICAgIC5waXBlKGd1bHBGdW5jdGlvbihmdW5jdGlvbigpe1xyXG4gICAgICAgICAgICAgICAgYmVhdXR5bG9nLmxvZyhcInN0cmVhbSBwcm9ncmVzc2VkXCIpO1xyXG4gICAgICAgICAgICAgICAgdmFyIGRvbmUyID0gUS5kZWZlcigpO1xyXG4gICAgICAgICAgICAgICAgZG9uZTIucmVzb2x2ZSgpO1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIGRvbmUyLnByb21pc2U7XHJcbiAgICAgICAgICAgIH0sXCJmb3JFYWNoXCIpKVxyXG4gICAgICAgICAgICAucGlwZShndWxwRnVuY3Rpb24oZnVuY3Rpb24oKXtcclxuICAgICAgICAgICAgICAgIGJlYXV0eWxvZy5sb2coXCJuZXh0U3RlcFwiKTtcclxuICAgICAgICAgICAgfSkpXHJcbiAgICAgICAgICAgIC5waXBlKGd1bHBGdW5jdGlvbihhZnRlckZ1bmN0aW9uLFwiYXRFbmRcIikpXHJcbiAgICAgICAgICAgIC5waXBlKGd1bHBGdW5jdGlvbih0aW1lb3V0RnVuY3Rpb24sXCJhdEVuZFwiKSk7XHJcblxyXG4gICAgICAgIHN0cmVhbS5vbihcImZpbmlzaFwiLGZ1bmN0aW9uKCl7XHJcbiAgICAgICAgICAgIGJlYXV0eWxvZy5pbmZvKFwic3RyZWFtIGZpbmlzaGVkXCIpO1xyXG4gICAgICAgICAgICBkb25lKCk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9KTtcclxufSk7XHJcblxyXG4iXX0= diff --git a/test/test.ts b/test/test.ts index 77e9916..678ce43 100644 --- a/test/test.ts +++ b/test/test.ts @@ -1,4 +1,4 @@ -/// +import "typings-test" var gulp = require("gulp"); var gulpFunction = require("../dist/index.js"); var beautylog = require("beautylog"); diff --git a/ts/gulpfunction.plugins.ts b/ts/gulpfunction.plugins.ts index fa6a315..dbb7491 100644 --- a/ts/gulpfunction.plugins.ts +++ b/ts/gulpfunction.plugins.ts @@ -1,4 +1,4 @@ -/// +import "typings-global"; export let Q = require("q"); export let through2 = require("through2"); diff --git a/ts/index.ts b/ts/index.ts index 42143b1..4058f82 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,4 +1,4 @@ -/// +import "typings-global"; import plugins = require("./gulpfunction.plugins"); diff --git a/ts/typings.json b/ts/typings.json deleted file mode 100644 index 57323dd..0000000 --- a/ts/typings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "ambientDependencies": { - "node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts", - "mocha": "github:Bartvds/tsd-deftools/typings/DefinitelyTyped/mocha/mocha.d.ts", - "colors": "github:DefinitelyTyped/DefinitelyTyped/colors/colors.d.ts" - } -}