Skip to content

Commit

Permalink
CHG: build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
farthinker committed Aug 3, 2016
1 parent d549262 commit 3b3fc8f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
8 changes: 1 addition & 7 deletions build/test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ gulp = require 'gulp'
karma = require 'karma'
fs = require 'fs'
handleError = require './helpers/error'
compile = require './compile'

test = (done) ->
server = new karma.Server
Expand All @@ -15,11 +14,6 @@ test = (done) ->

server.start()

gulp.task 'test', gulp.series test, (done) ->
gulp.watch 'src/**/*.coffee', gulp.series compile.coffee, test
gulp.watch 'src/**/*.scss', compile.sass
gulp.watch 'test/**/*.coffee', test

done()
gulp.task 'test', test

module.exports = test
2 changes: 1 addition & 1 deletion dist/qing-module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* qing-module v3.0.3
* qing-module v1.0.0
* http://mycolorway.github.io/qing-module
*
* Copyright Mycolorway Design
Expand Down
2 changes: 1 addition & 1 deletion dist/qing-module.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ lint = ->
gulp.src 'build/**/*.coffee'
.pipe coffeelint()

gulp.task 'default', gulp.series lint, compile, test
gulp.task 'default', gulp.series lint, compile, test, (done) ->
gulp.watch 'src/**/*.coffee', gulp.series compile.coffee, test
gulp.watch 'src/**/*.scss', compile.sass
gulp.watch 'test/**/*.coffee', test
done()

0 comments on commit 3b3fc8f

Please sign in to comment.