vixdigital / wagtail-plugin-base

A basic template for creating wagtail javascript plugins.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wagtail plugin base

A basic template for creating wagtail javascript plugins.

Prerequisites

Getting started

  • Fork the project
  • yarn install or npm install to install webpack dependencies.
  • Update setup.py with your own desired plugin information.
  • Change other instances of 'plugin-base' to your own plugin name (incl. in webpack.config.js).

Usage

  • Write your plugin JavaScript in the src folder.
  • yarn run build (or npm run build) will bundle the assets from the src directory into the [plugin-name]/static directory.
  • python setup.py sdist will build your python package into a dist/ directory.
  • twine upload dist/* will upload your built packages to PyPi.

Resources

About

A basic template for creating wagtail javascript plugins.


Languages

Language:Python 86.3%Language:JavaScript 13.7%