diff --git a/README.md b/README.md
index 84e5916..ec07eb6 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,8 @@
# Create React WP Theme
-Dec. 15, 2019
+Dec. 24, 2019
-[v3.3.0](https://github.com/facebook/create-react-app/releases/tag/v3.3.0) of [Create React App](https://create-react-app.dev/) was released. It's a major change and it's going take me another week to make the changes to `create-react-wptheme`.
-
-But don't let that stop you from creating a new theme now, as updating your theme is quite painless (see [Updating Existing Themes](#updating-existing-themes)) below.
-
-The current release of `create-react-wptheme` is based on [v3.2.0](https://github.com/facebook/create-react-app/releases/tag/v3.2.0) of [Create React App](https://create-react-app.dev/).
+Updated to use [Create React App](https://create-react-app.dev/) version [3.3.0](https://github.com/facebook/create-react-app/releases/tag/v3.3.0).
---
diff --git a/lerna.json b/lerna.json
new file mode 100644
index 0000000..d6707ca
--- /dev/null
+++ b/lerna.json
@@ -0,0 +1,6 @@
+{
+ "packages": [
+ "packages/*"
+ ],
+ "version": "0.0.0"
+}
diff --git a/package.json b/package.json
index b025efc..0b34301 100644
--- a/package.json
+++ b/package.json
@@ -1,54 +1,7 @@
{
- "name": "@devloco/create-react-wptheme",
- "version": "3.2.0-wp.6",
- "description": "Create React WP themes with no build configuration.",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/devloco/create-react-wptheme.git"
- },
- "keywords": [
- "wordpress",
- "create-react-app",
- "wordpress-theme",
- "wordpress-development",
- "wordpress-starter-theme",
- "wordpress-api",
- "reactjs",
- "react",
- "react-theme",
- "wordpress-server",
- "react-tutorial",
- "react-wordpress-themes",
- "php"
- ],
- "author": "devloco",
- "license": "MIT",
- "engines": {
- "node": ">=8"
- },
- "bugs": {
- "url": "https://github.com/devloco/create-react-wptheme/issues"
- },
- "files": [
- "index.js",
- "createReactWpTheme.js"
- ],
- "homepage": "https://github.com/devloco/create-react-wptheme#readme",
- "bin": {
- "create-react-wptheme": "./index.js"
- },
- "dependencies": {
- "chalk": "2.4.2",
- "commander": "2.20.0",
- "cross-spawn": "6.0.5",
- "envinfo": "7.3.1",
- "fs-extra": "7.0.1",
- "semver": "6.3.0",
- "tmp": "0.0.33",
- "validate-npm-package-name": "3.0.0"
+ "name": "root",
+ "private": true,
+ "devDependencies": {
+ "lerna": "^3.19.0"
}
}
diff --git a/packages/cra-template-wptheme-typescript/README.md b/packages/cra-template-wptheme-typescript/README.md
new file mode 100644
index 0000000..9851a25
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/README.md
@@ -0,0 +1,11 @@
+# cra-template-wptheme-typescript
+
+This is the official TypeScript template for [Create React WPTheme](https://github.com/devloco/create-react-wptheme).
+
+To use this template, add `--template typescript` when creating a new wp theme.
+
+For example:
+
+```sh
+npx create-react-wptheme my-theme --template typescript
+```
diff --git a/packages/cra-template-wptheme-typescript/package.json b/packages/cra-template-wptheme-typescript/package.json
new file mode 100644
index 0000000..d28ae33
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/package.json
@@ -0,0 +1,38 @@
+{
+ "name": "cra-template-wptheme-typescript",
+ "version": "3.3.0-wp.1",
+ "keywords": [
+ "wordpress",
+ "create-react-app",
+ "wordpress-theme",
+ "wordpress-development",
+ "wordpress-starter-theme",
+ "wordpress-api",
+ "reactjs",
+ "react",
+ "react-theme",
+ "wordpress-server",
+ "react-tutorial",
+ "react-wordpress-themes",
+ "php",
+ "typescript",
+ "template"
+ ],
+ "description": "The TypeScript template for Create React WPTheme.",
+ "main": "template.json",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/devloco/create-react-wptheme.git"
+ },
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "bugs": {
+ "url": "https://github.com/devloco/create-react-wptheme/issues"
+ },
+ "files": [
+ "template",
+ "template.json"
+ ]
+}
diff --git a/packages/cra-template-wptheme-typescript/template.json b/packages/cra-template-wptheme-typescript/template.json
new file mode 100644
index 0000000..b2c6f8d
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template.json
@@ -0,0 +1,8 @@
+{
+ "dependencies": {
+ "@types/node": "^12.0.0",
+ "@types/react": "^16.9.0",
+ "@types/react-dom": "^16.9.0",
+ "typescript": "~3.7.2"
+ }
+}
diff --git a/packages/cra-template-wptheme-typescript/template/README.md b/packages/cra-template-wptheme-typescript/template/README.md
new file mode 100644
index 0000000..a31481c
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/README.md
@@ -0,0 +1,44 @@
+This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
+
+## Available Scripts
+
+In the project directory, you can run:
+
+### `npm start`
+
+Runs the app in the development mode.
+Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
+
+The page will reload if you make edits.
+You will also see any lint errors in the console.
+
+### `npm test`
+
+Launches the test runner in the interactive watch mode.
+See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
+
+### `npm run build`
+
+Builds the app for production to the `build` folder.
+It correctly bundles React in production mode and optimizes the build for the best performance.
+
+The build is minified and the filenames include the hashes.
+Your app is ready to be deployed!
+
+See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
+
+### `npm run eject`
+
+**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
+
+If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
+
+Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
+
+You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
+
+## Learn More
+
+You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
+
+To learn React, check out the [React documentation](https://reactjs.org/).
diff --git a/packages/cra-template-wptheme-typescript/template/gitignore b/packages/cra-template-wptheme-typescript/template/gitignore
new file mode 100644
index 0000000..4d29575
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/gitignore
@@ -0,0 +1,23 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# production
+/build
+
+# misc
+.DS_Store
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
diff --git a/packages/cra-template-wptheme-typescript/template/public/favicon.ico b/packages/cra-template-wptheme-typescript/template/public/favicon.ico
new file mode 100644
index 0000000..c2c86b8
Binary files /dev/null and b/packages/cra-template-wptheme-typescript/template/public/favicon.ico differ
diff --git a/packages/cra-template-wptheme-typescript/template/public/index.html b/packages/cra-template-wptheme-typescript/template/public/index.html
new file mode 100644
index 0000000..c240d2c
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/public/index.html
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ React App
+
+
+
+
+
+
+
diff --git a/packages/cra-template-wptheme-typescript/template/public/index.php b/packages/cra-template-wptheme-typescript/template/public/index.php
new file mode 100644
index 0000000..faf7b78
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/public/index.php
@@ -0,0 +1,37 @@
+
+
+Now, back in your command prompt, rerun the "start" script again...
+
+
diff --git a/packages/cra-template-wptheme-typescript/template/public/logo192.png b/packages/cra-template-wptheme-typescript/template/public/logo192.png
new file mode 100644
index 0000000..fa313ab
Binary files /dev/null and b/packages/cra-template-wptheme-typescript/template/public/logo192.png differ
diff --git a/packages/cra-template-wptheme-typescript/template/public/logo512.png b/packages/cra-template-wptheme-typescript/template/public/logo512.png
new file mode 100644
index 0000000..bd5d4b5
Binary files /dev/null and b/packages/cra-template-wptheme-typescript/template/public/logo512.png differ
diff --git a/packages/cra-template-wptheme-typescript/template/public/manifest.json b/packages/cra-template-wptheme-typescript/template/public/manifest.json
new file mode 100644
index 0000000..080d6c7
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/public/manifest.json
@@ -0,0 +1,25 @@
+{
+ "short_name": "React App",
+ "name": "Create React App Sample",
+ "icons": [
+ {
+ "src": "favicon.ico",
+ "sizes": "64x64 32x32 24x24 16x16",
+ "type": "image/x-icon"
+ },
+ {
+ "src": "logo192.png",
+ "type": "image/png",
+ "sizes": "192x192"
+ },
+ {
+ "src": "logo512.png",
+ "type": "image/png",
+ "sizes": "512x512"
+ }
+ ],
+ "start_url": ".",
+ "display": "standalone",
+ "theme_color": "#000000",
+ "background_color": "#ffffff"
+}
diff --git a/packages/cra-template-wptheme-typescript/template/public/post_installer.php b/packages/cra-template-wptheme-typescript/template/public/post_installer.php
new file mode 100644
index 0000000..db3f720
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/public/post_installer.php
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ React WordPress Theme
+
+
+
+
+
+
+
diff --git a/packages/cra-template-wptheme-typescript/template/public/robots.txt b/packages/cra-template-wptheme-typescript/template/public/robots.txt
new file mode 100644
index 0000000..01b0f9a
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/public/robots.txt
@@ -0,0 +1,2 @@
+# https://www.robotstxt.org/robotstxt.html
+User-agent: *
diff --git a/packages/cra-template-wptheme-typescript/template/public/screenshot.png b/packages/cra-template-wptheme-typescript/template/public/screenshot.png
new file mode 100644
index 0000000..ed4277c
Binary files /dev/null and b/packages/cra-template-wptheme-typescript/template/public/screenshot.png differ
diff --git a/packages/cra-template-wptheme-typescript/template/public/style.css b/packages/cra-template-wptheme-typescript/template/public/style.css
new file mode 100644
index 0000000..9034d75
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/public/style.css
@@ -0,0 +1,13 @@
+/*
+Theme Name: REPLACE_WITH_THEME_NAME
+Author: your-name
+Author URI: https://github.com/your-github
+Description: Create React WP Themes with no build configuration
+Version: 0.1
+License: GNU General Public License v2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+Tags: starter
+Text Domain: your-domain
+
+This theme, like WordPress, is licensed under the GPL.
+*/
diff --git a/packages/cra-template-wptheme-typescript/template/src/App.css b/packages/cra-template-wptheme-typescript/template/src/App.css
new file mode 100644
index 0000000..afc3885
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/src/App.css
@@ -0,0 +1,22 @@
+.App {
+ text-align: center;
+}
+
+.App-logo {
+ height: 40vmin;
+}
+
+.App-header {
+ background-color: #282c34;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ font-size: calc(10px + 2vmin);
+ color: white;
+}
+
+.App-link {
+ color: #09d3ac;
+}
diff --git a/packages/cra-template-wptheme-typescript/template/src/App.test.tsx b/packages/cra-template-wptheme-typescript/template/src/App.test.tsx
new file mode 100644
index 0000000..a754b20
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/src/App.test.tsx
@@ -0,0 +1,9 @@
+import React from 'react';
+import ReactDOM from 'react-dom';
+import App from './App';
+
+it('renders without crashing', () => {
+ const div = document.createElement('div');
+ ReactDOM.render(, div);
+ ReactDOM.unmountComponentAtNode(div);
+});
diff --git a/packages/cra-template-wptheme-typescript/template/src/App.tsx b/packages/cra-template-wptheme-typescript/template/src/App.tsx
new file mode 100644
index 0000000..7f0f195
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/src/App.tsx
@@ -0,0 +1,26 @@
+import React from 'react';
+import logo from './logo.svg';
+import './App.css';
+
+const App: React.FC = () => {
+ return (
+
+
+
+
+ Edit react-src/src/App.tsx and save to reload.
+
+ );
+};
+
+export default App;
diff --git a/packages/cra-template-wptheme-typescript/template/src/index.css b/packages/cra-template-wptheme-typescript/template/src/index.css
new file mode 100644
index 0000000..ec2585e
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/src/index.css
@@ -0,0 +1,13 @@
+body {
+ margin: 0;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
+ sans-serif;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+code {
+ font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
+ monospace;
+}
diff --git a/packages/cra-template-wptheme-typescript/template/src/index.tsx b/packages/cra-template-wptheme-typescript/template/src/index.tsx
new file mode 100644
index 0000000..825db58
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/src/index.tsx
@@ -0,0 +1,12 @@
+import React from 'react';
+import ReactDOM from 'react-dom';
+import './index.css';
+import App from './App';
+// import * as serviceWorker from './serviceWorker';
+
+ReactDOM.render(, document.getElementById('root'));
+
+// If you want your app to work offline and load faster, you can change
+// unregister() to register() below. Note this comes with some pitfalls.
+// Learn more about service workers: https://bit.ly/CRA-PWA
+// serviceWorker.unregister();
diff --git a/packages/cra-template-wptheme-typescript/template/src/logo.svg b/packages/cra-template-wptheme-typescript/template/src/logo.svg
new file mode 100644
index 0000000..2e5df0d
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/src/logo.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/cra-template-wptheme-typescript/template/src/serviceWorker.ts b/packages/cra-template-wptheme-typescript/template/src/serviceWorker.ts
new file mode 100644
index 0000000..15d90cb
--- /dev/null
+++ b/packages/cra-template-wptheme-typescript/template/src/serviceWorker.ts
@@ -0,0 +1,143 @@
+// This optional code is used to register a service worker.
+// register() is not called by default.
+
+// This lets the app load faster on subsequent visits in production, and gives
+// it offline capabilities. However, it also means that developers (and users)
+// will only see deployed updates on subsequent visits to a page, after all the
+// existing tabs open on the page have been closed, since previously cached
+// resources are updated in the background.
+
+// To learn more about the benefits of this model and instructions on how to
+// opt-in, read https://bit.ly/CRA-PWA
+
+const isLocalhost = Boolean(
+ window.location.hostname === 'localhost' ||
+ // [::1] is the IPv6 localhost address.
+ window.location.hostname === '[::1]' ||
+ // 127.0.0.1/8 is considered localhost for IPv4.
+ window.location.hostname.match(
+ /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
+ )
+);
+
+type Config = {
+ onSuccess?: (registration: ServiceWorkerRegistration) => void;
+ onUpdate?: (registration: ServiceWorkerRegistration) => void;
+};
+
+export function register(config?: Config) {
+ if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
+ // The URL constructor is available in all browsers that support SW.
+ const publicUrl = new URL(
+ (process as { env: { [key: string]: string } }).env.PUBLIC_URL,
+ window.location.href
+ );
+ if (publicUrl.origin !== window.location.origin) {
+ // Our service worker won't work if PUBLIC_URL is on a different origin
+ // from what our page is served on. This might happen if a CDN is used to
+ // serve assets; see https://github.com/facebook/create-react-app/issues/2374
+ return;
+ }
+
+ window.addEventListener('load', () => {
+ const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
+
+ if (isLocalhost) {
+ // This is running on localhost. Let's check if a service worker still exists or not.
+ checkValidServiceWorker(swUrl, config);
+
+ // Add some additional logging to localhost, pointing developers to the
+ // service worker/PWA documentation.
+ navigator.serviceWorker.ready.then(() => {
+ console.log(
+ 'This web app is being served cache-first by a service ' +
+ 'worker. To learn more, visit https://bit.ly/CRA-PWA'
+ );
+ });
+ } else {
+ // Is not localhost. Just register service worker
+ registerValidSW(swUrl, config);
+ }
+ });
+ }
+}
+
+function registerValidSW(swUrl: string, config?: Config) {
+ navigator.serviceWorker
+ .register(swUrl)
+ .then(registration => {
+ registration.onupdatefound = () => {
+ const installingWorker = registration.installing;
+ if (installingWorker == null) {
+ return;
+ }
+ installingWorker.onstatechange = () => {
+ if (installingWorker.state === 'installed') {
+ if (navigator.serviceWorker.controller) {
+ // At this point, the updated precached content has been fetched,
+ // but the previous service worker will still serve the older
+ // content until all client tabs are closed.
+ console.log(
+ 'New content is available and will be used when all ' +
+ 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
+ );
+
+ // Execute callback
+ if (config && config.onUpdate) {
+ config.onUpdate(registration);
+ }
+ } else {
+ // At this point, everything has been precached.
+ // It's the perfect time to display a
+ // "Content is cached for offline use." message.
+ console.log('Content is cached for offline use.');
+
+ // Execute callback
+ if (config && config.onSuccess) {
+ config.onSuccess(registration);
+ }
+ }
+ }
+ };
+ };
+ })
+ .catch(error => {
+ console.error('Error during service worker registration:', error);
+ });
+}
+
+function checkValidServiceWorker(swUrl: string, config?: Config) {
+ // Check if the service worker can be found. If it can't reload the page.
+ fetch(swUrl)
+ .then(response => {
+ // Ensure service worker exists, and that we really are getting a JS file.
+ const contentType = response.headers.get('content-type');
+ if (
+ response.status === 404 ||
+ (contentType != null && contentType.indexOf('javascript') === -1)
+ ) {
+ // No service worker found. Probably a different app. Reload the page.
+ navigator.serviceWorker.ready.then(registration => {
+ registration.unregister().then(() => {
+ window.location.reload();
+ });
+ });
+ } else {
+ // Service worker found. Proceed as normal.
+ registerValidSW(swUrl, config);
+ }
+ })
+ .catch(() => {
+ console.log(
+ 'No internet connection found. App is running in offline mode.'
+ );
+ });
+}
+
+export function unregister() {
+ if ('serviceWorker' in navigator) {
+ navigator.serviceWorker.ready.then(registration => {
+ registration.unregister();
+ });
+ }
+}
diff --git a/packages/cra-template-wptheme/README.md b/packages/cra-template-wptheme/README.md
new file mode 100644
index 0000000..1c797ad
--- /dev/null
+++ b/packages/cra-template-wptheme/README.md
@@ -0,0 +1,5 @@
+# cra-template-wptheme
+
+This is the official base template for [Create React WPTheme](https://github.com/devloco/create-react-wptheme).
+
+If you don't specify a template (for example, `--template typescript`), this template will be used by default.
diff --git a/packages/cra-template-wptheme/package.json b/packages/cra-template-wptheme/package.json
new file mode 100644
index 0000000..dfb9256
--- /dev/null
+++ b/packages/cra-template-wptheme/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "@devloco/cra-template-wptheme",
+ "version": "3.3.0-wp.1",
+ "keywords": [
+ "wordpress",
+ "create-react-app",
+ "wordpress-theme",
+ "wordpress-development",
+ "wordpress-starter-theme",
+ "wordpress-api",
+ "reactjs",
+ "react",
+ "react-theme",
+ "wordpress-server",
+ "react-tutorial",
+ "react-wordpress-themes",
+ "php",
+ "template"
+ ],
+ "description": "The base template for Create React WPTheme.",
+ "main": "template.json",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/devloco/create-react-wptheme.git"
+ },
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "bugs": {
+ "url": "https://github.com/devloco/create-react-wptheme/issues"
+ },
+ "files": [
+ "template",
+ "template.json"
+ ]
+}
diff --git a/packages/cra-template-wptheme/template.json b/packages/cra-template-wptheme/template.json
new file mode 100644
index 0000000..92a4250
--- /dev/null
+++ b/packages/cra-template-wptheme/template.json
@@ -0,0 +1,3 @@
+{
+ "dependencies": {}
+}
diff --git a/packages/cra-template-wptheme/template/README.md b/packages/cra-template-wptheme/template/README.md
new file mode 100644
index 0000000..859d27a
--- /dev/null
+++ b/packages/cra-template-wptheme/template/README.md
@@ -0,0 +1,68 @@
+This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
+
+## Available Scripts
+
+In the project directory, you can run:
+
+### `npm start`
+
+Runs the app in the development mode.
+Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
+
+The page will reload if you make edits.
+You will also see any lint errors in the console.
+
+### `npm test`
+
+Launches the test runner in the interactive watch mode.
+See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
+
+### `npm run build`
+
+Builds the app for production to the `build` folder.
+It correctly bundles React in production mode and optimizes the build for the best performance.
+
+The build is minified and the filenames include the hashes.
+Your app is ready to be deployed!
+
+See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
+
+### `npm run eject`
+
+**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
+
+If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
+
+Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
+
+You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
+
+## Learn More
+
+You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
+
+To learn React, check out the [React documentation](https://reactjs.org/).
+
+### Code Splitting
+
+This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
+
+### Analyzing the Bundle Size
+
+This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
+
+### Making a Progressive Web App
+
+This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
+
+### Advanced Configuration
+
+This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
+
+### Deployment
+
+This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
+
+### `npm run build` fails to minify
+
+This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
diff --git a/packages/cra-template-wptheme/template/gitignore b/packages/cra-template-wptheme/template/gitignore
new file mode 100644
index 0000000..4d29575
--- /dev/null
+++ b/packages/cra-template-wptheme/template/gitignore
@@ -0,0 +1,23 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# production
+/build
+
+# misc
+.DS_Store
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
diff --git a/packages/cra-template-wptheme/template/public/favicon.ico b/packages/cra-template-wptheme/template/public/favicon.ico
new file mode 100644
index 0000000..c2c86b8
Binary files /dev/null and b/packages/cra-template-wptheme/template/public/favicon.ico differ
diff --git a/packages/cra-template-wptheme/template/public/index.html b/packages/cra-template-wptheme/template/public/index.html
new file mode 100644
index 0000000..c240d2c
--- /dev/null
+++ b/packages/cra-template-wptheme/template/public/index.html
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ React App
+
+
+
+
+
+
+
diff --git a/packages/cra-template-wptheme/template/public/index.php b/packages/cra-template-wptheme/template/public/index.php
new file mode 100644
index 0000000..faf7b78
--- /dev/null
+++ b/packages/cra-template-wptheme/template/public/index.php
@@ -0,0 +1,37 @@
+
+
+Now, back in your command prompt, rerun the "start" script again...
+
+
diff --git a/packages/cra-template-wptheme/template/public/logo192.png b/packages/cra-template-wptheme/template/public/logo192.png
new file mode 100644
index 0000000..fa313ab
Binary files /dev/null and b/packages/cra-template-wptheme/template/public/logo192.png differ
diff --git a/packages/cra-template-wptheme/template/public/logo512.png b/packages/cra-template-wptheme/template/public/logo512.png
new file mode 100644
index 0000000..bd5d4b5
Binary files /dev/null and b/packages/cra-template-wptheme/template/public/logo512.png differ
diff --git a/packages/cra-template-wptheme/template/public/manifest.json b/packages/cra-template-wptheme/template/public/manifest.json
new file mode 100644
index 0000000..080d6c7
--- /dev/null
+++ b/packages/cra-template-wptheme/template/public/manifest.json
@@ -0,0 +1,25 @@
+{
+ "short_name": "React App",
+ "name": "Create React App Sample",
+ "icons": [
+ {
+ "src": "favicon.ico",
+ "sizes": "64x64 32x32 24x24 16x16",
+ "type": "image/x-icon"
+ },
+ {
+ "src": "logo192.png",
+ "type": "image/png",
+ "sizes": "192x192"
+ },
+ {
+ "src": "logo512.png",
+ "type": "image/png",
+ "sizes": "512x512"
+ }
+ ],
+ "start_url": ".",
+ "display": "standalone",
+ "theme_color": "#000000",
+ "background_color": "#ffffff"
+}
diff --git a/packages/cra-template-wptheme/template/public/post_installer.php b/packages/cra-template-wptheme/template/public/post_installer.php
new file mode 100644
index 0000000..db3f720
--- /dev/null
+++ b/packages/cra-template-wptheme/template/public/post_installer.php
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ React WordPress Theme
+
+
+
+
+
+
+
diff --git a/packages/cra-template-wptheme/template/public/robots.txt b/packages/cra-template-wptheme/template/public/robots.txt
new file mode 100644
index 0000000..01b0f9a
--- /dev/null
+++ b/packages/cra-template-wptheme/template/public/robots.txt
@@ -0,0 +1,2 @@
+# https://www.robotstxt.org/robotstxt.html
+User-agent: *
diff --git a/packages/cra-template-wptheme/template/public/screenshot.png b/packages/cra-template-wptheme/template/public/screenshot.png
new file mode 100644
index 0000000..ed4277c
Binary files /dev/null and b/packages/cra-template-wptheme/template/public/screenshot.png differ
diff --git a/packages/cra-template-wptheme/template/public/style.css b/packages/cra-template-wptheme/template/public/style.css
new file mode 100644
index 0000000..9034d75
--- /dev/null
+++ b/packages/cra-template-wptheme/template/public/style.css
@@ -0,0 +1,13 @@
+/*
+Theme Name: REPLACE_WITH_THEME_NAME
+Author: your-name
+Author URI: https://github.com/your-github
+Description: Create React WP Themes with no build configuration
+Version: 0.1
+License: GNU General Public License v2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+Tags: starter
+Text Domain: your-domain
+
+This theme, like WordPress, is licensed under the GPL.
+*/
diff --git a/packages/cra-template-wptheme/template/src/App.css b/packages/cra-template-wptheme/template/src/App.css
new file mode 100644
index 0000000..afc3885
--- /dev/null
+++ b/packages/cra-template-wptheme/template/src/App.css
@@ -0,0 +1,22 @@
+.App {
+ text-align: center;
+}
+
+.App-logo {
+ height: 40vmin;
+}
+
+.App-header {
+ background-color: #282c34;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ font-size: calc(10px + 2vmin);
+ color: white;
+}
+
+.App-link {
+ color: #09d3ac;
+}
diff --git a/packages/cra-template-wptheme/template/src/App.js b/packages/cra-template-wptheme/template/src/App.js
new file mode 100644
index 0000000..e55c89f
--- /dev/null
+++ b/packages/cra-template-wptheme/template/src/App.js
@@ -0,0 +1,26 @@
+import React from 'react';
+import logo from './logo.svg';
+import './App.css';
+
+function App() {
+ return (
+