Skip to content

Commit

Permalink
chore: Mettre à jour les dépendances.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Apr 24, 2024
1 parent fbcde3c commit 1d76ec0
Show file tree
Hide file tree
Showing 18 changed files with 325 additions and 231 deletions.
43 changes: 43 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Contribuer à Cast Kodi

Cette documentation vous guide pour contribuer au projet Cast Kodi.

## Pré-requis

Les outils suivants sont nécessaire pour utiliser ce projet :

- [Git](https://git-scm.com/downloads)
- [Node.js et
npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)

## Installation

- [Dupliquez](https://docs.github.com/get-started/quickstart/fork-a-repo)
(_forker_) le dépôt [`castkodi`](https://github.com/regseb/castkodi).
- Clonez votre dépôt dupliqué : `git clone
https://github.com/YOUR-USERNAME/castkodi.git`
- Installez les dépendances : `npm ci`

## Développement

### Scraper

Créez un fichier dans src/core/scraper
Ajouter votre fichier dans src/core/scrapers.js
Ajouter le nouveau site supporté dans le README et dans les fichier locales.

## Déploiement

Expliquer comment déployer dans les navigateurs.

## Qualité

Exlpliquer les linters.

## Tests

Expliquer comment écrire un test et comment les lancé

## "Commit"

Expliquer la convention des messages de commit.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Steps to reproduce the behavior:

### Environment

- Cast Kodi version<!-- e.g. 7.6.0 -->:
- Browser version<!-- e.g. Chrome 123.0.6312.86, Firefox 124.0 -->:
- Cast Kodi version<!-- e.g. 7.8.0 -->:
- Browser version<!-- e.g. Chrome 124.0.6367.60, Firefox 125.0 -->:
- Kodi version<!-- e.g. 20.3 -->:
- Kodi add-on version (if appropriate)<!-- e.g. YouTube 7.0.3.2 -->:
- Kodi add-on version (if appropriate)<!-- e.g. YouTube 7.0.5 -->:

### Additional context

Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ assignees: ""

### Environment

- Cast Kodi version<!-- e.g. 7.6.0 -->:
- Browser version<!-- e.g. Chrome 123.0.6312.86, Firefox 124.0 -->:
- Cast Kodi version<!-- e.g. 7.8.0 -->:
- Browser version<!-- e.g. Chrome 124.0.6367.60, Firefox 125.0 -->:
- Kodi version<!-- e.g. 20.3 -->:
- Kodi add-on version (if appropriate)<!-- e.g. YouTube 7.0.3.2 -->:
- Kodi add-on version (if appropriate)<!-- e.g. YouTube 7.0.5 -->:

### Additional context

Expand Down
4 changes: 3 additions & 1 deletion .metalint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ export default {
"regexp/sort-character-class-elements": "error",
"regexp/sort-flags": "error",
"regexp/unicode-escape": "error",
"regexp/unicode-property": "error",

// Plugin eslint-plugin-unicorn.
"unicorn/better-regex": "error",
Expand Down Expand Up @@ -745,7 +746,8 @@ export default {
"unicorn/prefer-module": "error",
"unicorn/prefer-native-coercion-functions": "error",
"unicorn/prefer-negative-index": "error",
"unicorn/prefer-node-protocol": "error",
// Désactiver cette règle et préférer la règle "n/prefer-node-protocol".
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-number-properties": "error",
"unicorn/prefer-object-from-entries": "error",
"unicorn/prefer-optional-catch-binding": "error",
Expand Down
3 changes: 2 additions & 1 deletion .metalint/eslint_node.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default {
// Plugin eslint-plugin-n.
// Possible Errors.
"n/handle-callback-err": "error",
"n/hashbang": "error",
"n/no-callback-literal": "error",
"n/no-exports-assign": "error",
"n/no-extraneous-import": "error",
Expand All @@ -62,7 +63,6 @@ export default {
],
"n/no-unsupported-features/node-builtins": "error",
"n/process-exit-as-throw": "error",
"n/shebang": "error",

// Best Practices.
"n/no-deprecated-api": "error",
Expand All @@ -89,6 +89,7 @@ export default {
"n/prefer-global/text-encoder": "off",
"n/prefer-global/url-search-params": "off",
"n/prefer-global/url": "off",
"n/prefer-node-protocol": "error",
"n/prefer-promises/dns": "error",
"n/prefer-promises/fs": "error",

Expand Down
1 change: 1 addition & 0 deletions .metalint/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default {
"media-feature-name-no-unknown": true,
"media-feature-name-value-no-unknown": true,
"no-unknown-animations": true,
"no-unknown-custom-media": true,
// Désactiver cette règle, car les variables sont déclarées dans
// d'autres fichiers.
"no-unknown-custom-properties": null,
Expand Down
7 changes: 5 additions & 2 deletions .script/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ const plain = function (html) {
return extract(doc).trim();
};

// Supprimer l'éventuel répertoire de la précédente construction.
await fs.rm(BUILD_DIR, { force: true, recursive: true });

// Créer l'archive de l'extension.
await webExt.cmd.build({
sourceDir: SOURCE_DIR,
Expand All @@ -82,12 +85,12 @@ for (const store of ["chrome", "firefox"]) {
),
);
} else if ("firefox" === store) {
await fs.cp(
await fs.copyFile(
path.join(LOCALES_DIR, lang, "summary.txt"),
path.join(buildStoreDir, `summary-${lang}.txt`),
);

await fs.cp(
await fs.copyFile(
path.join(LOCALES_DIR, lang, "description.tpl"),
path.join(buildStoreDir, `description-${lang}.tpl`),
);
Expand Down
5 changes: 4 additions & 1 deletion .script/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@

import fs from "node:fs/promises";

await fs.cp("node_modules/linkedom/worker.js", "src/polyfill/lib/linkedom.js");
await fs.copyFile(
"node_modules/linkedom/worker.js",
"src/polyfill/lib/linkedom.js",
);
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ l'_Adresse IP_ de Kodi. Cette information est affichée dans la page _Paramètre
/ _Infos sur le système_ / _Résumé_. Puis renseignez cette adresse IP dans les
_Options_ de Cast Kodi.

Pour certains sites Internet, les add-ons suivantes sont nécessaires dans
Pour certains sites Internet, les add-ons suivants sont nécessaires dans
Kodi :
[Amazon VOD](https://github.com/Sandmann79/xbmc),
[Dailymotion](https://kodi.tv/addons/nexus/plugin.video.dailymotion_com/),
Expand Down
Loading

0 comments on commit 1d76ec0

Please sign in to comment.