npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hubspot/create-cms-theme

v1.0.6

Published

HubSpot CMS React starter theme

Downloads

250

Readme

Create HubSpot CMS Theme

The quickest way to get started using CMS React is by using @hubspot/create-cms-theme. This CLI tool will generate a starter theme for you to use as a starting point with all the configuration complete and a set of example building blocks to reference or build upon. Speeding up your ability to begin local development with the HubSpot CMS.

Prerequisites

  • Node.js (version 20 or higher)
  • A HubSpot CMS Developer account (or access to a HubSpot portal with CMS access)

To get started, run the following command:

npx @hubspot/create-cms-theme@latest

After running the command, you will be prompted to answer a few questions to customize your starter theme.

Prompts:

? What is the name of your theme?

This will be the name that appears in the HubSpot CMS UI when selecting a theme and the name of your Project when accessing your build/deploy information.

? What directory do you want to create your theme in?

This is the parent directory that we will create your theme in. For example if the answer to What is the name of your theme? is MyCmsReactTheme and the answer to this question is /your-theme-directory, then the starter theme will be created in /your-theme-directory/MyCmsReactTheme.

? Do you want to use TypeScript?

This will determine if we setup your theme with TypeScript. If you select No, we will setup your theme with JavaScript.

Directory Structure (WIP)

Upon completion, your theme will have this structure:

your-theme-directory/
├── src/
│   └── theme/
│       ├── assets/
│       ├── components/
│       │   └── modules/
│       ├── styles/
│       ├── templates/
│       ├── fields.json
│       ├── theme.json
│       └── package.json
├── package.json
├── hsproject.json

Local Development

After creating your theme, you can begin local development by running:

npm run start

Additional Resources