Repository URL to install this package:
|
Version:
1.0.7 ▾
|
loop-ping
/
gulpfile.js
|
|---|
var Gulp = require("gulp"),
Mocha = require("gulp-mocha"),
Shell = require("gulp-shell"),
Del = require("del"),
VinylPaths = require("vinyl-paths"),
Print = require("gulp-print"),
Bump = require("gulp-bump");
Gulp.task("test", function(){
return Gulp
.src(["test/*.js"], {read: false})
.pipe(Mocha({reporter: "spec" }));
});
Gulp.task("bump", function(){
Gulp.src("./package.json")
.pipe(Bump())
.pipe(Gulp.dest("./"));
});
Gulp.task("pack", ["clean", "bump"], Shell.task(["npm pack"]));
Gulp.task("move", ["pack"], function(){
return Gulp
.src("*.tgz")
.pipe(VinylPaths(Del))
.pipe(Gulp.dest("build/Release"));
});
Gulp.task("push", ["move"], function(){
return Gulp
.src("build/Release/*.tgz")
//.pipe(Print());
.pipe(Shell([
"curl -F package=@<%= file.path %> https://P2NoU4CksQg5WPReyUxy@push.fury.io/xogroupinc/"
]));
});
Gulp.task("clean", function(callback){
Del(["build/Release/*.tgz"], callback);
});
Gulp.task("build", ["test", "push"]);