Skip to content

Commit

Permalink
feat: asd
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxue committed Nov 18, 2019
1 parent 382c60c commit d278787
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions commit/lib/cz/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const getList = (obj) => {

module.exports = function (options) {
const typeList = getList(options.types);
const inquirer = require('inquirer')


return {
prompter(cz, commit) {
Expand Down Expand Up @@ -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 个字符串
Expand All @@ -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}`);
});
}
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit d278787

Please sign in to comment.