add gulp release for test

This commit is contained in:
DIYgod 2015-12-01 23:31:03 +08:00
parent 9906a29c74
commit 5a059ba30a
3 changed files with 6 additions and 3 deletions

View File

@ -3,4 +3,4 @@ node_js:
- "4.0"
before_script:
- npm install -g gulp
script: gulp
script: gulp release

View File

@ -4,7 +4,7 @@
[![npm](https://img.shields.io/npm/l/aplayer.svg?style=flat-square)](https://www.npmjs.com/package/aplayer)
[![npm](https://img.shields.io/npm/dt/aplayer.svg?style=flat-square)](https://www.npmjs.com/package/aplayer)
[![devDependency Status](https://david-dm.org/DIYgod/APlayer/dev-status.svg?style=flat-square)](https://david-dm.org/DIYgod/APlayer#info=devDependencies)
[![Travis](https://img.shields.io/travis/rust-lang/rust.svg?style=flat-square)]()
[![Travis](https://img.shields.io/travis/rust-lang/rust.svg?style=flat-square)](https://travis-ci.org/DIYgod/APlayer)
Wow, such a beautiful html5 music player

View File

@ -57,5 +57,8 @@ gulp.task('watch', function () {
gulp.watch('demo/font/*', ['copy']);
});
// compile the project, including move font, compress js and scss, also be used to test
gulp.task('release', ['copy', 'compressJS', 'compressCSS']);
// Default task, running just `gulp` will move font, compress js and scss, launch server, watch files.
gulp.task('default', ['copy', 'compressJS', 'compressCSS', 'browser-sync', 'watch']);
gulp.task('default', ['release', 'browser-sync', 'watch']);