@d-zero/cz-config 5.0.0-alpha.27 → 5.0.0-alpha.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,3 +22,12 @@ yarn add -D @d-zero/cz-config
22
22
  }
23
23
  }
24
24
  ```
25
+
26
+ UI用のコミットタイプ利用したい場合は`@d-zero/cz-config/ui`に変更します。
27
+
28
+ ```diff
29
+ "cz-customizable": {
30
+ - "config": "./node_modules/@d-zero/cz-config"
31
+ + "config": "./node_modules/@d-zero/cz-config/ui"
32
+ }
33
+ ```
package/index.js CHANGED
@@ -1,37 +1,15 @@
1
1
  const scopes = require('./scopes');
2
+ const types = require('./types');
2
3
 
3
4
  module.exports = {
4
5
  types: [
5
- {
6
- value: 'feat',
7
- name: 'feat: 機能追加',
8
- title: 'Features',
9
- },
10
- {
11
- value: 'fix',
12
- name: 'fix: バグ修正',
13
- title: 'Bug Fixes',
14
- },
15
- {
16
- value: 'docs',
17
- name: 'docs: ドキュメントのみの変更',
18
- title: 'Documentation',
19
- },
20
- {
21
- value: 'refactor',
22
- name: 'refactor: バグの修正や機能の追加ではないコードの変更',
23
- title: 'Code Refactoring',
24
- },
25
- {
26
- value: 'test',
27
- name: 'test: テストの追加や既存のテストの修正',
28
- title: 'Tests',
29
- },
30
- {
31
- value: 'chore',
32
- name: 'chore: ビルドプロセスや補助ツールやライブラリの変更',
33
- title: 'Chores',
34
- },
6
+ // Default
7
+ types.feat,
8
+ types.fix,
9
+ types.docs,
10
+ types.refactor,
11
+ types.test,
12
+ types.chore,
35
13
  ],
36
14
  scopes: scopes.map((scope) => ({
37
15
  name: scope,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/cz-config",
3
- "version": "5.0.0-alpha.27",
3
+ "version": "5.0.0-alpha.28",
4
4
  "description": "Configurations of cz-customizable",
5
5
  "repository": "https://github.com/d-zero-dev/linters.git",
6
6
  "author": "D-ZERO Co., Ltd.",
@@ -15,6 +15,7 @@
15
15
  "type": "commonjs",
16
16
  "exports": {
17
17
  ".": "./index.js",
18
+ "./ui": "./ui.js",
18
19
  "./scopes": "./scopes.js"
19
20
  },
20
21
  "files": [
@@ -24,5 +25,5 @@
24
25
  "commitizen": "4.3.0",
25
26
  "cz-customizable": "7.0.0"
26
27
  },
27
- "gitHead": "e242c94f0d60699e44925a118811a74c62b9a633"
28
+ "gitHead": "9988e468b46c5f22f36a4f39babf66a4f7924e9b"
28
29
  }
package/types.js ADDED
@@ -0,0 +1,42 @@
1
+ module.exports = {
2
+ feat: {
3
+ value: 'feat',
4
+ name: 'feat: 機能追加',
5
+ title: 'Features',
6
+ },
7
+ fix: {
8
+ value: 'fix',
9
+ name: 'fix: バグ修正',
10
+ title: 'Bug Fixes',
11
+ },
12
+ ui: {
13
+ value: 'ui',
14
+ name: 'ui スタイル以外のUIの変更',
15
+ title: 'Improvements to the UI',
16
+ },
17
+ style: {
18
+ value: 'style',
19
+ name: 'style UIのスタイル変更',
20
+ title: 'Styling',
21
+ },
22
+ docs: {
23
+ value: 'docs',
24
+ name: 'docs: ドキュメントのみの変更',
25
+ title: 'Documentation',
26
+ },
27
+ refactor: {
28
+ value: 'refactor',
29
+ name: 'refactor: バグの修正や機能の追加ではないコードの変更',
30
+ title: 'Code Refactoring',
31
+ },
32
+ test: {
33
+ value: 'test',
34
+ name: 'test: テストの追加や既存のテストの修正',
35
+ title: 'Tests',
36
+ },
37
+ chore: {
38
+ value: 'chore',
39
+ name: 'chore: ビルドプロセスや補助ツールやライブラリの変更',
40
+ title: 'Chores',
41
+ },
42
+ };
package/ui.js ADDED
@@ -0,0 +1,18 @@
1
+ const types = require('./types');
2
+
3
+ const base = require('./index');
4
+
5
+ module.exports = {
6
+ ...base,
7
+ types: [
8
+ // Add UI type
9
+ types.feat,
10
+ types.fix,
11
+ types.ui,
12
+ types.style,
13
+ types.docs,
14
+ types.refactor,
15
+ types.test,
16
+ types.chore,
17
+ ],
18
+ };