소스 검색

Add first gulpfile

Lily Carpenter 10 년 전
부모
커밋
284f452d72
1개의 변경된 파일21개의 추가작업 그리고 0개의 파일을 삭제
  1. 21 0
      gulpfile.js

+ 21 - 0
gulpfile.js

@@ -0,0 +1,21 @@
1
+var gulp = require('gulp'),
2
+    watch = require('gulp-watch'),
3
+    plumber = require('gulp-plumber'),
4
+    connect = require('gulp-connect');
5
+
6
+gulp.task('default', ['connect']);
7
+
8
+gulp.task('connect', function(){
9
+  connect.server({
10
+    root: 'www',
11
+    livereload: true
12
+  });
13
+});
14
+
15
+
16
+gulp.task('html', function(){
17
+  gulp
18
+    .src('www/*.html')
19
+    .pipe(watch())
20
+    .pipe(connect.reload());
21
+});