vue/build/setup.js
Herrington Darkholme 048e940779 build: map vue to local types, simplify build setup (#6860)
* build: map vue to local types, simplify build setup

* build: remove unnecessary install steps
2017-10-21 08:32:02 -04:00

13 lines
363 B
JavaScript

const { test, ln, chmod } = require('shelljs')
function installHooks () {
if (test('-e', '.git/hooks')) {
ln('-sf', '../../build/git-hooks/pre-commit', '.git/hooks/pre-commit')
chmod('+x', '.git/hooks/pre-commit')
ln('-sf', '../../build/git-hooks/commit-msg', '.git/hooks/commit-msg')
chmod('+x', '.git/hooks/commit-msg')
}
}
installHooks()