Please use @wordpress/create-block as an alternative.
A Gutenberg block starter for WebDevStudios projects. For more info on the WordPress Block API, check out the Gutenberg Handbook.
We highly recommend NVM so you can easily switch between Node versions.
Easily scaffold a block via CLI:
npx @webdevstudios/create-block WebDevStudios/TodoList
cd todo-list
npm run startSee @webdevstudios/create-block for more information and options.
Install dependencies:
npm installRename the files and functions to meet your needs.
Watch for changes:
npm run startBuild a production version:
npm run buildLint JS:
npm run lint:jsLint SCSS/CSS:
npm run lint:cssLint PHP:
composer run lintThe optional webpack.config.js file includes the @wordpress/scripts defaults, along with an entry path for /src/frontend.js. The frontend entry path is conditionally included and is not a requirement. It can be safely deleted.
Your contributions and support tickets are welcome. Please see our guidelines before submitting a pull request.
- Fix stylesheet enqueue
- Add support for Prettier
- Add support for Stylelint
- Add
block.json - Improve alignment with Gutenberg's use of
@wordpress/scripts - Improve PHP linting via Composer
- Mention that
webpack.config.jsis optional
- Add support for @wordpress/scripts
12.1.1 - Update webpack config
- Add import statements for SCSS files
- Initial block starter setup.
