-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgulpfile.js
52 lines (45 loc) · 1.35 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
var gulp = require('gulp'),
debug = require('gulp-debug'),
clean = require('gulp-clean'),
ejs = require('gulp-ejs'),
concat = require('gulp-concat'),
sourcemaps = require('gulp-sourcemaps'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
runSequence = require('run-sequence'),
templateHTML = require('./template/data'),
browserSync = require('browser-sync').create();
gulp.task('render', function(){
gulp.src(["./js/**.js", "!./js/firebase.js"])
.pipe(debug({title: 'Render Task:'}))
.pipe(ejs({data: templateHTML}))
.pipe(gulp.dest("./dist"));
})
/*
gulp.task('dist-html', function(){
gulp.src("./*.html")
.pipe(debug({title: 'Move to Dist - HTML:'}))
.pipe(gulp.dest("./dist"));
})
gulp.task('dist-css', function(){
gulp.src("./css/*.css")
.pipe(debug({title: 'Move to Dist - CSS:'}))
.pipe(gulp.dest("./dist/css"));
})
gulp.task('dist-img', function(){
gulp.src("./img/**.**")
.pipe(debug({title: 'Move to Dist - IMG:'}))
.pipe(gulp.dest("./dist/img"));
})
gulp.task('move-to-dis', ['dist-html', 'dist-css', 'dist-img'])
gulp.task('default', ['move-to-dis','render']);
gulp.task('move-to-dis', function(callback){
runSequence(
'dist-img',
'dist-html',
'dist-css',
callback
);
})
*/
gulp.task('default', ["render"])