diff --git a/commit/lib/cz/engine.js b/commit/lib/cz/engine.js index 6debc3af..3bd4fbd9 100644 --- a/commit/lib/cz/engine.js +++ b/commit/lib/cz/engine.js @@ -24,8 +24,6 @@ const getList = (obj) => { module.exports = function (options) { const typeList = getList(options.types); - const inquirer = require('inquirer') - return { prompter(cz, commit) { @@ -95,11 +93,6 @@ module.exports = function (options) { const scope = answers.scope ? `(${answers.scope.trim()})` : ''; // 限制短描述为 100 个字符 - console.log('**********') - console.log(answers.type) - console.log(scope) - console.log(answers.subject.trim()) - console.log('**********') const head = (`${answers.type + scope}: ${answers.subject.trim()}`).slice(0, maxLineWidth); // 限制详细描述最长宽度为 100 个字符串 @@ -116,7 +109,6 @@ module.exports = function (options) { const footer = filter([breaking, issues]).join('\n\n'); - console.log('------222----', head, body, footer, '------222---------') commit(`${head}\n\n${body}\n\n${footer}`); }); } diff --git a/package.json b/package.json index bcdbc6e9..b92137fd 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,6 @@ "homepage": "https://github.com/luoxue-victor/learn_webpack#readme", "dependencies": { "@commitlint/config-conventional": "^8.2.0", - "inquirer": "^7.0.0", - "jimi-web-changelog": "^0.1.7", - "prompt": "^1.0.0", "webpack": "^4.41.2" }, "devDependencies": {