From 5a059ba30a371217a03d3c0f185746fe8de640c9 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 1 Dec 2015 23:31:03 +0800 Subject: [PATCH] add gulp release for test --- .travis.yml | 2 +- README.md | 2 +- gulpfile.js | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b9a29f3..d115bd7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,4 @@ node_js: - "4.0" before_script: - npm install -g gulp -script: gulp \ No newline at end of file +script: gulp release \ No newline at end of file diff --git a/README.md b/README.md index ce02bd0..681ac87 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/gulpfile.js b/gulpfile.js index 77a1ddd..4e80ab3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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']); \ No newline at end of file +gulp.task('default', ['release', 'browser-sync', 'watch']); \ No newline at end of file