-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use elm-watch #160
Closed
Closed
Use elm-watch #160
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c8fe7df
[WIP] use elm-watch
magopian a8096c3
Ignore the public/build/ folder
magopian 90c32d4
Fix the build and config (thanks @Lydell !)
magopian c750420
Compile sass outside of postprocess, serve with esbuild
magopian bb56388
Use vitejs instead of esbuild for everything not elm related
magopian 8a31000
Finish replacing everything parcel with vitejs
magopian c676bca
Move elm-watch to the standard npm dependencies (not devDependencies)…
magopian 9096f53
Mistakenly removed esbuild which is needed in postprocess.mjs
magopian 83adca6
Use Scalingo's own port for the server
magopian 793add5
Fix bloopers
magopian 496ac71
Max minification when building for "optimize"
magopian 1396160
Test old server:build to see if it fixes the scalingo deploy
magopian d050ed0
Fix relative links in index.html
magopian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
MATOMO_TOKEN=xxx | ||
SENTRY_DSN=https://[email protected]/xxx | ||
VITE_MATOMO_TOKEN=xxx | ||
VITE_SENTRY_DSN=https://[email protected]/xxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,8 +70,8 @@ Chaque _Pull Request_ effectuée sur le dépôt est également automatiquement d | |
|
||
Certaines variables d'environnement peuvent ou doivent être configurées via l'interface de [configuration Scalingo](https://dashboard.scalingo.com/apps/osc-fr1/wikicarbone/environment) : | ||
|
||
- `SENTRY_DSN`: le DSN [Sentry](https://sentry.io) à utiliser pour les rapports d'erreur. | ||
- `MATOMO_TOKEN`: le token [Matomo](https://stats.data.gouv.fr/) permettant le suivi d'audience de l'API. | ||
- `VITE_SENTRY_DSN`: le DSN [Sentry](https://sentry.io) à utiliser pour les rapports d'erreur. | ||
- `VITE_MATOMO_TOKEN`: le token [Matomo](https://stats.data.gouv.fr/) permettant le suivi d'audience de l'API. | ||
Comment on lines
+73
to
+74
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: It's annoying these must be prefixed; no way to avoid it? |
||
|
||
## Lancement du serveur | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"postprocess": [ | ||
"elm-watch-node", | ||
"postprocess.mjs" | ||
], | ||
"targets": { | ||
"frontend": { | ||
"inputs": [ | ||
"src/Main.elm" | ||
], | ||
"output": "public/build/main.js" | ||
}, | ||
"server": { | ||
"inputs": [ | ||
"src/Server.elm" | ||
], | ||
"output": "server-app.js" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html lang="fr"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Ecobalyse</title> | ||
<link rel="canonical" href="https://ecobalyse.beta.gouv.fr/"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="description" content="Accélerer la mise en place de l'affichage environnemental"> | ||
<meta name="theme-color" content="#333333"> | ||
<link rel="icon" type="image/svg" href="./public/img/logo.svg"> | ||
<link href="./public/icomoon/style.css" rel="stylesheet"> | ||
<link href="./styles.scss" rel="stylesheet"> | ||
<script type="module" src="index.js"></script> | ||
</head> | ||
<body> | ||
<noscript> | ||
<img src="https://stats.data.gouv.fr/matomo.php?idsite=196&rec=1" style="border:0" alt="" /> | ||
</noscript> | ||
</body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Ecobalyse</title> | ||
<link rel="canonical" href="https://ecobalyse.beta.gouv.fr/" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="description" content="Accélerer la mise en place de l'affichage environnemental" /> | ||
<meta name="theme-color" content="#333333" /> | ||
<link rel="icon" type="image/svg" href="./img/logo.svg" /> | ||
<link href="./public/icomoon/style.css" rel="stylesheet" /> | ||
<link href="./styles.scss" rel="stylesheet" /> | ||
<script src="./public/build/main.js"></script> | ||
<script type="module" src="./index.js"></script> | ||
</head> | ||
<body> | ||
<noscript> | ||
<img | ||
src="https://stats.data.gouv.fr/matomo.php?idsite=196&rec=1" | ||
style="border: 0" | ||
alt="" | ||
/> | ||
</noscript> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why removing this line? We don't want to version icomoon HTML demo files…