just-digital-za / wagtail-reuseable-app

A cookiecutter template for building Wagtail add-on packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cookiecutter-wagtail-package

A cookiecutter template for building Wagtail add-on packages.

What's included

This creates a simple Python/Django app with a nested "test" app.

CI

This contains CI configs for both CircleCI and Github Actions. We use two CI services simultaneously to allow fast response times (CircleCI) while also allowing us to run a large test matrix at the same time (Github Actions).

Frontend tooling

This includes a simple webpack setup with TypeScript, React, styled-components, and SVG support.

Note that React is pinned to 16.x because on production it uses the same React library as Wagtail to reduce bundle size.

I haven't yet added a question into the cookiecutter config that excludes this. So if you don't want it, delete it.

How to use

Firstly install cookiecutter:

python -m pip install "cookiecutter>=2"

Then run it like so:

cookiecutter git@github.com:wagtail/cookiecutter-wagtail-package.git

It'll ask for some details about you (name and email) and your project.

When it asks for your project name, exclude the "Wagtail" prefix. For example, if your project is called "Wagtail Llamas", set your project name to "Llamas" and accept all the default project name variants it generates (unless you used a special character in the project name).

About

A cookiecutter template for building Wagtail add-on packages

License:MIT License


Languages

Language:Python 79.4%Language:JavaScript 20.6%