File tree Expand file tree Collapse file tree 5 files changed +41
-36
lines changed
Expand file tree Collapse file tree 5 files changed +41
-36
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,22 @@ $ npx gulp dev
4545
4646After debugging, run the command ` npx gulp ` (without any argument) will automatically output the compressed files to the directory ` assets/js/dist/ ` .
4747
48+ ## Verify the commit messages
49+
50+ If you want to make sure your commits pass the CI check, you can refer to the following steps.
51+
52+ Install ` commitlint ` & ` husky ` :
53+
54+ ``` console
55+ $ npm i -g @commitlint/{cli,config-conventional} husky
56+ ```
57+
58+ And then enable ` husky ` :
59+
60+ ``` console
61+ $ husky install
62+ ```
63+
4864---
4965
5066:tada : Your volunteering will make the open-source world more beautiful, thanks again! :tada :
Original file line number Diff line number Diff line change 11#! /bin/sh
22. " $( dirname " $0 " ) /_/husky.sh"
33
4- npx --no -- commitlint --edit
4+ npx --no -- commitlint -x $( npm root -g ) /@commitlint/config-conventional --edit
Original file line number Diff line number Diff line change 1+ {
2+ "skip" : {
3+ "commit" : true ,
4+ "tag" : true
5+ },
6+ "types" : [
7+ {
8+ "type" : " feat" ,
9+ "section" : " Features"
10+ },
11+ {
12+ "type" : " fix" ,
13+ "section" : " Bug Fixes"
14+ },
15+ {
16+ "type" : " perf" ,
17+ "section" : " Improvements"
18+ }
19+ ]
20+ }
Original file line number Diff line number Diff line change 1212 "url" : " https://github.com/cotes2020/jekyll-theme-chirpy/issues"
1313 },
1414 "homepage" : " https://github.com/cotes2020/jekyll-theme-chirpy#readme" ,
15- "scripts" : {
16- "prepare" : " husky install"
17- },
1815 "devDependencies" : {
19- "@commitlint/cli" : " ^16.2.1" ,
20- "@commitlint/config-conventional" : " ^16.2.1" ,
2116 "gulp" : " ^4.0.2" ,
2217 "gulp-concat" : " ^2.6.1" ,
2318 "gulp-insert" : " ^0.5.0" ,
2419 "gulp-rename" : " ^2.0.0" ,
2520 "gulp-uglify" : " ^3.0.2" ,
26- "husky" : " ^7.0.4" ,
27- "standard-version" : " ^9.3.2" ,
2821 "uglify-js" : " ^3.14.3"
29- },
30- "commitlint" : {
31- "extends" : [
32- " @commitlint/config-conventional"
33- ]
34- },
35- "standard-version" : {
36- "skip" : {
37- "commit" : true ,
38- "tag" : true
39- },
40- "types" : [{
41- "type" : " feat" ,
42- "section" : " Features"
43- },
44- {
45- "type" : " fix" ,
46- "section" : " Bug Fixes"
47- },
48- {
49- "type" : " perf" ,
50- "section" : " Improvements"
51- }
52- ]
5322 }
5423}
Original file line number Diff line number Diff line change 1010#
1111# Usage: run on main branch or the patch branch
1212#
13- # Requires: Git, Node.js, NPX and RubyGems
13+ # Requires: Git, NPM and RubyGems
1414
1515set -eu
1616
@@ -36,7 +36,7 @@ FILES=(
3636TOOLS=(
3737 " git"
3838 " npm"
39- " npx "
39+ " standard-version "
4040 " gem"
4141)
4242
@@ -143,9 +143,9 @@ resume_config() {
143143# auto-generate a new version number to the file 'package.json'
144144standard_version () {
145145 if $opt_pre ; then
146- npx standard-version --prerelease rc
146+ standard-version --prerelease rc
147147 else
148- npx standard-version
148+ standard-version
149149 fi
150150}
151151
You can’t perform that action at this time.
0 commit comments