1- const { versioner } = require ( ' ./lib/index' )
2- const path = require ( ' path' )
1+ const { versioner } = require ( " ./lib/index" ) ;
2+ const path = require ( " path" ) ;
33
44module . exports = {
55 commands : [ {
6- name : ' bump-version' ,
6+ name : " bump-version" ,
77 func : ( _ , config , args ) => {
8- if ( args . skipCodeFor === ' all' && args . skipSemverFor === ' all' ) {
8+ if ( args . skipCodeFor === " all" && args . skipSemverFor === " all" ) {
99 // https://i.kym-cdn.com/photos/images/newsfeed/001/240/075/90f.png
10- console . log ( ' My work here is done.' )
11- return
10+ console . log ( " My work here is done." ) ;
11+ return ;
1212 }
1313
1414 const appGradlePath = path . join (
1515 config . project . android . sourceDir ,
1616 config . project . android . appName ,
17- ' build.gradle'
18- )
17+ " build.gradle" ,
18+ ) ;
1919
2020 versioner ( {
2121 root : config . root ,
@@ -24,30 +24,30 @@ module.exports = {
2424 type : args . type ,
2525 semver : args . semver ,
2626 skipCodeFor : args . skipCodeFor
27- ? args . skipCodeFor . split ( ' ' )
27+ ? args . skipCodeFor . split ( " " )
2828 : [ ] ,
2929 skipSemVerFor : args . skipSemverFor
30- ? args . skipSemverFor . split ( ' ' )
31- : [ ]
32- } )
30+ ? args . skipSemverFor . split ( " " )
31+ : [ ] ,
32+ } ) ;
3333 } ,
3434 options : [
3535 {
36- name : ' --type [major|minor|patch]' ,
37- description : ' SemVer release type, optional if --skip-semver-for all is passed'
36+ name : " --type [major|minor|patch]" ,
37+ description : " SemVer release type, optional if --skip-semver-for all is passed" ,
3838 } ,
3939 {
40- name : ' --semver [String]' ,
41- description : ' Pass release version if known. Overwrites calculated SemVer. Optional.'
40+ name : " --semver [String]" ,
41+ description : " Pass release version if known. Overwrites calculated SemVer. Optional." ,
4242 } ,
4343 {
44- name : ' --skip-semver-for [android|ios|all]' ,
45- description : ' Skips bump SemVer for specified platform'
44+ name : " --skip-semver-for [android|ios|all]" ,
45+ description : " Skips bump SemVer for specified platform" ,
4646 } ,
4747 {
48- name : ' --skip-code-for [android|ios|all]' ,
49- description : ' Skips bump version codes for specified platform'
50- }
51- ]
52- } ]
53- }
48+ name : " --skip-code-for [android|ios|all]" ,
49+ description : " Skips bump version codes for specified platform" ,
50+ } ,
51+ ] ,
52+ } ] ,
53+ } ;
0 commit comments