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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tech-front/storybook

v1.0.4

Published

Este repositório contém os componentes reutilizáveis utilizados nos projetos de gamificação da **Ana Gaming**.

Readme

Ana Gaming Storybook

Este repositório contém os componentes reutilizáveis utilizados nos projetos de gamificação da Ana Gaming.


🚀 Como utilizar os componentes

Você pode instalar este pacote em qualquer projeto React/Next.js com:

# Versão temporária via Git, para testes em branch local
npm install https://github.com/growthdigitalmarketing/gamification-storybook.git

Já publicado publicado no NPM com:

npm install @tech-front/storybook

🎨 Estilização

Para garantir que os estilos dos componentes sejam aplicados corretamente, você deve importar o CSS global do pacote.

⚠️ IMPORTANTE: Adicione a seguinte linha no seu arquivo layout.tsx (ou equivalente):

import '@tech-front/storybook/dist/index.css'; // <--- ADICIONE ESTA LINHA!

Isso é essencial para que os componentes sejam exibidos corretamente com as estilizações do Storybook.


📦 Estrutura dos Componentes

Os componentes disponíveis foram construídos com:

  • React
  • TypeScript

Eles são totalmente tipados e prontos para uso em produção.


📖 Documentação

Você pode visualizar os componentes e sua documentação diretamente no Storybook:

🔗 Storybook Online
TODO – Será desenvolvido futuramente


💻 Desenvolvimento local

Clone este repositório e execute localmente com:

npm install
npm run storybook

🛠️ Build

Para gerar o pacote para publicação (build dos componentes):

npm run build

🧩 Versionamento via Git (sem NPM)

Este projeto utiliza versionamento semântico e distribuição via GitHub com tags. O fluxo de release segue os seguintes passos:

🧭 Etapas para gerar um release:

# 1. Vá para a main e faça merge da develop
git checkout main
git merge develop

# 2. Gere o build dos componentes
npm run build

# 3. Faça commit do build
git add .
git commit -m "build: prepara release 1.0.0"

# 4. Atualize a versão do pacote
npm version 1.0.0

# Isso cria:
# - nova versão no package.json
# - commit automático
# - tag Git v1.0.0

# 5. Suba a tag e os commits
git push
git push --tags

Após isso, o pacote estará pronto para instalação no projeto consumidor via:

npm install @tech-front/storybook

🧠 Versionamento Semântico

Utilizamos o padrão de versionamento SemVer, seguindo estas regras:

| Tipo de mudança | Comando sugerido | Exemplo | |-----------------------------------|--------------------------|-------------------| | 🔧 Correção (bug fix, ajuste leve)| npm version patch | 1.0.0 → 1.0.1 | | 🌱 Nova funcionalidade (sem quebra)| npm version minor | 1.0.1 → 1.1.0 | | 💥 Alteração que quebra a API | npm version major | 1.1.0 → 2.0.0 |

Após definir a versão:

npm run build
git push
git push --tags
npm publish

Você também pode adicionar scripts no package.json para facilitar:

"scripts": {
  "release:patch": "npm run build && npm version patch && git push && git push --tags && npm publish",
  "release:minor": "npm run build && npm version minor && git push && git push --tags && npm publish",
  "release:major": "npm run build && npm version major && git push && git push --tags && npm publish"
}

⚙️ Automação de Release (via GitHub Actions) EM DESENVOLVIMENTO

Sempre que houver um push na branch main, a lib será automaticamente:

  • Buildada (npm run build)
  • Versionada (npm version patch)
  • Tagueada (vX.X.X)
  • Enviada para o repositório Git

A automação é feita com o arquivo .github/workflows/release.yml.


🧑‍💻 Manutenção

Este pacote é mantido pela equipe da Ana Gaming.