1.0.6 โ€ข Published 11 months ago

@kobono-studio/create-webflow-starter v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

๐ŸŒ create-webflow-starter

A powerful CLI tool to scaffold modern Webflow projects using Vite and deploy them to GitHub โ€” all with a single command. Whether you're a beginner or a pro, this tool gets you up and running in minutes.


โœจ Features

  • โœ… Interactive prompts to set up your project
  • โš™๏ธ Generates vite.config.js, starter.config.js, ESLint/Prettier config, and package.json
  • ๐Ÿงฑ Adds plugins:
  • ๐Ÿ” Git + GitHub SSH integration with automatic key generation
  • ๐Ÿš€ Optional GitHub deployment (including split repos for private source/public dist)
  • ๐Ÿ“ฆ Installs dependencies and shows you how to start the dev server manually

๐Ÿ’ก Why use this tool?

Using create-webflow-starter simplifies the entire workflow of managing Webflow projects with custom code and modern development tools.

๐Ÿš€ Benefits

  • ๐ŸŽฏ One command setup: Everything is scaffolded and configured in minutes.
  • ๐Ÿง  Smart deployment: Handles GitHub repos, SSH keys, and CDN setup automatically.
  • ๐Ÿงช Works out of the box: ESLint, Prettier, and Vite pre-configured.
  • ๐Ÿ” Versioned deployment: Paired with Git versioning + jsDelivr delivery.

๐Ÿ”Œ Powered by

โžค vite-plugin-webflow-bundler

  • ๐Ÿง  Smart script loading: Automatically chooses between localhost and CDN depending on where your Webflow page is opened.
  • ๐Ÿ” Hot-reload compatible: Works with vite dev for instant local updates.
  • ๐Ÿ“‹ Copy-paste ready: Generates loader snippets you can paste into Webflow custom code areas.
  • ๐Ÿ“ Generates manifest: Includes all scripts and styles, versioned for CDN use.

โžค vite-plugin-github-deploy

  • ๐Ÿ” Handles SSH + GitHub auth
  • โš™๏ธ Creates public/private repos via GitHub API
  • ๐Ÿš€ Pushes build to GitHub for jsDelivr CDN delivery

๐Ÿš€ Quick Start

npm install -g @kobono-studio/create-webflow-starter
create-webflow-starter
# or
npx @kobono-studio/create-webflow-starter

๐Ÿ’ก If you get a permission error, you may need to prefix the install command with sudo:

sudo npm install -g @kobono-studio/create-webflow-starter

Youโ€™ll be prompted for:

  1. ๐Ÿ“› Project name
  2. ๐Ÿ“ Whether to create a new folder
  3. ๐Ÿ”ง Git deployment mode:
    • none
    • public-only
    • split
  4. (if needed) GitHub user/org, branch name, public repo name
  5. ๐Ÿ— Auto-setup of SSH key and GitHub authentication
# Once it's done, follow the instructions:
cd my-project
npm run dev

๐Ÿงฐ Installation Requirements

โœ… Node.js

Install from https://nodejs.org โ€” minimum v18.

โœ… Git + GitHub CLI

macOS

brew install git
brew install gh

You may need to prefix with sudo if you get a permissions error:

sudo brew install git
sudo brew install gh

Windows

Then run:

gh auth login

Choose SSH when asked for protocol. If you don't have a key, one will be generated for you.


๐Ÿง  Git Modes Explained

ModeDescription
noneNo remote Git setup
public-onlyPush entire project to one public repo
splitPush source to private repo, dist/ to public CDN repo

๐Ÿงฉ Perfect for:

  • public-only: open source
  • split: Webflow assets via jsDelivr

๐Ÿ“ Project Structure

my-project/
โ”œโ”€โ”€ dist/
โ”œโ”€โ”€ public/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ css/
โ”‚   โ””โ”€โ”€ script.js
โ”œโ”€โ”€ .eslintignore
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .prettierignore
โ”œโ”€โ”€ .prettierrc
โ”œโ”€โ”€ eslint.config.js
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ starter.config.js
โ””โ”€โ”€ vite.config.js

โš™๏ธ Config Example: starter.config.js

export default {
  cdn: {
    baseUrl: 'https://cdn.jsdelivr.net/gh',
    user: 'your-github-user',
    repo: 'your-public-repo',
    branch: 'main',
    org: true, // optional
  },
  deploy: {
    mode: 'split',
    publicRepo: 'webflow-assets',
    privateRepo: 'source-code-repo',
    branch: 'main',
  },
}

๐Ÿ” Workflow Summary

  1. ๐Ÿ‘‹ You launch: npx create-webflow-starter
  2. ๐Ÿง  You answer a few questions
  3. ๐Ÿ” If needed:
    • SSH key is created
    • GitHub auth is verified
  4. ๐Ÿ“ฆ Project is scaffolded
  5. ๐Ÿ“ Git repos are created if required
  6. ๐Ÿ‘จโ€๐Ÿ’ป Final instructions are shown โ€” just cd into your folder (if needed) and run npm run dev!

๐Ÿงช Webflow Integration Preview

After running:

npm run dev

Visit:

http://localhost:3000/webflow

You'll get a dedicated interface with:

  • ๐Ÿ” A visual preview of your loaders (CSS & JS)
  • ๐Ÿ“‹ Copy-paste buttons for each loader
  • โœ… Snippets that switch automatically between:
    • Local dev (localhost)
    • Production CDN (jsDelivr)

This makes it super easy to integrate modern, versioned scripts directly into Webflow's custom code areas โ€” no guesswork, no manual rewriting.


๐Ÿง  Author

Made with โค๏ธ by Pierre Lovenfosse

๐Ÿ“„ License

MIT โ€” ยฉ Pierre Lovenfosse

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago