Add git hooks and standard for linting

This commit is contained in:
Andres Martin 2017-08-26 01:10:37 +09:00
parent 0e8be22711
commit b13a7cb851
2 changed files with 1044 additions and 1 deletions

1037
ui/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,9 @@
"dev": "next",
"build": "next build",
"start": "next start",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "standard && npm list 1>/dev/null",
"precommit": "npm test",
"prepush": "npm test"
},
"repository": {
"type": "git",
@ -23,5 +25,9 @@
"next": "^3.0.6",
"react": "^15.6.1",
"react-dom": "^15.6.1"
},
"devDependencies": {
"husky": "^0.14.3",
"standard": "^10.0.3"
}
}