-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgulpfile.js
More file actions
38 lines (32 loc) · 924 Bytes
/
gulpfile.js
File metadata and controls
38 lines (32 loc) · 924 Bytes
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
33
34
35
36
37
38
var gulp = require('gulp'),
runSequence = require('run-sequence'),
path = require('path');
const rootFolder = path.join(__dirname);
const distFolder = path.join(rootFolder, 'dist');
const binDistFolder = path.join(distFolder, 'bin');
// define tasks here
gulp.task('copy:config', function () {
console.log("Copying web.config");
return gulp.src([`${rootFolder}/web.config`])
.pipe(gulp.dest(distFolder));
});
gulp.task('copy:handler', function () {
console.log("Copying binaries");
return gulp.src([`${rootFolder}/bin/**.*.dll`])
.pipe(gulp.dest(binDistFolder));
});
gulp.task('postbuild', function () {
runSequence(
'copy:handler',
'copy:config',
function (err) {
if (err) {
console.log('ERROR:', err.message);
} else {
console.log('Postbuild actions finished succesfully');
}
});
});
gulp.task('default', function(){
console.log("Gulp is running!");
});