Skip to content
This repository has been archived by the owner on Mar 11, 2018. It is now read-only.

Commit

Permalink
refactor: pob update
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Oct 16, 2016
1 parent b5703c4 commit e26b3e7
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .commitrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = ['karma'];
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports.extends = 'pob/babel';
10 changes: 10 additions & 0 deletions .pob.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"envs": [
"node6",
"webpack-modern-browsers",
"webpack"
],
"react": false,
"testing": true,
"documentation": false
}
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
node_js:
- "6"
- "4"

cache:
directories:
- node_modules
5 changes: 5 additions & 0 deletions git-hooks/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

if [[ `git diff HEAD@{1} --stat -- package.json` != "" ]]; then
npm install ; npm prune
fi
5 changes: 5 additions & 0 deletions git-hooks/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

if [[ `git diff HEAD@{1} --stat -- package.json` != "" ]]; then
npm install ; npm prune
fi
11 changes: 11 additions & 0 deletions git-hooks/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

# Allow to read user input, assigns stdin to keyboard
exec < /dev/tty

case "$2," in
message,|template,|,)
node_modules/.bin/prepare-commit-msg --path "$1"
;;
*) ;;
esac

0 comments on commit e26b3e7

Please sign in to comment.