@julien-lin/universal-pwa-templates 1.2.2 → 1.2.3

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 (3) hide show
  1. package/README.fr.md +56 -0
  2. package/README.md +54 -1
  3. package/package.json +5 -3
package/README.fr.md ADDED
@@ -0,0 +1,56 @@
1
+ # @julien-lin/universal-pwa-templates
2
+
3
+ [![GitHub Sponsors](https://img.shields.io/github/sponsors/julien-lin?logo=github&style=flat-square&label=Sponsors)](https://github.com/sponsors/julien-lin)
4
+ [![npm version](https://img.shields.io/npm/v/@julien-lin/universal-pwa-templates?logo=npm&style=flat-square)](https://www.npmjs.com/package/@julien-lin/universal-pwa-templates)
5
+
6
+ Templates de service workers pour UniversalPWA, adaptés aux différentes architectures (statique, SPA, SSR) et variantes de frameworks (Next.js/Nuxt, WordPress, Laravel, Symfony).
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @julien-lin/universal-pwa-templates
12
+ ```
13
+
14
+ Ou avec pnpm :
15
+
16
+ ```bash
17
+ pnpm add @julien-lin/universal-pwa-templates
18
+ ```
19
+
20
+ ## Utilisation
21
+
22
+ ```typescript
23
+ import { getServiceWorkerTemplate } from '@julien-lin/universal-pwa-templates'
24
+
25
+ const template = getServiceWorkerTemplate({
26
+ architecture: 'spa',
27
+ framework: 'react',
28
+ })
29
+
30
+ console.log(template) // Contenu du template de service worker
31
+ ```
32
+
33
+ ## Templates Supportés
34
+
35
+ - **Static** : Pour sites HTML/CSS/JS statiques
36
+ - **SPA** : Pour applications Single Page (React, Vue, Angular)
37
+ - **SSR** : Pour applications Server-Side Rendered (Next.js, Nuxt)
38
+ - **WordPress** : Optimisé pour les thèmes WordPress
39
+ - **PHP** : Pour frameworks PHP (Laravel, Symfony)
40
+
41
+ ## API
42
+
43
+ - `getServiceWorkerTemplate(options)` : Obtenir le template de service worker approprié
44
+ - `getTemplateForArchitecture(architecture)` : Obtenir le template pour une architecture spécifique
45
+ - `getTemplateForFramework(framework)` : Obtenir le template pour un framework spécifique
46
+
47
+ ## 💝 Sponsoring
48
+
49
+ Si UniversalPWA vous est utile, envisagez de [sponsoriser le projet](https://github.com/sponsors/julien-lin) pour aider à le maintenir et l'améliorer.
50
+
51
+ ## Liens
52
+
53
+ - **Page d'accueil** : https://github.com/julien-lin/UniversalPWA
54
+ - **Support** : Pour les problèmes et questions, utilisez [GitHub Discussions](https://github.com/julien-lin/UniversalPWA/discussions)
55
+ - **Sponsor** : https://github.com/sponsors/julien-lin
56
+
package/README.md CHANGED
@@ -1,4 +1,57 @@
1
1
  # @julien-lin/universal-pwa-templates
2
2
 
3
- Templates de manifest, service workers et snippets d’injection adaptés aux cibles (statique, SPA, SSR) et variantes framework (Next/Nuxt, WordPress, Laravel, Symfony).
3
+ [![GitHub Sponsors](https://img.shields.io/github/sponsors/julien-lin?logo=github&style=flat-square&label=Sponsors)](https://github.com/sponsors/julien-lin)
4
+ [![npm version](https://img.shields.io/npm/v/@julien-lin/universal-pwa-templates?logo=npm&style=flat-square)](https://www.npmjs.com/package/@julien-lin/universal-pwa-templates)
4
5
 
6
+ Service worker templates for UniversalPWA, adapted to different architectures (static, SPA, SSR) and framework variants (Next.js/Nuxt, WordPress, Laravel, Symfony).
7
+
8
+ **🇫🇷 [Documentation en français](./README.fr.md)**
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ npm install @julien-lin/universal-pwa-templates
14
+ ```
15
+
16
+ Or with pnpm:
17
+
18
+ ```bash
19
+ pnpm add @julien-lin/universal-pwa-templates
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ ```typescript
25
+ import { getServiceWorkerTemplate } from '@julien-lin/universal-pwa-templates'
26
+
27
+ const template = getServiceWorkerTemplate({
28
+ architecture: 'spa',
29
+ framework: 'react',
30
+ })
31
+
32
+ console.log(template) // Service worker template content
33
+ ```
34
+
35
+ ## Supported Templates
36
+
37
+ - **Static** : For static HTML/CSS/JS sites
38
+ - **SPA** : For Single Page Applications (React, Vue, Angular)
39
+ - **SSR** : For Server-Side Rendered apps (Next.js, Nuxt)
40
+ - **WordPress** : Optimized for WordPress themes
41
+ - **PHP** : For PHP frameworks (Laravel, Symfony)
42
+
43
+ ## API
44
+
45
+ - `getServiceWorkerTemplate(options)` : Get the appropriate service worker template
46
+ - `getTemplateForArchitecture(architecture)` : Get template for a specific architecture
47
+ - `getTemplateForFramework(framework)` : Get template for a specific framework
48
+
49
+ ## 💝 Sponsoring
50
+
51
+ If UniversalPWA is useful to you, please consider [sponsoring the project](https://github.com/sponsors/julien-lin) to help maintain and improve it.
52
+
53
+ ## Links
54
+
55
+ - **Homepage**: https://github.com/julien-lin/UniversalPWA
56
+ - **Support**: For issues and questions, please use [GitHub Discussions](https://github.com/julien-lin/UniversalPWA/discussions)
57
+ - **Sponsor**: https://github.com/sponsors/julien-lin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julien-lin/universal-pwa-templates",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Templates de service workers pour UniversalPWA",
5
5
  "keywords": [
6
6
  "pwa",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "homepage": "https://github.com/julien-lin/UniversalPWA#readme",
20
20
  "bugs": {
21
- "url": "https://github.com/julien-lin/UniversalPWA/issues"
21
+ "url": "https://github.com/julien-lin/UniversalPWA/discussions"
22
22
  },
23
23
  "type": "module",
24
24
  "main": "dist/index.js",
@@ -32,7 +32,9 @@
32
32
  }
33
33
  },
34
34
  "files": [
35
- "dist"
35
+ "dist",
36
+ "README.md",
37
+ "README.fr.md"
36
38
  ],
37
39
  "dependencies": {
38
40
  "zod": "^4.2.1"