forked from DigitalMomentum/MetaMomentum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
33 lines (22 loc) · 945 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
/// <binding ProjectOpened='copyfiles' />
var gulp = require('gulp');
var watch = require('gulp-watch');
gulp.task('copyfiles', function (cb) {
var devFiles = ['MetaMomentum/App_Plugins/**/*', 'src/js/**/*.js'];
//gulp.watch('.MetaMomentum/App_Plugins/**/*', gulp.series("saas"));
//gulp.watch(devFiles, function (files) {
// console.log("watch");
// }
//);
//gulp.src(devFiles, { base: "./" })
// .pipe(watch(devFiles, { base: "./" }))
// .pipe(gulp.dest("./"))
var source = '././MetaMomentum/App_Plugins',
destination = ['./MetaMomentum.UmbracoV10/App_Plugins', './MetaMomentum.UmbracoV9/App_Plugins', './MetaMomentum.UmbracoV8/App_Plugins'];
gulp.src(source + '/**/*', { base: source })
.pipe(watch(source, { base: source }))
.pipe(gulp.dest('./MetaMomentum.UmbracoV8/App_Plugins'))
.pipe(gulp.dest('./MetaMomentum.UmbracoV9/App_Plugins'))
.pipe(gulp.dest('./MetaMomentum.UmbracoV10/App_Plugins'));
cb()
});