This is a very simple set of files to get up and running with Gutenberg blocks. It has a simple webpack file to build, lint, and babel-ify javascript. It also compiles Stylus files, and then enqueues everything in a really basic plugin.
To use, just download the files and put it into the plugins directory. Then:
cd
to the plugin directory in terminal- run
npm install
oryarn install
depending on your preference - run
npm run develop
oryarn develop
to watch files while developing
If you want to use image optimization, you'll need to provide a tinyPNG API key in the webpack config file. Once you have the key, add it to webpack.config.js
:
var imageOptimizer = new tinyPng({
key: "YOUR_API_KEY_HERE"
);