nodebb-plugin-ezoic-infinite 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -5
  2. package/package.json +6 -4
package/README.md CHANGED
@@ -2,12 +2,28 @@
2
2
 
3
3
  Plugin NodeBB 4.x pour intégrer Ezoic lors des chargements en infinite scroll.
4
4
 
5
- ## Fonctionnalités
6
- - Insertion d'une pub tous les N posts (configurable)
7
- - Pool d'IDs Ezoic (un ID par placeholder)
8
- - Fenêtre glissante: le nombre de pubs simultanées est limité à la taille du pool
9
- - Exclusion par groupes (configurable)
5
+ ## Installation (recommandée)
6
+ Depuis le dossier NodeBB (où se trouve `package.json` du forum) :
10
7
 
8
+ ### Option A — installer depuis un chemin local (simple)
9
+ ```bash
10
+ npm i ./node_modules/nodebb-plugin-ezoic-infinite
11
+ # ou si tu as le dossier ailleurs : npm i /chemin/vers/nodebb-plugin-ezoic-infinite
12
+ ./nodebb build
13
+ ./nodebb restart
14
+ ```
15
+
16
+ ### Option B — npm link (workflow dev)
17
+ ```bash
18
+ cd node_modules/nodebb-plugin-ezoic-infinite
19
+ npm link
20
+ cd /usr/src/app # dossier NodeBB
21
+ npm link nodebb-plugin-ezoic-infinite
22
+ ./nodebb build
23
+ ./nodebb restart
24
+ ```
25
+
26
+ > Note: NodeBB n’est généralement pas publié sur le registre npm, donc on **ne met pas** `nodebb` en dépendance npm “résoluble”.
11
27
  ## Configuration
12
28
  ACP -> Plugins -> Ezoic Infinite Ads
13
29
  - **Pool d’IDs**: un par ligne (ou séparé par virgules)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Ezoic ads with infinite scroll using a pool of placeholder IDs",
5
5
  "main": "library.js",
6
6
  "keywords": [
@@ -13,12 +13,14 @@
13
13
  "license": "MIT",
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "https://example.com/nodebb-plugin-ezoic-infinite.git"
16
+ "url": ""
17
17
  },
18
18
  "engines": {
19
19
  "node": ">=18"
20
20
  },
21
- "peerDependencies": {
22
- "nodebb": ">=4.0.0"
21
+ "peerDependenciesMeta": {
22
+ "nodebb": {
23
+ "optional": true
24
+ }
23
25
  }
24
26
  }