File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ const commands = [
1414 'upload' ,
1515 'cleanUpload' ,
1616 'ciUpload' ,
17+ 'uploadModule' ,
18+ 'buildModule' ,
1719 'validate' ,
1820 'lighthouse' ,
1921 'fields' ,
Original file line number Diff line number Diff line change @@ -108,6 +108,20 @@ async function cliInit () {
108108 await checkNodeModules ( data )
109109 await import ( '@resultify/hubspot-cms-lib/ciUpload' )
110110 break
111+ case 'uploadModule' :
112+ // upload standalone modules to the root of HUBSPOT cms portall
113+ checkIsHubSpotCmsTheme ( data )
114+ checkCliToThemeCompatibility ( data , cliPackageJson )
115+ await checkNodeModules ( data )
116+ await import ( '@resultify/hubspot-cms-lib/uploadModule' )
117+ break
118+ case 'buildModule' :
119+ // build standalone modules
120+ checkIsHubSpotCmsTheme ( data )
121+ checkCliToThemeCompatibility ( data , cliPackageJson )
122+ await checkNodeModules ( data )
123+ await import ( '@resultify/hubspot-cms-lib/buildModule' )
124+ break
111125 case 'fetch' :
112126 // fetch files from HubSpot
113127 checkIsHubSpotCmsTheme ( data )
You can’t perform that action at this time.
0 commit comments