This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Ajout de fichiers pour gérer des dépendances de développement #51
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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 +1,2 @@ | ||
/web-ext-artifacts | ||
/node_modules |
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,46 @@ | ||
# Contribuer à vaccin.click | ||
|
||
Merci de regarder comment contribuer à vaccin.click ! | ||
|
||
Cette extension utilise node pour installer des dépendances utilisées pour le | ||
développement. Ce fichier explique comment les installer et les utiliser. | ||
|
||
## Installation de node | ||
|
||
L'installation de node dépend de votre système. Vous pouvez l'installer | ||
globalement sur votre système avec [les paquets disponibles sur leur | ||
site](https://nodejs.org/fr/), ou bien, si vous voulez une gestion plus fine, | ||
vous pouvez aussi utiliser un script comme [nvm](https://github.com/nvm-sh/nvm#about). | ||
|
||
## Installation des dépendances | ||
|
||
Lorsque `node` est installé, vous pouvez cloner le projet et installer les | ||
dépendances: | ||
|
||
``` | ||
git clone [email protected]:dunglas/vaccin.click.git | ||
cd vaccin.click | ||
npm i | ||
``` | ||
|
||
## Scripts disponibles | ||
|
||
Les scripts suivants sont disponibles: | ||
|
||
- `npm run lint` va lancer prettier localement. | ||
- `npm run lint-fix` également, tout en corrigeant les problèmes. | ||
- `npm start` lance l'extension dans firefox, et la recharge à chaque | ||
changement.\ | ||
On peut utiliser l'option `-f` pour spécifier la version de | ||
Firefox à lancer: `nightly`, `beta`, `firefoxdeveloperedition`, `firefox`, ou | ||
tout simplement un chemin complet:\ | ||
`npm start -- -f nightly`\ | ||
`npm start -- -f ~/firefox/firefox`\ | ||
La variable d'environnement `$WEB_EXT_FIREFOX` permet de configurer cela de | ||
manière permanente. | ||
- `npm run build` va builder localement l'extension. | ||
- `npx web-ext lint` va linter l'extension. | ||
|
||
## Trucs et astuces | ||
|
||
(À compléter) |
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.
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.
Petit comportement intéressant de
npx
: il utilise le package local au projet s'il est présent :-)donc ça utilise bien la version installée dans le projet.
(j'ai appris ça lorsque j'ai fait cette PR, je trouve que
yarn
est beaucoup plus logique pour ça finalement...)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.
Oui je me suis déjà fait avoir sur d'autres projets par ce comportement (pas très intuitif je trouve).