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

@dealrock/dc-components

v0.1.25

Published

Dealrock Dealcard component library in Vue

Readme

DC Components

Librería de componentes Vue 3 para DealRock.

Instalación

npm install @dealrock/dc-components

Uso

import { createApp } from 'vue'
import { DCButton } from '@dealrock/dc-components'
import '@dealrock/dc-components/dist/style.css'

const app = createApp({})
app.component('DCButton', DCButton)

Desarrollo

# Instalar dependencias
npm install

# Desarrollo
npm run dev

# Construir librería
npm run build

# Ejecutar tests
npm run test

# Linting
npm run lint

Componentes

  • DCButton: Componente de botón personalizable
  • DCIcon: 82 iconos SVG incluidos en el bundle ✨
  • DCAvatar: Avatar con soporte para imágenes y QR
  • DCBadge: Insignias y etiquetas
  • DCBlock: Bloques de contenido
  • DCHeader: Cabecera de perfil
  • DCJoin: Componente de unión
  • DCTabs: Sistema de pestañas

🎨 Uso de Iconos

<template>
  <DCIcon icon="github" />
  <DCIcon icon="linkedin" auxClass="my-class" />
</template>

<script setup>
import { DCIcon, getAvailableIcons, hasIcon } from '@dealrock/dc-components'

// Utilidades disponibles
const icons = getAvailableIcons() // Array de 82 iconos
const exists = hasIcon('github')  // true/false
</script>

📖 Consulta ICONS-GUIDE.md para la lista completa de iconos y ejemplos avanzados.

Estructura del proyecto

src/
├── components/                    # Componentes Vue
│   ├── DCButton/
│   │   ├── DCButton.vue          # Componente Vue
│   │   ├── DCButton.scss         # Estilos del componente
│   │   ├── index.ts              # Exportación
│   │   └── __tests__/
│   │       └── DCButton.test.ts  # Tests unitarios
│   ├── DCIcon/
│   ├── DCAvatar/
│   ├── DCBadge/
│   ├── DCBlock/
│   ├── DCHeader/
│   ├── DCJoin/
│   └── DCTabs/
├── types/                        # Definiciones de tipos TypeScript
├── styles/                       # Estilos SCSS globales
│   ├── 01_abstracts/             # Variables, mixins, funciones
│   │   ├── _variables.scss
│   │   ├── _functions.scss
│   │   ├── _mixins.scss
│   │   └── _breakpoints.scss
│   ├── components/               # Estilos compartidos
│   │   └── _form.scss
│   ├── _designtokens.scss        # Tokens de diseño
│   └── index.scss                # Archivo principal de estilos
├── scripts/                      # Scripts de utilidad
│   └── create-component.js       # Generador de componentes
└── index.ts                      # Punto de entrada principal

Crear un nuevo componente

Para crear un nuevo componente con la estructura correcta:

npm run create:component DCNuevoComponente

Esto creará automáticamente:

  • ✅ Archivo Vue con estructura base
  • ✅ Archivo SCSS con imports correctos
  • ✅ Archivo de exportación (index.ts)
  • ✅ Test unitario base
  • ✅ Todas las carpetas necesarias

🚀 Publicación de Releases

Para Maintainers

Este proyecto está configurado para publicación automática. Para crear una nueva versión:

# Release patch (0.1.0 → 0.1.1) - bugfixes
npm run release patch

# Release minor (0.1.0 → 0.2.0) - nuevas características
npm run release minor

# Release major (0.1.0 → 1.0.0) - breaking changes
npm run release major

¿Qué sucede automáticamente?

  1. 🔍 Validaciones: Tests, linter y build locales
  2. 📦 Versionado: Incremento automático en package.json
  3. 📝 CHANGELOG: Actualización automática con template
  4. 🏷️ Git Tag: Creación del tag v0.1.x
  5. ☁️ GitHub Actions: Publicación automática en npm y creación de release

Requisitos previos

  • Estar en la rama master
  • No tener cambios sin commitear
  • Tener configurado NPM_TOKEN en GitHub Secrets

📖 Para configuración inicial, consulta GITHUB-SETUP.md