Skip to content

Commit

Permalink
Moves 'githooks' files to 'install' folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Morris committed Mar 10, 2017
1 parent 6e29fe4 commit 88b8fe5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = function(grunt) {
githooks: {
options: {
hashbang: '#!/bin/sh',
template: 'bin/template/shell.hb',
template: 'install/template/shell.hb',
startMarker: '# GRUNT-GITHOOKS START',
endMarker: '# GRUNT-GITHOOKS END'
},
Expand Down
9 changes: 9 additions & 0 deletions install/pre-commit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
#
# Pre-commit hooks

# Make sure node modules are available to Github Desktop
PATH=$PATH:/usr/local/bin:/usr/local/sbin

# Lint and test before committing
grunt test
4 changes: 4 additions & 0 deletions install/template/shell.hb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Make sure node modules are available to Github Desktop
PATH=$PATH:/usr/local/bin:/usr/local/sbin

{{command}}{{#if task}} {{task}}{{/if}}{{#if args}} {{args}}{{/if}}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
{ "name": "Mike Alsup" }
],
"main": "src/jquery.form.js",
"scripts": {
"postinstall": "grunt githooks"
},
"repository": {
"type": "git",
"url": "https://github.com/jquery-form/form.git"
Expand Down

0 comments on commit 88b8fe5

Please sign in to comment.