@lystech/core 1.0.4 → 3.0.4
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.
- package/README.md +1 -1
- package/bin/README.md +126 -126
- package/bin/attach.cjs +277 -277
- package/bin/check-pwa.cjs +276 -276
- package/bin/setup-github-action.cjs +209 -209
- package/dist/lystech-core-provider.es.js +1 -1
- package/dist/lystech-core-provider.umd.js +1 -1
- package/package.json +73 -73
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
<!-- Test auto-publish workflow - 2026-04-03 14:19:11 -->
|
|
2
|
+
<!-- Test auto-publish workflow - 2026-04-03 14:19:11 -->
|
package/bin/README.md
CHANGED
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
# 📦 Scripts LystechCoreNpmPackage
|
|
2
|
-
|
|
3
|
-
## Commandes Disponibles
|
|
4
|
-
|
|
5
|
-
### 🔗 `npx lystechcorenpmpackage attach`
|
|
6
|
-
|
|
7
|
-
**Attache votre projet au système de mise à jour automatique.**
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npx lystechcorenpmpackage attach
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
**Ce que ça fait:**
|
|
14
|
-
|
|
15
|
-
- Détecte automatiquement votre repo GitHub
|
|
16
|
-
- Génère la configuration pour `consumers.json`
|
|
17
|
-
- Guide pour compléter le setup (PR, secrets, etc.)
|
|
18
|
-
|
|
19
|
-
**Fichier**: `bin/attach.cjs`
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
### ⚙️ `npx lystechcorenpmpackage lystech-auto-update-init` (Legacy)
|
|
24
|
-
|
|
25
|
-
**Crée un workflow optionnel de fallback dans votre projet.**
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
npx lystechcorenpmpackage lystech-auto-update-init [--force]
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Options:**
|
|
32
|
-
|
|
33
|
-
- `--force`: Écrase le workflow existant
|
|
34
|
-
- `--dry-run`: Affiche le YAML sans créer de fichier
|
|
35
|
-
- `--package=<name>`: Nom du package à surveiller
|
|
36
|
-
- `--deploy-script=<script>`: Script de déploiement custom
|
|
37
|
-
|
|
38
|
-
**Note**: Ce workflow n'est plus nécessaire avec le nouveau système centralisé, mais peut servir de fallback manuel.
|
|
39
|
-
|
|
40
|
-
**Fichier**: `bin/setup-github-action.cjs`
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
### 🔍 `npx lystechcorenpmpackage check-pwa`
|
|
45
|
-
|
|
46
|
-
**Vérifie la configuration PWA de votre projet.**
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
npx lystechcorenpmpackage check-pwa
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
**Fichier**: `bin/check-pwa.cjs`
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## 🚀 Workflow Recommandé pour Nouveaux Projets
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
# 1. Installer le package
|
|
60
|
-
npm install lystechcorenpmpackage
|
|
61
|
-
|
|
62
|
-
# 2. Attacher au système de mise à jour
|
|
63
|
-
npx lystechcorenpmpackage attach
|
|
64
|
-
|
|
65
|
-
# 3. Suivre les instructions affichées
|
|
66
|
-
|
|
67
|
-
# ✅ Terminé!
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
## 🔧 Pour les Développeurs du Package
|
|
73
|
-
|
|
74
|
-
### Structure
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
bin/
|
|
78
|
-
├── attach.cjs # Commande principale d'attachement
|
|
79
|
-
├── setup-github-action.cjs # (Legacy) Génération de workflow local
|
|
80
|
-
├── check-pwa.cjs # Vérification PWA
|
|
81
|
-
├── notify-consumers.cjs # (Legacy) Notification manuelle
|
|
82
|
-
└── README.md # Ce fichier
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Ajouter une Nouvelle Commande
|
|
86
|
-
|
|
87
|
-
1. Créer le fichier dans `bin/`
|
|
88
|
-
2. Ajouter le shebang: `#!/usr/bin/env node`
|
|
89
|
-
3. Rendre exécutable: `chmod +x bin/nouvelle-commande.cjs`
|
|
90
|
-
4. Ajouter dans `package.json` → `bin`:
|
|
91
|
-
```json
|
|
92
|
-
{
|
|
93
|
-
"bin": {
|
|
94
|
-
"nouvelle-commande": "./bin/nouvelle-commande.cjs"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### Tester Localement
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
# Depuis le package
|
|
103
|
-
node bin/attach.cjs
|
|
104
|
-
|
|
105
|
-
# Ou depuis n'importe où
|
|
106
|
-
npm link
|
|
107
|
-
npx lystechcorenpmpackage attach
|
|
108
|
-
npm unlink
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
## 📚 Documentation
|
|
114
|
-
|
|
115
|
-
- [Guide d'attachement](../ATTACH-GUIDE.md) - Guide utilisateur pour `attach`
|
|
116
|
-
- [Guide Auto-Update complet](../AUTO-UPDATE-GUIDE.md) - Documentation complète du système
|
|
117
|
-
- [consumers.json](../consumers.json) - Configuration des projets
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## 🆘 Support
|
|
122
|
-
|
|
123
|
-
Pour toute question ou problème:
|
|
124
|
-
|
|
125
|
-
- 📖 Lire la documentation ci-dessus
|
|
126
|
-
- 🐛 [Créer une issue](https://github.com/eracine4/lystechcorenpmpackage/issues)
|
|
1
|
+
# 📦 Scripts LystechCoreNpmPackage
|
|
2
|
+
|
|
3
|
+
## Commandes Disponibles
|
|
4
|
+
|
|
5
|
+
### 🔗 `npx lystechcorenpmpackage attach`
|
|
6
|
+
|
|
7
|
+
**Attache votre projet au système de mise à jour automatique.**
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx lystechcorenpmpackage attach
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
**Ce que ça fait:**
|
|
14
|
+
|
|
15
|
+
- Détecte automatiquement votre repo GitHub
|
|
16
|
+
- Génère la configuration pour `consumers.json`
|
|
17
|
+
- Guide pour compléter le setup (PR, secrets, etc.)
|
|
18
|
+
|
|
19
|
+
**Fichier**: `bin/attach.cjs`
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
### ⚙️ `npx lystechcorenpmpackage lystech-auto-update-init` (Legacy)
|
|
24
|
+
|
|
25
|
+
**Crée un workflow optionnel de fallback dans votre projet.**
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npx lystechcorenpmpackage lystech-auto-update-init [--force]
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**Options:**
|
|
32
|
+
|
|
33
|
+
- `--force`: Écrase le workflow existant
|
|
34
|
+
- `--dry-run`: Affiche le YAML sans créer de fichier
|
|
35
|
+
- `--package=<name>`: Nom du package à surveiller
|
|
36
|
+
- `--deploy-script=<script>`: Script de déploiement custom
|
|
37
|
+
|
|
38
|
+
**Note**: Ce workflow n'est plus nécessaire avec le nouveau système centralisé, mais peut servir de fallback manuel.
|
|
39
|
+
|
|
40
|
+
**Fichier**: `bin/setup-github-action.cjs`
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
### 🔍 `npx lystechcorenpmpackage check-pwa`
|
|
45
|
+
|
|
46
|
+
**Vérifie la configuration PWA de votre projet.**
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npx lystechcorenpmpackage check-pwa
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Fichier**: `bin/check-pwa.cjs`
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 🚀 Workflow Recommandé pour Nouveaux Projets
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# 1. Installer le package
|
|
60
|
+
npm install lystechcorenpmpackage
|
|
61
|
+
|
|
62
|
+
# 2. Attacher au système de mise à jour
|
|
63
|
+
npx lystechcorenpmpackage attach
|
|
64
|
+
|
|
65
|
+
# 3. Suivre les instructions affichées
|
|
66
|
+
|
|
67
|
+
# ✅ Terminé!
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 🔧 Pour les Développeurs du Package
|
|
73
|
+
|
|
74
|
+
### Structure
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
bin/
|
|
78
|
+
├── attach.cjs # Commande principale d'attachement
|
|
79
|
+
├── setup-github-action.cjs # (Legacy) Génération de workflow local
|
|
80
|
+
├── check-pwa.cjs # Vérification PWA
|
|
81
|
+
├── notify-consumers.cjs # (Legacy) Notification manuelle
|
|
82
|
+
└── README.md # Ce fichier
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Ajouter une Nouvelle Commande
|
|
86
|
+
|
|
87
|
+
1. Créer le fichier dans `bin/`
|
|
88
|
+
2. Ajouter le shebang: `#!/usr/bin/env node`
|
|
89
|
+
3. Rendre exécutable: `chmod +x bin/nouvelle-commande.cjs`
|
|
90
|
+
4. Ajouter dans `package.json` → `bin`:
|
|
91
|
+
```json
|
|
92
|
+
{
|
|
93
|
+
"bin": {
|
|
94
|
+
"nouvelle-commande": "./bin/nouvelle-commande.cjs"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Tester Localement
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Depuis le package
|
|
103
|
+
node bin/attach.cjs
|
|
104
|
+
|
|
105
|
+
# Ou depuis n'importe où
|
|
106
|
+
npm link
|
|
107
|
+
npx lystechcorenpmpackage attach
|
|
108
|
+
npm unlink
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 📚 Documentation
|
|
114
|
+
|
|
115
|
+
- [Guide d'attachement](../ATTACH-GUIDE.md) - Guide utilisateur pour `attach`
|
|
116
|
+
- [Guide Auto-Update complet](../AUTO-UPDATE-GUIDE.md) - Documentation complète du système
|
|
117
|
+
- [consumers.json](../consumers.json) - Configuration des projets
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## 🆘 Support
|
|
122
|
+
|
|
123
|
+
Pour toute question ou problème:
|
|
124
|
+
|
|
125
|
+
- 📖 Lire la documentation ci-dessus
|
|
126
|
+
- 🐛 [Créer une issue](https://github.com/eracine4/lystechcorenpmpackage/issues)
|