See Bridgetown resources.

Set up a new Bridgetown project

Use the Bridgetown CLI to set up a new project, including sample content and dependencies.

The advantage of this is that you can skip installing Bridgetown in your global gems, but you still get use Bridgetown to create a basic project for you so you can get running quickly.

Requirements

Steps

Here’s is what we’ll do.

  1. Set up an initial project with a Gemfile only
  2. Configure Bundler to run the project scope without getting errors that you need root access.
  3. Use that to install a Bridgetown at the project level.
  4. Create a new Bridgetown project in the same directory (overwriting the temporary Gemfile).

Run these in your shell.

$ mkdir my-site
$ cd my-site

$ bundle config set --local path vendor/bundle

$ bundle init
$ bundle add bridgetown

$ bundle exec bridgetown new . --force

Start the dev server.

$ yarn start

To get an idea of the site you’ll generate, see my bridgetown-quickstart repo.

Add plugin

Add a plugin with the bridgetown_plugins group.

$ bundle add some-new-plugin -g bridgetown_plugins