const gulp = require('gulp');
const minifycss = require('gulp-minify-css');
const rename = require('gulp-rename');
const concat = require('gulp-concat');
const uglify = require('gulp-uglify');
const livereload = require('gulp-livereload');

const distPath = './';
var minify = false;

gulp.task('js', function() {
  var src = [
    './src/js/ionic.material.motion.js',
    './src/js/ionic.material.ink.js'
  ];
  var js = gulp.src(src)
    .pipe(concat('ionic.material.js'))
    .pipe(gulp.dest(distPath));

  if (minify) {
    js.pipe(uglify())
    .pipe(rename('ionic.material.min.js'))
    .pipe(gulp.dest(distPath))
  }
  return js;
});

gulp.task('styles', function() {
  var src = [
    './src/css/directives/*.css',
    './src/css/elements/*.css',
    './src/css/helpers/*.css',
    './src/css/motion/*.css',
    './src/css/overrides/*.css'
  ];
  var css = gulp.src(src)
    .pipe(concat('ionic.material.css'))
    .pipe(gulp.dest(distPath))

  if (minify) {
    css.pipe(rename({
      suffix: '.min'
    }))
    .pipe(minifycss())
    .pipe(rename('ionic.material.min.css'))
    .pipe(gulp.dest(distPath));
  }

  return css;
});

gulp.task('watch', function() {
  livereload.listen();
  gulp.watch(['./*.js', '!./src/js/'], ['js']);
  gulp.watch('./*.css', ['styles']);
});

gulp.task('build', function () {
  minify = true;
  return gulp.start(['js', 'styles']);
})

gulp.task('default', ['js', 'styles', 'watch'], function() {});

@@ -1,12 +1,49 @@
+/* jshint esnext: true, asi: true */%0A
 const gulp =
@@ -269,16 +269,98 @@
 eload');
+%0Aconst sass = require('gulp-sass');%0Aconst sourcemaps = require('gulp-sourcemaps');
 %0A%0Aconst 
@@ -960,16 +960,16 @@
 /*.css'%0A
-
   %5D;%0A  v
@@ -1245,32 +1245,406 @@
 eturn css;%0A%7D);%0A%0A
+gulp.task('scss', function() %7B%0A  var src = './src/scss/index.scss';%0A  var scss = gulp%0A  var css = gulp.src(src)%0A    .pipe(concat('ionic.material.css'))%0A    .pipe(gulp.dest(distPath))%0A%0A  if (minify) %7B%0A    css.pipe(rename(%7B%0A      suffix: '.min'%0A    %7D))%0A    .pipe(minifycss())%0A    .pipe(rename('ionic.material.min.css'))%0A    .pipe(gulp.dest(distPath));%0A  %7D%0A%0A  return css;%0A%7D);%0A%0A
 gulp.task('watch

add jshint options to gulpfile