Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Moreno <jomo@microsoft.com>2016-03-07 14:27:06 +0300
committerJoao Moreno <jomo@microsoft.com>2016-03-07 14:27:10 +0300
commit9f8ee47b029437ee557146f96a9d8da65655b491 (patch)
tree644282fd39cad31c605219cdfdd6bb503ff0f7f6 /gulpfile.js
parentb61dd976f6c9f7d74c0c3031d7c4206dda6dcffe (diff)
extract gulpfile rebase
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 4878028e121..222f2b2ef4d 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -124,13 +124,6 @@ gulp.task('test', function () {
.once('end', function () { process.exit(); });
});
-function rebase(count) {
- return rename(function (f) {
- var parts = f.dirname.split(/[\/\\]/);
- f.dirname = parts.slice(count).join(path.sep);
- });
-}
-
gulp.task('mixin', function () {
var repo = process.env['VSCODE_MIXIN_REPO'];
@@ -159,7 +152,7 @@ gulp.task('mixin', function () {
var all = remote(url, opts)
.pipe(zip.src())
- .pipe(rebase(1));
+ .pipe(util.rebase(1));
if (quality) {
var build = all.pipe(filter('build/**'));
@@ -167,7 +160,7 @@ gulp.task('mixin', function () {
var mixin = all
.pipe(filter('quality/' + quality + '/**'))
- .pipe(rebase(2))
+ .pipe(util.rebase(2))
.pipe(productJsonFilter)
.pipe(buffer())
.pipe(json(function (patch) {