Skip to content

Commit 14cd62d

Browse files
authored
Merge branch 'development' into add_husky_script
2 parents 49da080 + 9cd640b commit 14cd62d

File tree

9 files changed

+1041
-417
lines changed

9 files changed

+1041
-417
lines changed

client/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"@mui/icons-material": "^5.14.19",
1111
"@mui/material": "^5.16.7",
1212
"@mui/x-date-pickers": "^7.21.0",
13+
"@tailwindcss/vite": "^4.1.10",
1314
"@vitejs/plugin-react": "^4.0.3",
1415
"@vitejs/plugin-react-swc": "^3.3.2",
1516
"classnames": "^2.2.6",
@@ -29,8 +30,9 @@
2930
"react-dom": "^18.2.0",
3031
"react-hook-form": "^7.44.3",
3132
"react-router-dom": "^5.1.2",
33+
"tailwindcss": "^4.1.10",
3234
"validator": "^13.7.0",
33-
"vite": "^4.5.14",
35+
"vite": "^5.4.19",
3436
"vite-plugin-svgr": "^3.2.0"
3537
},
3638
"scripts": {

client/postcss.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
plugins: [require('autoprefixer')],
3+
};

client/src/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import './index.scss';
4+
import './tailwind.css';
45
import App from './App';
56
import { BrowserRouter } from 'react-router-dom';
67
import { SnackbarProvider } from './context/snackbarContext';

client/src/tailwind.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'tailwindcss';

client/tailwind.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: ['./index.html', './src/**/*.{js,jsx,ts,tsx}'],
4+
theme: {
5+
extend: {},
6+
},
7+
plugins: [],
8+
};

client/vite.config.mjs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
import { defineConfig, loadEnv } from 'vite'
2-
import react from '@vitejs/plugin-react-swc'
3-
import svgr from "vite-plugin-svgr";
1+
import { defineConfig, loadEnv } from 'vite';
2+
import react from '@vitejs/plugin-react-swc';
3+
import svgr from 'vite-plugin-svgr';
4+
import tailwindcss from '@tailwindcss/vite';
5+
import { fileURLToPath } from 'url';
6+
import { dirname } from 'path';
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = dirname(__filename);
410

511
export default defineConfig(({ mode }) => {
612
// Load env file based on`mode in the current working directory.
7-
const env = loadEnv(mode, process.cwd(), '');
13+
const env = loadEnv(mode, __dirname, '');
814
return {
9-
plugins: [
10-
svgr(),
11-
react(),
12-
],
15+
plugins: [svgr(), react(), tailwindcss()],
1316
server: {
1417
port: env.CLIENT_PORT,
1518
host: true,

client/yarn.lock

Lines changed: 605 additions & 136 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"cross-env": "^7.0.2",
2525
"cross-var": "^1.1.0",
2626
"dotenv-cli": "^3.2.0",
27-
"styled-components": "^6.1.13",
28-
"vite": "^5.4.19"
27+
"styled-components": "^6.1.13"
2928
},
3029
"devDependencies": {
30+
"autoprefixer": "^10.4.21",
3131
"cypress": "^5.0.0",
3232
"eslint": "9.9.1",
3333
"eslint-config-prettier": "9.1.0",

yarn.lock

Lines changed: 407 additions & 270 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)