|
1 | 1 | # wp-react-kit |
2 | | -A simple starter kit to work in WordPress with WP-script, React, React Router, Tailwind CSS, PostCSS, Eslint, i18n easily in a minute. |
| 2 | +A simple starter kit to work in WordPress with WP-script, React, React Router, Tailwind CSS, PostCSS, Eslint, i18n, PHP OOP plugin architecture easily in a minute. |
3 | 3 |
|
4 | 4 | ---- |
5 | 5 |
|
@@ -41,41 +41,82 @@ Or, it could be your custom processed URL. |
41 | 41 | vendor/bin/phpcs . |
42 | 42 | ``` |
43 | 43 |
|
44 | | -**Or, get specific file errors of the project:** |
| 44 | +**Fix all errors of the project:** |
45 | 45 | ```sh |
46 | | -vendor/bin/phpcs job-place.php |
| 46 | +vendor/bin/phpcbf . |
47 | 47 | ``` |
48 | 48 |
|
49 | | -**Fix all errors of the project:** |
| 49 | +<details> |
| 50 | + <summary>Options for specific files:</summary> |
| 51 | + |
| 52 | +**Get specific file errors of the project:** |
50 | 53 | ```sh |
51 | | -vendor/bin/phpcbf . |
| 54 | +vendor/bin/phpcs job-place.php |
52 | 55 | ``` |
53 | 56 |
|
54 | | -**Or, fix specific file errors of the project:** |
| 57 | + |
| 58 | +**Fix specific file errors of the project:** |
55 | 59 | ```sh |
56 | 60 | vendor/bin/phpcbf job-place.php |
57 | 61 | ``` |
| 62 | +</details> |
| 63 | + |
58 | 64 |
|
59 | 65 | ### Versions |
60 | | -1. Simple Version with raw PHP - https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vSimple |
| 66 | +<details> |
| 67 | + <summary>Simple Version with raw PHP</summary> |
| 68 | + |
| 69 | +https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vSimple |
| 70 | +</details> |
| 71 | + |
| 72 | +<details> |
| 73 | + <summary>Version with EsLint and i18n Setup</summary> |
61 | 74 |
|
62 | | -File structure: |
| 75 | +https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vSimpleEslint |
| 76 | +</details> |
63 | 77 |
|
64 | | - |
65 | 78 |
|
66 | | -2. Version with EsLint and i18n Setup - https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vSimpleEslint |
| 79 | +<details> |
| 80 | + <summary>Version with EsLint, i18n and React Router Setup</summary> |
67 | 81 |
|
68 | | -3. Version with EsLint, i18n and React Router Setup - https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vReactRouter |
| 82 | +https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vReactRouter |
| 83 | +</details> |
| 84 | + |
| 85 | +<details> |
| 86 | + <summary>Version with PostCSS and Tailwind CSS Setup</summary> |
69 | 87 |
|
70 | | -4. Version with PostCSS and Tailwind CSS Setup - |
71 | 88 | https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vTailwindCss |
| 89 | +</details> |
| 90 | + |
| 91 | +<details> |
| 92 | + <summary>Version with PHPCS setup</summary> |
72 | 93 |
|
73 | | -5. Version with PHPCS setup - |
74 | 94 | https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vPHPCS |
| 95 | +</details> |
| 96 | + |
| 97 | +<details> |
| 98 | + <summary>Version with PHP OOP Architecture</summary> |
| 99 | + |
| 100 | +https://github.com/ManiruzzamanAkash/wp-react-kit/releases/tag/vPhpOOP |
| 101 | +</details> |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | +### File structure: |
| 106 | +<details> |
| 107 | + <summary>Simple Version Code-Structure:</summary> |
| 108 | + |
| 109 | + |
| 110 | +</details> |
75 | 111 |
|
76 | 112 | ### Demo with Simple Version |
77 | 113 |
|
| 114 | +<details> |
| 115 | + <summary>Demo in WordPress plugin:</summary> |
| 116 | + |
78 | 117 |  |
| 118 | +</details> |
| 119 | + |
79 | 120 |
|
80 | 121 | ### Demo With React Router & Menu |
81 | 122 |
|
|
0 commit comments