#!/usr/bin/env node

const validate = require('git-validate')
validate.copy('../eslintrc.json', '.eslintrc.json')
validate.installScript('lint', 'node_modules/.bin/eslint -c .eslintrc.json --fix index.js app/js spec/')
validate.installScript('validate', 'node_modules/.bin/eslint -c .eslintrc.json index.js app/js spec/')
validate.installScript('test', 'node_modules/.bin/jasmine JASMINE_CONFIG_PATH=jasmine.json')
validate.configureHook('pre-commit', ['validate', 'test'])
