Skip to content

Commit 718353a

Browse files
aichbauerJPeer264
authored andcommitted
✨ Feat: added all types for .sgcrc_default
1 parent bc42f43 commit 718353a

File tree

3 files changed

+150
-11
lines changed

3 files changed

+150
-11
lines changed

.sgcrc_default

Lines changed: 52 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,54 @@
11
{
2-
"types": [{
3-
"emoji": ":emo:",
4-
"prefix": "Add:",
5-
"description": "Files added"
6-
}]
2+
"types": [
3+
{
4+
"emoji": ":emo:",
5+
"prefix": "Add:",
6+
"description": "Files added"
7+
},
8+
{
9+
"emoji": ":wrench:",
10+
"prefix": "Chore:",
11+
"description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) and moving files"
12+
},
13+
{
14+
"emoji": ":construction_worker:",
15+
"prefix": "CI:",
16+
"description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)"
17+
},
18+
{
19+
"emoji": ":memo:",
20+
"prefix": "Docs:",
21+
"description": "Documentation only changes"
22+
},
23+
{
24+
"emoji": ":sparkles:",
25+
"prefix": "Feat:",
26+
"description": "A new feature"
27+
},
28+
{
29+
"emoji": ":bug:",
30+
"prefix": "Fix:",
31+
"description": "A bug fix"
32+
},
33+
{
34+
"emoji": ":zapr:",
35+
"prefix": "Perf:",
36+
"description": "A code change that improves performance"
37+
},
38+
{
39+
"emoji": ":hammer:",
40+
"prefix": "Refactor:",
41+
"description": "A code change that neither fixes a bug nor adds a feature"
42+
},
43+
{
44+
"emoji": ":art:",
45+
"prefix": "Style:",
46+
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"
47+
},
48+
{
49+
"emoji": ":white_check_mark:",
50+
"prefix": "Test:",
51+
"description": "Adding missing tests or correcting existing tests"
52+
}
53+
]
754
}

package.json

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,51 @@
3535
"emoji": ":emo:",
3636
"prefix": "Add:",
3737
"description": "Files added"
38+
},
39+
{
40+
"emoji": ":wrench:",
41+
"prefix": "Chore:",
42+
"description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) and moving files"
43+
},
44+
{
45+
"emoji": ":construction_worker:",
46+
"prefix": "CI:",
47+
"description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)"
48+
},
49+
{
50+
"emoji": ":memo:",
51+
"prefix": "Docs:",
52+
"description": "Documentation only changes"
53+
},
54+
{
55+
"emoji": ":sparkles:",
56+
"prefix": "Feat:",
57+
"description": "A new feature"
58+
},
59+
{
60+
"emoji": ":bug:",
61+
"prefix": "Fix:",
62+
"description": "A bug fix"
63+
},
64+
{
65+
"emoji": ":zapr:",
66+
"prefix": "Perf:",
67+
"description": "A code change that improves performance"
68+
},
69+
{
70+
"emoji": ":hammer:",
71+
"prefix": "Refactor:",
72+
"description": "A code change that neither fixes a bug nor adds a feature"
73+
},
74+
{
75+
"emoji": ":art:",
76+
"prefix": "Style:",
77+
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"
78+
},
79+
{
80+
"emoji": ":white_check_mark:",
81+
"prefix": "Test:",
82+
"description": "Adding missing tests or correcting existing tests"
3883
}
3984
]
4085
},
@@ -66,4 +111,4 @@
66111
"json-extra": "^0.5.0",
67112
"yargs": "^7.0.2"
68113
}
69-
}
114+
}

test/fixtures/.sgcrc

Lines changed: 52 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,54 @@
11
{
2-
"types": [{
3-
"emoji": ":emo:",
4-
"prefix": "Add:",
5-
"description": "Files added"
6-
}]
2+
"types": [
3+
{
4+
"emoji": ":emo:",
5+
"prefix": "Add:",
6+
"description": "Files added"
7+
},
8+
{
9+
"emoji": ":wrench:",
10+
"prefix": "Chore:",
11+
"description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) and moving files"
12+
},
13+
{
14+
"emoji": ":construction_worker:",
15+
"prefix": "CI:",
16+
"description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)"
17+
},
18+
{
19+
"emoji": ":memo:",
20+
"prefix": "Docs:",
21+
"description": "Documentation only changes"
22+
},
23+
{
24+
"emoji": ":sparkles:",
25+
"prefix": "Feat:",
26+
"description": "A new feature"
27+
},
28+
{
29+
"emoji": ":bug:",
30+
"prefix": "Fix:",
31+
"description": "A bug fix"
32+
},
33+
{
34+
"emoji": ":zapr:",
35+
"prefix": "Perf:",
36+
"description": "A code change that improves performance"
37+
},
38+
{
39+
"emoji": ":hammer:",
40+
"prefix": "Refactor:",
41+
"description": "A code change that neither fixes a bug nor adds a feature"
42+
},
43+
{
44+
"emoji": ":art:",
45+
"prefix": "Style:",
46+
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"
47+
},
48+
{
49+
"emoji": ":white_check_mark:",
50+
"prefix": "Test:",
51+
"description": "Adding missing tests or correcting existing tests"
52+
}
53+
]
754
}

0 commit comments

Comments
 (0)