npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@enzoooooo/ci-cd-project

v0.1.4

Published

[![CI/CD](https://github.com/Keil-ENZO/ci-cd-project/actions/workflows/build_test_deploy_react.yml/badge.svg)](https://github.com/Keil-ENZO/ci-cd-project/actions/workflows/build_test_deploy_react.yml) [![codecov](https://codecov.io/gh/Keil-ENZO/ci-cd-proj

Readme

📋 CI/CD Project — Formulaire d'inscription React

CI/CD codecov npm

Application React + TypeScript permettant à un utilisateur de s'inscrire via un formulaire, avec validation des champs, notifications toast, sauvegarde dans le localStorage et pipeline CI/CD complet.


🚀 Liens


✨ Fonctionnalités

  • Formulaire d'inscription avec 6 champs : Prénom, Nom, Email, Date de naissance, Ville, Code Postal
  • Bouton désactivé tant que tous les champs ne sont pas valides
  • Messages d'erreur en rouge sous chaque champ invalide (au fur et à mesure de la saisie)
  • Toaster d'erreur lors d'une tentative de soumission invalide (un toast par champ en erreur)
  • Toaster de succès + sauvegarde dans le localStorage + vidage des champs après inscription réussie
  • Documentation accessible depuis l'application

✅ Règles de validation

| Champ | Règle | |---|---| | Prénom / Nom / Ville | Minimum 2 caractères, lettres uniquement (accents, tréma, tiret acceptés), pas de chiffres ni caractères spéciaux | | Email | Format valide : [email protected] | | Date de naissance | L'utilisateur doit avoir au moins 18 ans | | Code postal | Format français : exactement 5 chiffres |


🛠️ Installation et lancement

# Installer les dépendances
npm install

# Lancer en développement
npm run dev

# Lancer les tests avec couverture
npm test

# Build de production
npm run build

# Générer la documentation
npm run docs

# Déployer sur GitHub Pages
npm run deploy

🧪 Tests

Le projet dispose d'une couverture de tests à 100% (hors composants UI ShadCN).

Tests unitaires (src/tests/unitaire/)

| Fichier | Fonctions testées | |---|---| | age.test.ts | checkAge — calcul de l'âge, validation des 18 ans, dates invalides | | form.test.ts | checkName — noms/prénoms valides/invalides, checkCP — codes postaux | | mail.test.ts | checkMail — formats d'emails valides et invalides |

Tests d'intégration (src/tests/integration/)

| Fichier | Scénarios testés | |---|---| | app.test.tsx | Soumission valide → localStorage + champs vidés | | | Messages d'erreur sous les champs invalides | | | Bouton désactivé pour un mineur | | | Soumission d'un formulaire vide |

# Lancer les tests
npm test

# Lancer en mode watch
npm run test:watch

📁 Structure du projet

src/
├── components/
│   └── ui/              # Composants ShadCN UI (button, input, field, dialog…)
├── pages/
│   └── HomePage/
│       └── HomePage.tsx # Page principale avec le formulaire
├── utils/
│   ├── age.ts           # Validation de l'âge (checkAge)
│   ├── form.ts          # Validation nom/prénom/ville/CP (checkName, checkCP)
│   └── mail.ts          # Validation email (checkMail)
├── tests/
│   ├── unitaire/        # Tests unitaires des fonctions de validation
│   └── integration/     # Tests d'intégration du formulaire
└── lib/
    └── utils.ts         # Utilitaires (cn — class merger)

⚙️ Pipeline CI/CD (GitHub Actions)

Le workflow .github/workflows/build_test_deploy_react.yml exécute automatiquement à chaque push sur main :

  1. Installation (npm ci)
  2. Build (tsc && vite build)
  3. Tests + Couverture (vitest --coverage)
  4. Upload Codecov (rapport de couverture)
  5. Génération de la documentation TypeDoc → dist/docs/
  6. Publication du package sur npm (@enzoooooo/ci-cd-project)
  7. Déploiement sur GitHub Pages

🔧 Stack technique

| Technologie | Usage | |---|---| | React 19 | Framework UI | | TypeScript | Typage statique | | Vite | Bundler et serveur de développement | | Vitest | Tests unitaires et d'intégration | | ShadCN UI | Composants UI | | Sonner | Notifications toast | | TailwindCSS | Styling | | TypeDoc | Génération de documentation | | Codecov | Rapport de couverture de tests |