Skip to content

Commit

Permalink
travis-ci - adding automated releases
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSpriggs committed Jul 18, 2014
1 parent 31d0600 commit 9166f4a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 14 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ['**']
}]
}
}
});

Expand All @@ -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']);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 9166f4a

Please sign in to comment.