From 9166f4aad213b0ec7ed68dd50815dcc0f93cd306 Mon Sep 17 00:00:00 2001 From: David Spriggs Date: Fri, 18 Jul 2014 07:18:27 -0500 Subject: [PATCH] travis-ci - adding automated releases --- Gruntfile.js | 15 ++++++++++++++- package.json | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index b2a8a5f10..cdd0bfa5f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -94,6 +94,18 @@ module.exports = function(grunt) { build_browser: { path: 'http://localhost:3001/index.html' } + }, + compress: { + build: { + options: { + archive: 'viewer.zip' + }, + files: [{ + expand: true, + cwd: 'dist', + src: ['**'] + }] + } } }); @@ -108,10 +120,11 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-newer'); grunt.loadNpmTasks('grunt-open'); + grunt.loadNpmTasks('grunt-contrib-compress'); // define the tasks grunt.registerTask('default', 'Watches the project for changes, automatically builds them and runs a server.', ['connect:dev', 'open:dev_browser', 'watch']); - grunt.registerTask('build', 'Compiles all of the assets and copies the files to the build directory.', ['clean', 'copy', 'stylesheets', 'scripts']); + grunt.registerTask('build', 'Compiles all of the assets and copies the files to the build directory.', ['clean', 'copy', 'stylesheets', 'scripts', 'compress:build']); grunt.registerTask('build-view', 'Compiles all of the assets and copies the files to the build directory.', ['clean', 'copy', 'stylesheets', 'scripts', 'connect:build', 'open:build_browser']); grunt.registerTask('scripts', 'Compiles the JavaScript files.', ['newer:jshint', 'newer:uglify']); grunt.registerTask('stylesheets', 'Compiles the stylesheets.', ['newer:autoprefixer', 'newer:cssmin']); diff --git a/package.json b/package.json index 0a1b81281..f9dfcb6e2 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "grunt-contrib-uglify": "0.4.x", "grunt-contrib-watch": "0.6.x", "grunt-newer": "0.7.x", - "grunt-open": "0.2.x" + "grunt-open": "0.2.x", + "grunt-contrib-compress": "0.10.x" }, "engine": "node >= 0.10" } \ No newline at end of file