Skip to content

Commit 71efa9b

Browse files
committed
move to vite and ditch next
1 parent 9c3c56a commit 71efa9b

22 files changed

+693
-1649
lines changed

.eslintrc.json

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

.gitignore

Lines changed: 9 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,13 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
1+
# Node
2+
node_modules
23

3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
4+
# Logs
5+
*.log
76

8-
# testing
9-
/coverage
10-
11-
# next.js
12-
/.next/
13-
/out/
14-
15-
# production
16-
/build
17-
18-
# misc
19-
.DS_Store
20-
*.pem
21-
22-
# debug
23-
npm-debug.log*
24-
yarn-debug.log*
25-
yarn-error.log*
26-
27-
# local env files
28-
.env.local
29-
.env.development.local
30-
.env.test.local
31-
.env.production.local
32-
33-
# vercel
34-
.vercel
7+
# IDE
8+
.vscode
9+
.idea
3510

36-
# typescript
37-
*.tsbuildinfo
11+
# Build output
12+
dist
3813

39-
# IDEs
40-
.idea
41-
.vscode

README.md

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,3 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
<h1 align="center">Website</h1>
22

3-
## Getting Started
4-
5-
First, run the development server:
6-
7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
```
12-
13-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14-
15-
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
16-
17-
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
18-
19-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
20-
21-
## Learn More
22-
23-
To learn more about Next.js, take a look at the following resources:
24-
25-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27-
28-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29-
30-
## Deploy on Vercel
31-
32-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33-
34-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
3+
<p align="center">Source code for the organization's website.</p>

components/ImageBanner/ImageBanner.tsx

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

components/ImageBanner/banner.png

-47.9 KB
Binary file not shown.

index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width" />
6+
<title>CodingLab</title>
7+
<meta
8+
name="description"
9+
content="Codinglab est une communauté française de développeurs open-source !"
10+
/>
11+
</head>
12+
<body>
13+
<div id="root"></div>
14+
<script src="./src/main.tsx" type="module"></script>
15+
</body>
16+
</html>

next.config.js

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

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
22
"name": "website",
3+
"type": "module",
34
"scripts": {
4-
"dev": "next dev",
5-
"build": "next build",
6-
"start": "next start",
7-
"lint": "next lint"
5+
"dev": "vite",
6+
"build": "vite build",
7+
"start": "vite preview"
88
},
99
"dependencies": {
1010
"@fortawesome/fontawesome-svg-core": "6.2.0",
1111
"@fortawesome/free-brands-svg-icons": "6.2.0",
1212
"@fortawesome/react-fontawesome": "0.2.0",
13-
"next": "13.0.0",
1413
"react": "18.2.0",
1514
"react-dom": "18.2.0"
1615
},
1716
"devDependencies": {
1817
"@types/node": "18.11.9",
1918
"@types/react": "18.0.25",
19+
"@types/react-dom": "18.0.8",
20+
"@vitejs/plugin-react": "2.2.0",
2021
"autoprefixer": "10.4.13",
21-
"eslint": "8.26.0",
22-
"eslint-config-next": "13.0.0",
2322
"postcss": "8.4.18",
2423
"prettier": "2.7.1",
2524
"tailwindcss": "3.2.3",
26-
"typescript": "4.8.4"
25+
"typescript": "4.8.4",
26+
"vite": "3.2.2"
2727
},
2828
"packageManager": "[email protected]"
2929
}

pages/_app.tsx

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

0 commit comments

Comments
 (0)