我在命令欄輸入grunt clean,提示如下錯誤
grunt-cli: The grunt command line interface (v1.2.0)
Fatal error: Unable to find local grunt.
If you're seeing this message, grunt hasn't been installed locally to
your pro
使用grunt 寫一個創建新分支的task
首選安裝必要的修飾庫
npm i ora inquirer chalk --save
編寫task
這一步主要為了給用户展示最近的幾個分支用來判斷新建是否重複,如果不用也可以,那就在拉取的時候通過shell判斷下輸入的分支號是否存在,不存在提示就行
function getBranchCurrent(callback) {
exec