mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-05 05:27:59 +08:00
9 lines
306 B
JavaScript
9 lines
306 B
JavaScript
const { test, ln, chmod } = require('shelljs')
|
|
|
|
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')
|
|
}
|