@devloco/cra-template-wptheme-typescript

3.3.0-wp.8 • Public • Published

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:

License

Create React WP Theme is open source software licensed as MIT.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @devloco/cra-template-wptheme-typescript

      Weekly Downloads

      2

      Version

      3.3.0-wp.8

      License

      MIT

      Unpacked Size

      126 kB

      Total Files

      22

      Last publish

      Collaborators

      • devloco