Skip to content

Commit

Permalink
feat(daasd): asdasd
Browse files Browse the repository at this point in the history
asdasd
  • Loading branch information
luoxue committed Nov 18, 2019
1 parent 73abf42 commit 0b6ee85
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions commit/lib/cz/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const filter = (array) => {
return x;
});
};

// 获取选择列表
const getList = (obj) => {
const objLeng = longest(Object.keys(obj)).length * 2 + 1;
Expand All @@ -37,7 +37,9 @@ module.exports = function (options) {
}, {
type: 'input',
name: 'scope',
message: '本次提交的改变所影响的范围? (按 enter 键跳过)\n',
required: true,
pattern: /^\w+$/,
// message: '本次提交的改变所影响的范围?',
}, {
type: 'input',
name: 'subject',
Expand Down
12 changes: 6 additions & 6 deletions commit/lib/cz/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,25 @@ module.exports = engine({
}
},
scopes: {
整个项目: {
global: {
description: '影响整个项目',
title: 'global'
},
视图层: {
ui: {
description: 'UI 界面',
title: 'ui'
},
数据层: {
data: {
description: '数据变化',
title: 'data'
},
公共模块: {
component: {
description: '影响公共组件使用',
title: 'component'
},
未知: {
unknown: {
description: '不知道影响范围',
title: 'component'
title: 'unknown'
}
}
});

0 comments on commit 0b6ee85

Please sign in to comment.