Skip to content

Commit

Permalink
chore(): remplace Craco par vite (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaubert authored Dec 4, 2024
1 parent 83e2e80 commit d866530
Show file tree
Hide file tree
Showing 44 changed files with 7,857 additions and 17,568 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [22.x]
services:
postgres:
image: postgis/postgis
Expand Down Expand Up @@ -80,9 +80,11 @@ jobs:
# AUTH_SECRET: abcd1234
# DATABASE_URL: postgres://postgres:postgres@localhost:5432/maestro
# DATABASE_URL_TEST: postgres://postgres:postgres@localhost:5432/maestro
- name: Server tests
- name: Server integration tests
run: npm run test -- --test-timeout=30000
env:
AUTH_SECRET: abcd1234
DATABASE_URL: postgres://postgres:postgres@localhost:5432/maestro
DATABASE_URL_TEST: postgres://postgres:postgres@localhost:5432/maestro
- name: Server unit tests
run: npm run test:unit
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,8 @@ API_PORT
AUTH_SECRET
AUTH_EXPIRES_IN
DATABASE_ENV
DATABASE_HOST
DATABASE_PORT
DATABASE_USER
DATABASE_PASSWORD
DATABASE_NAME
DATABASE_TEST_HOST
DATABASE_TEST_PORT
DATABASE_TEST_USER
DATABASE_TEST_PASSWORD
DATABASE_TEST_NAME
DATABASE_URL
DATABASE_URL_TEST
MAILER_PROVIDER
MAILER_HOST
MAILER_PORT
Expand Down
17 changes: 16 additions & 1 deletion frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
{
"extends": ["react-app", "react-app/jest"]
"extends": ["plugin:react-hooks/recommended"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"no-irregular-whitespace": "off"
}
}
42 changes: 0 additions & 42 deletions frontend/craco.config.js

This file was deleted.

22 changes: 5 additions & 17 deletions frontend/public/index.html → frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="apple-touch-icon" href="/dsfr/favicon/apple-touch-icon.png?v=1.12.1" />
<link rel="icon" href="/dsfr/favicon/favicon.svg?v=1.12.1" type="image/svg+xml" />
<link rel="shortcut icon" href="/dsfr/favicon/favicon.ico?v=1.12.1" type="image/x-icon" />
<link rel="stylesheet" href="/dsfr/utility/icons/icons.min.css?hash=19f0b40b" />
<link rel="stylesheet" href="/dsfr/utility/icons/icons.min.css?hash=31e515c5" />
<link rel="stylesheet" href="/dsfr/dsfr.min.css?v=1.12.1" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" />

Expand All @@ -19,23 +19,11 @@
/>
<title>maestro</title>

<%
[
//"Marianne-Light",
//"Marianne-Light_Italic",
"Marianne-Regular",
//"Marianne-Regular_Italic",
"Marianne-Medium",
//"Marianne-Medium_Italic",
"Marianne-Bold",
//"Marianne-Bold_Italic",
//"Spectral-Regular",
//"Spectral-ExtraBold"
].forEach(function(name){ %>
<link rel="preload" href="/dsfr/fonts/<%=name%>.woff2?v=1.12.1" as="font" crossorigin="anonymous" />
<% }); %>
<link rel="preload" href="/dsfr/fonts/Marianne-Regular.woff2?v=1.12.1" as="font" crossorigin="anonymous" />
<link rel="preload" href="/dsfr/fonts/Marianne-Medium.woff2?v=1.12.1" as="font" crossorigin="anonymous" />
<link rel="preload" href="/dsfr/fonts/Marianne-Bold.woff2?v=1.12.1" as="font" crossorigin="anonymous" />

</head>
<script type="module" src="src/index"></script></head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
Expand Down
6 changes: 0 additions & 6 deletions frontend/jest.config.js

This file was deleted.

Loading

0 comments on commit d866530

Please sign in to comment.