Skip to content

Commit

Permalink
Grunt githooks task
Browse files Browse the repository at this point in the history
  • Loading branch information
Edan Schwartz committed Jun 26, 2014
1 parent bdeaf01 commit b2d986f
Show file tree
Hide file tree
Showing 179 changed files with 27,816 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,16 @@ module.exports = function(grunt) {
libPathTemplate: '//uat.hamweather.net/eschwartz/demo/lib/{{fileName}}'
}
}
},

// Use this task to set up git hooks
githooks: {
all: {
// The intent of this hook is to prevent
// build-breaking code from entering
// deployable branches.
'post-merge': 'test'
}
}
});

Expand All @@ -433,6 +443,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-githooks');

// Also -- see githooks task.

grunt.registerTask('test', [
'jasmine-legacy',
Expand Down
13 changes: 13 additions & 0 deletions node_modules/grunt-githooks/.jshintrc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions node_modules/grunt-githooks/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions node_modules/grunt-githooks/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

244 changes: 244 additions & 0 deletions node_modules/grunt-githooks/Gruntfile.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions node_modules/grunt-githooks/LICENSE-MIT

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b2d986f

Please sign in to comment.