-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGLOBAL README - DO NOT COPY.txt
15 lines (13 loc) · 1.25 KB
/
GLOBAL README - DO NOT COPY.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Remove the default content of src folder EXCEPT vite-end.d.ts (keep vite-end.d.ts)
Copy the content of src folder from react-base to your project
Copy .prettierrc, .prettierignore, .env.development and .env.production to the root of your new React project
Update the content of the .env files
Add "baseUrl": "src" in tsconfig.json > compilerOptions
Ignore .env.development ONLY (do not ignore .env.production) in your .gitignore file (use "# Dotenv" as header comment)
IF YOU'RE GOING TO HOST THE APP ON CPANEL WITH SYMFONY THEN DO NOT IGNORE dist folder, I REPEAT IF YOU'RE GOING TO HOST THE APP ON CPANEL WITH SYMFONY!!!
In index.html > Update <title> tag
In index.html > Update <script type="module" src="/src/[main.tsx INTO index.tsx]"></script>
Run this long pnpm command:
pnpm add @tanstack/react-query recoil @mui/material @mui/icons-material @mui/x-data-grid @mui/lab react-router-dom json-schema @types/json-schema @rjsf/mui @rjsf/core @rjsf/validator-ajv8 @rjsf/utils lodash @types/lodash axios react-dropzone react-compound-timer sass vite-tsconfig-paths tslib
Add tsconfigPaths() as element in the array "defineConfig" > "plugins" in the file vite.config.ts (plugins: [react(), tsconfigPaths()])
import tsconfigPaths from "vite-tsconfig-paths"; (if not autocompleted)