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

@w3block/w3block-ui-sdk

v1.15.0

Published

Como padrão, para iniciar o projeto:

Downloads

1,225

Readme

Readme

Como padrão, para iniciar o projeto:

// NPM
npm install

//YARN
yarn install

Linkando a lib

Para fazer a linkagem da lib para um outro projeto é necessário a utilização npm link, porem o npm link nao consegue resolver o problema de dependecias duplicadas, no caso desse projeto o React e o react-query. Para resolver esse problema é necessário fazer um link para a pasta do react no node_modules do projeto que voce vai aplicar essa lib.

npm link <PATH_TO_YOUR_APP>/node_modules/react --force
npm link <PATH_TO_YOUR_APP>/node_modules/react-query --force

Linkando o projeto

Para teste da lib dentro do projeto é necessário fazer o link tambem do projeto com a lib, para isso utilizamos novamente o npm link, só que dessa vez dentro da pasta do seu app/projeto.

npm link <PATH_TO_LIB>

Link 'nao' funcionando

Verificar a versão do react utilizado no SDK e o site, ambos tem que ser o mesmo.

Rodando o projeto

Tendo feito a linkagem do react da lib com o react do projeto e o link do projeto com a lib, para que a mudanças aconteçam em tempo real basta rodar o comando:

//NPM
npm dev:watch

//YARN
yarn dev:watch

Processo de release

A release hoje em dia pode ser feita para staging em formato beta ou para produção. Caso seja feita para staging verificar sempre o publish.yml para ver se o nome da branch está correto, no caso staging,

 target_branch:
        description: 'Target branch of push tags'
        required: false
        default: 'staging'

Estando correto a crição de release é feito como sempre foi

yarn pre-release

No caso de produçao o processo é o mesmo, porem o nome da branch é main.

 target_branch:
        description: 'Target branch of push tags'
        required: false
        default: 'main'

E o comando para o release ja altera um pouco pois é necessário dizer para qual versão o release vai ser feito.

yarn release --release-as v*.*.*