@devloco/cra-template-wptheme-typescript
v3.3.0-wp.8
Published
The TypeScript template for Create React WPTheme.
Downloads
4
Maintainers
Readme
cra-template-wptheme-typescript
This is the official TypeScript template for Create React WPTheme.
To use this template, add --typescript
when creating a new wp theme.
For example:
npx create-react-wptheme my-theme --typescript
Create React WP Theme
See the latest README on Github.
Goals
- Remove WebPackDevServer and use your WordPress dev server instead.
- Also, do not proxy the WordPress server.
- Thus removing CORS as a concern.
- Maintain feature parity(ish) with
create-react-app
- Touch the original
react-scripts
as little as possible.- Add new files where possible.
- This will make merges easier.
Acknowledgements
I'm grateful to the authors of existing related projects for their ideas and collaboration:
The original.
I used this as an example for writing my own plugin for watching changes to the create-react-app "public" folder.
License
Create React WP Theme is open source software licensed as MIT.