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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ramonuchoa386/fibra-ds

v0.0.7

Published

Este repositório contém o código-fonte da biblioteca de componentes utilizada nas aplicações frontend da V.tal.

Downloads

10

Readme

Biblioteca de componentes frontend da V.tal

Este repositório contém o código-fonte da biblioteca de componentes utilizada nas aplicações frontend da V.tal.

Pré-requisitos

  • node >= 16.2.0
  • npm >= 7.13.0
  • styled-components >= 5.3.5
"peerDependencies": {
  "react": "^18.2.0",
  "react-dom": "^18.2.0"
}

Project Status

Em desenvolvimento...

Como usar

  1. Através de um terminal, navegue até a raiz do seu projeto em Node e execue o seguinte comando: npm install @ramonuchoa386/fibra-ds
  2. No arquivo inicial do seu projeto (entrypoint), instancie o contexto da biblioteca
/* ./src/index.ts */
import { VtalUIContext } from '@ramonuchoa386/fibra-ds';

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);

root.render(
  <VtalUIContext>
    <App />
  </VtalUIContext>
);
  1. Agora você pode instanciar qualquer componente nas suas views.
import React from 'react';
import { Avatar, Button } from '@ramonuchoa386/fibra-ds';

function Topbar() {
  return (
  <header>
    <Avatar avatarTheme='coral' />
    <Button btnTheme='coral'>Abrir perfil</Button>
  </header>
  );
}

export default Topbar;

Comandos

  1. Empacota a biblioteca de componentes para deploy npm build-lib
  2. Inicia o Storybook npm storybook
  3. Empacota o Storybook para deploy npm build-storybook
  4. Executa os testes unitários npm test
  5. Executa o relatório de cobertura de testes de código npm coverage
  6. Atualiza os snapshots npm snapshotpdate
  7. Executa o lint nos arquivos npm lintix
  8. Prepara os pre-hooks do Git npm prepare

Estrutura de pastas

├── README.md                  # Documentação funcional da biblioteca
├── dist                       # Artefatos da biblioteca gerado para deploy
├── documentation              # Documentação do Storybook
├── package.json               # Configurações do projeto
├── tsconfig.json              # Configurações do TypeScript
├── .husky                     # Hooks do Git
├── .storybook                 # Configuração do Storybook
├── .editoconfig               # Configurações de estilo de código na IDE
├── .eslintrc.json             # Regras de padronização de código.
├── .prettierrc.json           # Regras de formatação de código.
└── src                        # Pasta principal
     ├── @types                # Declaração de tipos
     ├── assets                # Arquivos estáticos
     ├── components            # Componentes Atomic Design
     ├── context               # Estados globais
     ├── util                  # Funções úteis
     └── styles                # Estilos globais e fontes
          ├── theme.ts         # Configurações do tema
          └── global.ts        # Estilo global