var gulp = require("gulp");
var changed = require('gulp-changed');
var sourcemaps = require("gulp-sourcemaps");
var babel = require("gulp-babel");
var del = require("del");
var runSequence = require("run-sequence");

var app = {
  source: "./src/**/*.js",
  html: "./src/**/*.html",
  files: "./src/**/*.*",
  dist: "./dist"
};

gulp.task("build-app", function () {
  return gulp.src(app.source)
    .pipe(sourcemaps.init())
    .pipe(babel({modules: 'system'}))
    .pipe(sourcemaps.write("."))
    .pipe(gulp.dest(app.dist));
});

gulp.task("copy-html", function() {
  return gulp.src(app.html)
    .pipe(gulp.dest(app.dist));
});

gulp.task("copy-everything", function() {
  return gulp.src(app.files)
    .pipe(gulp.dest(app.dist))
});

gulp.task("clean", function(callback) {
  del([app.dist], callback);
});

gulp.task("build", function(callback) {
  return runSequence(
    'copy-everything',
    "clean",
    [ "build-app", "copy-html"],
    callback
  );
});

gulp.task("watch", function(callback) {
  gulp.watch(app.source, ['build-app']);
  gulp.watch(app.html, ['build-html']);
});

gulp.task("default", function(callback) {
  return runSequence("build");
});
@@ -276,16 +276,41 @@
 .html%22,%0A
+  css: %22./src/**/*.css%22,%0A
   files:
@@ -326,16 +326,16 @@
 */*.*%22,%0A
-
   dist: 
@@ -644,32 +644,131 @@
 pp.dist));%0A%7D);%0A%0A
+gulp.task(%22copy-css%22, function() %7B%0A  return gulp.src(app.css)%0A    .pipe(gulp.dest(app.dist));%0A%7D);%0A%0A
 gulp.task(%22copy-
@@ -1060,16 +1060,28 @@
 py-html%22
+, %22copy-css%22
 %5D,%0A    c
@@ -1179,16 +1179,16 @@
 app'%5D);%0A
-
   gulp.w
@@ -1219,16 +1219,54 @@
 tml'%5D);%0A
+  gulp.watch(app.css, %5B'build-css'%5D);%0A
 %7D);%0A%0Agul

add 'copy-css' task