From e2d890eaede8f3216117386f8942d8996e1d2e28 Mon Sep 17 00:00:00 2001 From: John Zhao Date: Thu, 20 Dec 2018 09:27:46 +0800 Subject: [PATCH] chore(init_tools.sh): adjust init commitizen --- scripts/init_tools.sh | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/scripts/init_tools.sh b/scripts/init_tools.sh index 39405c2..ab073a8 100644 --- a/scripts/init_tools.sh +++ b/scripts/init_tools.sh @@ -226,16 +226,15 @@ fi # _INIT_LINTER_ if [ -n "${_INIT_COMMITIZEN_}" ]; then if _detect_cmd npm; then - _echo_d "npm install commitizen -g" - npm install commitizen -g - if _detect_cmd node; then - commitizen init cz-conventional-changelog --save-dev --save-exact - - npm install --save-dev @commitlint/{config-conventional,cli} - npm install husky --save-dev - else - _echo_en "Skipped commitizen init, as node not found" - fi + _echo_d "npm install commitizen -g; npm install" + npm install commitizen -g; npm install + # if _detect_cmd node; then + # commitizen init cz-conventional-changelog --save-dev --save-exact + # npm install --save-dev @commitlint/{config-conventional,cli} + # npm install husky --save-dev + # else + # _echo_en "Skipped commitizen init, as node not found" + # fi else _echo_en "Skipped npm install packages, as npm not found" _echo @@ -246,6 +245,4 @@ else _echo_e "p.s. not \"apt-get install npm\", it's too old." fi -# npm install - fi # _INIT_COMMITIZEN_