Skip to content

Commit

Permalink
fix for autorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
deavial committed Jan 13, 2016
1 parent e6c8c32 commit e1de817
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@
/dist
/node_modules
/build
/tmp

npm-debug.log
12 changes: 11 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ module.exports = function (grunt) {
}
});

grunt.loadNpmTasks('grunt-contrib-clean');
grunt.config('clean', {
release: {
options: {
force: true
},
src: [ 'tmp' ]
}
});

grunt.loadNpmTasks('grunt-git-deploy');
grunt.config('git_deploy', {
release: {
Expand All @@ -89,5 +99,5 @@ module.exports = function (grunt) {


grunt.registerTask('default', ['copy:scripts', 'uglify:min', 'usebanner']);
grunt.registerTask('deploy', ['copy:scripts', 'uglify:min', 'usebanner', 'git_deploy:release']);
grunt.registerTask('deploy', ['copy:scripts', 'uglify:min', 'usebanner', 'clean:release', 'git_deploy:release']);
};

0 comments on commit e1de817

Please sign in to comment.