Added dart task to gulpfile

This commit is contained in:
Marcel Kapfer 2017-06-15 23:58:59 +02:00
parent 31ea532523
commit 530e3c8ce2

View file

@ -4,6 +4,7 @@
gulp = require 'gulp' gulp = require 'gulp'
coffee = require 'gulp-coffee' coffee = require 'gulp-coffee'
sass = require 'gulp-sass' sass = require 'gulp-sass'
dart = require 'gulp-dart'
gulp.task 'coffee', -> gulp.task 'coffee', ->
gulp.src './res/js/*.coffee' gulp.src './res/js/*.coffee'
@ -15,6 +16,15 @@ gulp.task 'sass', ->
.pipe sass() .pipe sass()
.pipe gulp.dest './res/css/' .pipe gulp.dest './res/css/'
gulp.task 'dart', ->
gulp.src './res/dart/*.dart'
.pipe dart {
"dest": "./res/dart/",
"minify": "true",
}
.pipe gulp.dest './res/dart/'
gulp.task 'default', -> gulp.task 'default', ->
gulp.watch './res/js/*.coffee', ['coffee'] gulp.watch './res/js/*.coffee', ['coffee']
gulp.watch './res/css/*.sass', ['sass'] gulp.watch './res/css/*.sass', ['sass']
gulp.watch './res/dart/*.dart', ['dart']