Added dart task to gulpfile
This commit is contained in:
parent
31ea532523
commit
530e3c8ce2
1 changed files with 10 additions and 0 deletions
|
@ -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']
|
||||||
|
|
Reference in a new issue