-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
32 lines (28 loc) · 855 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var gulp = require("gulp");
var msbuild = require("gulp-msbuild");
var watch = require('gulp-watch');
var browserSync = require('browser-sync').create();
gulp.task("watch", function () {
gulp.watch([
"src/Lemonade.Web/styles/**/*.css",
"src/Lemonade.Web/scripts/**/*.js",
"src/Lemonade.Web.Host/styles/**/*.css",
"src/Lemonade.Web.Host/scripts/**/*.js",
"src/Lemonade.Web/views/**/*.html"
], ["msbuild", browserSync.reload]);
});
gulp.task("msbuild", function() {
return gulp.src("./Lemonade.sln")
.pipe(msbuild({
targets: ['Clean', 'Build'],
stdout: false,
configuration: 'Debug',
toolsVersion: 14.0,
}));
});
gulp.task('browser-sync', function() {
browserSync.init({
proxy: "dev-lemonade"
});
});
gulp.task("default", ["browser-sync", "watch"]);