Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Added missing configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Aug 8, 2016
1 parent 48b1d0a commit 42c0347
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function mj(path) {
let files = [
mj("/MathJax.js"),
mj("/LICENSE"),
mj("/config/*.js"),
mj("/extensions/**/*.js"),
mj("/fonts/**/*.{woff,txt}"),
mj("/jax/**/*.js"),
Expand All @@ -21,22 +22,20 @@ let files = [


let version = pjson.version;
let source = gutil.env.src || "VisualOnStaging";

if (gutil.env.build) {
version += "-" + gutil.env.build;
}

function clean() {
// You can use multiple globbing patterns as you would with `gulp.src`
gulp.task('clean', function () {
return del(['bin', "MathJax.WSP/Layouts/MathJax/**/*.*"]);
}

gulp.task('clean', clean);
});

gulp.task('copy', ["clean"], function () {
return gulp
.src(files, { base: mj() })
.pipe(gulp.dest("MathJax.WSP/Layouts/MathJax"))
.pipe(gulp.dest("MathJax.WSP/Layouts/MathJax"));
});

gulp.task('build', ["copy"], function () {
Expand All @@ -50,7 +49,7 @@ gulp.task('build', ["copy"], function () {
configuration: "Release",
verbosity: "minimal",
properties: { BasePackagePath: "..\\bin\\" }
}))
}));
});

gulp.task('pack', ["build"], function () {
Expand All @@ -61,7 +60,16 @@ gulp.task('pack', ["build"], function () {
version: version,
properties: 'configuration=Release;author=VisualOn GmbH;year=' + new Date().getUTCFullYear()
}))
.pipe(gulp.dest("bin/"))
.pipe(gulp.dest("bin/"));
});

gulp.task('push', [], function () {
return gulp
.src("bin/*.nupkg")
.pipe(nuget.push({
nuget: "nuget.exe",
source: source
}))
});

gulp.task('default', ["pack"]);

0 comments on commit 42c0347

Please sign in to comment.