Skip to content

Commit

Permalink
chore: install prettier (#20)
Browse files Browse the repository at this point in the history
* chore: install prettier

* docs: Update README.md

* chore(pkg): add format script

* style: run format script
  • Loading branch information
douglasduteil authored Aug 14, 2024
1 parent e352f6a commit e8ae771
Show file tree
Hide file tree
Showing 39 changed files with 4,723 additions and 4,604 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
7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

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?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>
<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 e8ae771

Please sign in to comment.