Skip to content

Commit

Permalink
Merge pull request #104 from BSoDium/refactor/eject
Browse files Browse the repository at this point in the history
Eject and switch to Vite
  • Loading branch information
BSoDium authored Aug 18, 2024
2 parents 82ea7b4 + 9329cb7 commit bbfa739
Show file tree
Hide file tree
Showing 42 changed files with 6,482 additions and 16,568 deletions.
45 changes: 25 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# dependencies
/node_modules
node_modules
dist
dist-ssr
*.local
.pnp.*
.yarn/*
!.yarn/patches
Expand All @@ -10,23 +19,19 @@
!.yarn/sdks
!.yarn/versions

# testing
/coverage

# production
/build

# misc
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# dotenv
# Dotenv files
.env
.vercel

# VS Code
.vscode
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.3.1.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.3.1.cjs
36 changes: 36 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import pluginJs from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";

export default [
{ languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } } },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.{ts,tsx}"],
rules: {
"react/react-in-jsx-scope": "off",
"no-console": "warn",
"no-restricted-imports": [
"error",
{
patterns: [
{
regex: "(.*)/RawApi",
importNamePattern: "^use",
message:
"Please use the Api object at @/api/Api to access hooks.",
},
],
},
],
},
},
{
files: ["scripts/**/*.ts"],
rules: {
"no-console": "off",
},
},
];
8 changes: 3 additions & 5 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="darkreader-lock">
<meta name="darkreader-lock" />
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="A clean and modern portfolio showcasing skills, projects, and contact information."
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
66 changes: 21 additions & 45 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
"license": "GPL-2.0-only",
"author": "BSoDium",
"url": "https://www.bsodium.fr",
"type": "module",
"scripts": {
"dev": "vite",
"lint": "eslint src",
"build": "tsc -b && yarn lint && vite build",
"preview": "vite preview",
"build:assets": "tsx scripts/build-assets.ts"
},
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.13.0",
Expand All @@ -14,70 +22,38 @@
"@types/marked": "^6.0.0",
"@vercel/speed-insights": "^1.0.12",
"axios": "^1.6.5",
"color": "^4.2.3",
"i18next": "^23.12.1",
"marked": "^13.0.2",
"moment": "^2.29.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-ga4": "^2.1.0",
"react-i18next": "^15.0.0",
"react-icons": "^5.2.1",
"react-responsive": "^10.0.0",
"react-router-dom": "^6.24.1",
"react-scripts": "5.0.1",
"react-scroll-parallax": "^3.4.5",
"typescript": "^5.5.4",
"web-vitals": "^4.2.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"build:assets": "tsx scripts/build-assets.ts"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"typescript": "^5.5.4"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@testing-library/jest-dom": "^6.4.7",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.2.0",
"@types/jest": "^29.5.12",
"@eslint/js": "^9.7.0",
"@types/moment": "^2.13.0",
"@types/node": "^20.14.10",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-react": "^7.34.4",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.7.0",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"eslint-plugin-storybook": "^0.8.0",
"globals": "^15.9.0",
"sass": "^1.64.2",
"sass-loader": "^14.2.1",
"sharp": "^0.33.4",
"tsx": "^4.16.0",
"webpack": "^5.88.2"
"typescript-eslint": "^7.17.0",
"vite": "^5.3.4",
"vite-plugin-svgr": "^4.2.0"
},
"packageManager": "[email protected]"
}
170 changes: 0 additions & 170 deletions src/Landing.tsx

This file was deleted.

Loading

0 comments on commit bbfa739

Please sign in to comment.