This is a transformer client for the Handoff frontend API. It reads from a component set of hosted handoff components, and validates them against the Hubspot module specification. It then transpiles the handlebars code into hubspot module code with attached css/js and fields.
npm install -g handoff-hubspot
handoff-hubspot
Commands:
index.js config Build the handoff config
index.js styles Fetch shared styles from handoff
index.js list List the components available in handoff
index.js docs [component] Open the documentation page for a component
index.js fetch [component] Fetch a component and transform it to a hubspot
component
index.js validate [component] Read the component and validate it
index.js validate:all Pull a list of all components and validate them
index.js fetch:all Fetch and build all components
Options:
--version Show version number [boolean]
--help Show help [boolean]
- Node 20, NPM
- A handoff site url
- A hubspot instance if you want to push the components to hubspot
- Run
npm install -g handoff-hubspot
- Run
handoff-hubspot config
. This will ask you for the url to your hubspot instance, the paths to your shared css and your modules folder. - Run
handoff-hubspot list
to get a list of components available to you. - Run
handoff-hubspot fetch [component]
to pull down a component and transpile it to hubspot module.