Skip to content

Commit 660bd3d

Browse files
committed
[TASK] add ciUpload cmd, update @resultify/hubspot-cms-lib to v3.6.0
1 parent 0d1bcca commit 660bd3d

5 files changed

Lines changed: 104 additions & 265 deletions

File tree

lib/args/args.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const commands = [
1313
'fetchModules',
1414
'upload',
1515
'cleanUpload',
16+
'ciUpload',
1617
'validate',
1718
'lighthouse',
1819
'fields',

lib/init.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ async function cliInit () {
101101
await checkNodeModules(data)
102102
await import('@resultify/hubspot-cms-lib/cleanUpload')
103103
break
104+
case 'ciUpload':
105+
// clean and upload CI files to HubSpot
106+
checkIsHubSpotCmsTheme(data)
107+
checkCliToThemeCompatibility(data, cliPackageJson)
108+
await checkNodeModules(data)
109+
await import('@resultify/hubspot-cms-lib/ciUpload')
110+
break
104111
case 'fetch':
105112
// fetch files from HubSpot
106113
checkIsHubSpotCmsTheme(data)

lib/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
declare module '@resultify/hubspot-cms-lib/upload'
2+
declare module '@resultify/hubspot-cms-lib/ciUpload'
23
declare module '@resultify/hubspot-cms-lib/cleanUpload'
34
declare module '@resultify/hubspot-cms-lib/fetch'
45
declare module '@resultify/hubspot-cms-lib/fetchModules'

0 commit comments

Comments
 (0)