-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgulpfile.js
More file actions
40 lines (32 loc) · 895 Bytes
/
gulpfile.js
File metadata and controls
40 lines (32 loc) · 895 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
39
40
var gulp = require('gulp');
var runSequence = require('run-sequence');
var exec = require('child_process').exec;
var gulpCopy = require('gulp-copy');
var sourceFiles = [ 'bower_components/**', 'images/**','node_modules/**','src/**' ,'deploy_key.enc','index.html','polymer.json','css/**','lib/**' ];
var destination = 'out/';
var exclude_core_component = [
];
function copy(srcName, destName, excludePaths) {
return gulp
.src(sourceFiles)
.pipe(gulpCopy(destination));
}
gulp.task('build', function () {
return copy();
});
gulp.task('jekyll-build', function (cb) {
exec('jekyll build --trace', function (err, stdout, stderr) {
cb(err);
});
});
gulp.task('bower-update', function (cb) {
exec('bower update', function (err, stdout, stderr) {
cb(err);
});
});
// gulp.task('build', function() {
// copy();
// });
gulp.task('default', [
'build'
]);