This my first try to create a CLI using Node, all the magic happen on bin/create-block-theme.js
simply run:
npx @elpuas/create-block-theme
I think this is the fastest way to have a blank based theme and start hacking, This script will fetch and clone my block based theme starter repo. this theme starter has wp-scripts
.
Happy Coding!
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Add
prompts
package. - Add
chalk
package. - Refactor to code to allow prompts to update the theme name, description and author.
- Add commands for remove and init the repo.
- Fixed the
string.test()
conditional that wasn't work as expected.
- Added a new function to change the
package.json
name with the user repo name. - Added a new function to change the theme name on the
styles.css
with the repo name.
- Change the
./bin/create-block-theme.js
and move all functions outside the main file.
- First package release