Skip to content

Commit 317883f

Browse files
committed
refactor: update file structure and import paths for backend
1 parent 2c2caf4 commit 317883f

69 files changed

Lines changed: 281 additions & 406 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

06-rest-api/03-graphql/02-crud/01-graphql-backend/.vscode/launch.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

06-rest-api/03-graphql/02-crud/01-graphql-backend/config/webpack/base.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

06-rest-api/03-graphql/02-crud/01-graphql-backend/config/webpack/dev.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

06-rest-api/03-graphql/02-crud/01-graphql-backend/config/webpack/helpers.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

06-rest-api/03-graphql/02-crud/01-graphql-backend/config/webpack/prod.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

06-rest-api/03-graphql/02-crud/01-graphql-backend/dev.env

Lines changed: 0 additions & 2 deletions
This file was deleted.

06-rest-api/03-graphql/02-crud/01-graphql-backend/src/index.html renamed to 06-rest-api/03-graphql/02-crud/01-graphql-backend/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
</head>
88
<body>
99
<div id="root"></div>
10+
<script type="module" src="/src/index.tsx"></script>
1011
</body>
1112
</html>
Lines changed: 25 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,43 @@
11
{
2-
"name": "06-rest-api-01-concepts",
2+
"name": "06-rest-api-03-graphql",
33
"version": "1.0.0",
4-
"description": "Rest API demos",
5-
"main": "index.js",
4+
"type": "module",
65
"scripts": {
76
"start": "run-p -l type-check:watch start:dev start:server",
8-
"start:dev": "webpack serve --config ./config/webpack/dev.js",
9-
"start:server": "cd server && npm run start",
10-
"build": "run-p -l type-check build:prod",
11-
"build:prod": "npm run clean && webpack --config ./config/webpack/prod.js",
7+
"start:dev": "vite --port 8080",
8+
"start:server": "cd server && npm start",
9+
"prebuild": "npm run type-check",
10+
"build": "vite build",
1211
"type-check": "tsc --noEmit",
1312
"type-check:watch": "npm run type-check -- --watch",
14-
"clean": "rimraf dist",
1513
"postinstall": "cd ./server && npm install"
1614
},
15+
"imports": {
16+
"#*": "./src/*"
17+
},
1718
"author": "Lemoncode",
1819
"license": "MIT",
1920
"dependencies": {
20-
"@emotion/css": "^11.1.3",
21-
"@lemoncode/fonk": "^1.5.1",
21+
"@emotion/css": "^11.13.5",
22+
"@emotion/react": "^11.14.0",
23+
"@emotion/styled": "^11.14.0",
24+
"@lemoncode/fonk": "^1.5.4",
2225
"@lemoncode/fonk-formik": "^4.0.1",
2326
"@lemoncode/fonk-min-number-validator": "^1.2.0",
24-
"@material-ui/core": "^4.12.1",
25-
"@material-ui/icons": "^4.11.2",
26-
"@material-ui/lab": "^4.0.0-alpha.60",
27-
"axios": "^0.21.1",
28-
"formik": "^2.2.9",
29-
"react": "^17.0.2",
30-
"react-dom": "^17.0.2",
31-
"react-router-dom": "^5.2.0",
32-
"regenerator-runtime": "^0.13.7"
27+
"@mui/icons-material": "^6.3.1",
28+
"@mui/material": "^6.3.1",
29+
"axios": "^1.7.9",
30+
"formik": "^2.4.6",
31+
"react": "^19.0.0",
32+
"react-dom": "^19.0.0",
33+
"react-router-dom": "^7.1.1"
3334
},
3435
"devDependencies": {
35-
"@babel/cli": "^7.14.5",
36-
"@babel/core": "^7.14.6",
37-
"@babel/preset-env": "^7.14.7",
38-
"@babel/preset-react": "^7.14.5",
39-
"@babel/preset-typescript": "^7.14.5",
40-
"@emotion/babel-plugin": "^11.3.0",
41-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
42-
"@types/react": "^17.0.14",
43-
"@types/react-dom": "^17.0.9",
44-
"@types/react-router-dom": "^5.1.8",
45-
"babel-loader": "^8.2.2",
46-
"dotenv-webpack": "^7.0.3",
47-
"html-webpack-plugin": "^5.3.2",
48-
"mini-css-extract-plugin": "^2.1.0",
36+
"@types/react": "^19.0.6",
37+
"@types/react-dom": "^19.0.3",
38+
"@vitejs/plugin-react": "^4.3.4",
4939
"npm-run-all": "^4.1.5",
50-
"react-refresh": "^0.10.0",
51-
"rimraf": "^3.0.2",
52-
"typescript": "^4.3.5",
53-
"webpack": "^5.45.1",
54-
"webpack-cli": "^4.7.2",
55-
"webpack-dev-server": "^3.11.2",
56-
"webpack-merge": "^5.8.0"
40+
"typescript": "^5.7.3",
41+
"vite": "^6.0.7"
5742
}
5843
}

06-rest-api/03-graphql/02-crud/01-graphql-backend/server/.babelrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

06-rest-api/03-graphql/02-crud/01-graphql-backend/server/.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)