From 456c63fe5549fb8956cf46567ac8febb32c76cb6 Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Thu, 11 Jun 2015 13:51:28 -0700 Subject: [PATCH] Changes for Codeship CI --- README.md | 2 ++ gulpfile.js | 8 +++++++- package.json | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a3cb884c..a39d8471 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ [![Tasks in Ready](https://badge.waffle.io/cmmcleod/coriolis.png?label=ready&title=Ready)](https://waffle.io/cmmcleod/coriolis) [![Tasks in Progress](https://badge.waffle.io/cmmcleod/coriolis.svg?label=in%20progress&title=In%20Progress)](http://waffle.io/cmmcleod/coriolis) +[ ![Codeship Status for cmmcleod/coriolis](https://codeship.com/projects/637858c0-f2a5-0132-7af7-5ed004d44c71/status?branch=master)](https://codeship.com/projects/85232) + ## About The Coriolis project was inspired by [E:D Shipyard](http://www.edshipyard.com/) and, of course, [Elite Dangerous](http://www.elitedangerous.com). The ultimate goal of Coriolis is to provide rich features to support in-game play and planning while engaging the E:D community to support its development. diff --git a/gulpfile.js b/gulpfile.js index c7a80452..c021e779 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -244,13 +244,19 @@ gulp.task('test', function () { }); gulp.task('lint', ['js-lint', 'json-lint']); + gulp.task('clean', function (done) { del(['build'], done); }); + gulp.task('build', function (done) { runSequence('clean', ['html2js','jsonToDB'], ['generateIndexHTML','bower','js','less','copy'], done); }); gulp.task('build-cache', function (done) { runSequence('build', 'appcache', done); }); +gulp.task('build-prod', function (done) { runSequence('build', 'cache-bust', 'appcache', done); }); + gulp.task('dev', function (done) { runSequence('build-cache', 'serve','watch', done); }); + gulp.task('deploy', function (done) { cdnHostStr = '//cdn.' + process.env.CORIOLIS_HOST; - runSequence('lint', 'build','cache-bust', 'appcache', 'upload', done); + runSequence('build-prod', 'upload', done); }); + gulp.task('default', ['dev']); diff --git a/package.json b/package.json index e44d7225..e841e408 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "url": "https://github.com/cmmcleod/coriolis" }, "private": true, + "engine": "node >= 0.12.2", "dependencies": {}, "devDependencies": { "async": "^0.9.0",