Skip to content

Commit

Permalink
Rdum add prettier from douglas (#22)
Browse files Browse the repository at this point in the history
* chore: install prettier

* refacto: delete prettierrc.json

* style: run prettier after delete prettierrc.json

* add new prettierrc

* run prettier fromat

* update hash value in index.html

---------

Co-authored-by: Benoit Serrano <[email protected]>
  • Loading branch information
rebeccadumazert and BenoitSerrano authored Aug 19, 2024
1 parent c00214d commit e15bebb
Show file tree
Hide file tree
Showing 41 changed files with 6,536 additions and 4,606 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Tests

on:
push:
push:

jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
node-version-file: package.json
- run: npm ci --include=dev
- run: npm run build
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: "npm"
node-version-file: package.json
- run: npm ci --include=dev
- run: npx prettier -c .
- run: npm run build
9 changes: 4 additions & 5 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 4
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false
}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ cd proconnect-landing-page
npm install
npm run dev
```

# Package Scripts

| Command | Description |
| :--------------- | :--------------------------- |
| `npm run dev` | Starts local dev server |
| `npm run format` | Run prettier on all the code |
91 changes: 51 additions & 40 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,54 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AgentConnect</title>
<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="manifest"
href="/dsfr/favicon/manifest.webmanifest?v=1.12.1"
crossorigin="use-credentials"
/>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AgentConnect</title>
<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="manifest"
href="/dsfr/favicon/manifest.webmanifest?v=1.12.1"
crossorigin="use-credentials"
/>

<link rel="stylesheet" href="/dsfr/utility/icons/icons.min.css?hash=b9c27aa0" />
<link rel="stylesheet" href="/dsfr/dsfr.min.css?v=1.12.1" />
<!-- Matomo -->
<script>
var _paq = (window._paq = window._paq || []);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = 'https://stats.data.gouv.fr/';
_paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setSiteId', '286']);
var d = document,
g = d.createElement('script'),
s = d.getElementsByTagName('script')[0];
g.async = true;
g.src = u + 'piwik.js';
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
<link rel="stylesheet" href="/dsfr/utility/icons/icons.min.css?v=1.12.1" />
<link rel="stylesheet" href="/dsfr/dsfr.min.css?v=1.12.1" />
<!-- Matomo -->
<script>
var _paq = (window._paq = window._paq || []);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function () {
var u = "https://stats.data.gouv.fr/";
_paq.push(["setTrackerUrl", u + "piwik.php"]);
_paq.push(["setSiteId", "286"]);
var d = document,
g = d.createElement("script"),
s = d.getElementsByTagName("script")[0];
g.async = true;
g.src = u + "piwik.js";
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Matomo Code -->
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit e15bebb

Please sign in to comment.