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

embibe-component-library

v0.1.278

Published

React component library

Downloads

47

Readme

EMBIBE UI COMPONENTS

It's common UI components based on:

React

Styled System

Styled Components

TypeScript

Development

Active development and merge requests happen on the development branch.

Pre-requisites

Steps to startup a local development environment

// Clone this repository
https://bitbucket.org/microservicesembibe/component-library/src/development/

// Make sure to use development branch
git checkout development

// Update npm to the latest version
npm install -g npm

// Install all project dependencies
npm install

// Starts the components libraries and watches for changes in storybook
npm run storybook

Git Workflow

After receiving bug/feature from jira board you need to do these steps:

Create new branch based on development branch with name related to jira ticket

  • if it's feature, branch name should called like feature/{number-of-jira-ticket}_short_ticket_description

  • if it's bug, branch name should called like bug/{number-of-jira-ticket}_short_ticket_description

  • For example for jira ticket SEOT-2

  • You need to create branch like feature/SEOT-2_init_project

Project Structure

Our project structure based on Atomic design

Single responsibility code splitting

With the purpose of keeping individual files short, concise and easily testable we want to ensure each file is entrusted with a particular responsibility. Files that are too large or are doing too much should be split up into smaller files. We understand that this is a very subjective requirement and as such is something that should be kept in mind during the testing / code review process.

Sample directory structure

A complete src directory structure would look something like this:

|  |––atoms/ // small components
|  | | ––[Name]/
|  | | | **tests**/ unit test
|  | | | | ––[Name].test.tsx // unit tests
|  | | | ––[Name].tsx // Component
|  | | | ––types.ts // types
|  | | | ––styled.ts // styled-components styles
|  | | | ––[Name].story.tsx // storybook story
|  | | | ––index.ts
|  | | ––index.ts // export all the atoms from the atoms folder
|  |––molecules/ // small logical components that contain atoms
|  | | ––[Name]/
|  | | | **tests**/ unit tests
|  | | | | ––[Name].test.tsx // unit test
|  | | | ––[Name].tsx // atom implementation
|  | | | ––types.ts // types
|  | | | ––styled.ts // styled-components styles
|  | | | ––[Name].tsx // storybook
|  | | | ––index.ts
|  | | ––index.ts // export all the molecules from the molecules folder
|  |––organisms/ // big components that contains molecules and atoms, can contain some local logic
|  | | ––[Name]/
|  | | | **tests**/ unit tests
|  | | | | ––[Name].test.tsx // unit test
|  | | | ––[Name].tsx // Component
|  | | | ––types.ts // types
|  | | | ––styled.ts // styled-components
|  | | | ––[Name].tsx // storybook story
|  | | | ––index.ts
|  | | ––index.ts // export all the molecules from the molecules folder
|  |––particles/ // logical components, hooks, styles that we need across the application
|  | | ––hooks/ // optional, shared hooks between atoms, molecules, organisms
|  | |––constants/ // shared constants between atoms, molecules, organisms
|  | |––interfaces/ // Typescript interfaces for atoms, molecules, organisms
|  | |––index.ts
|  |––index.ts // export all the components (atoms, molecules, organisms)
|––README.md
|––.gitignore
|––package.json
|––tsconfig.json

Testing

We are using Jest as testing framework, and React Testing Library

// Runs tests for all packages
npm run test

Linting & Code Quality

Linting is currently configured at the root level, and is uniformly applied to all packages. We are using a mix of Husky, ESlint and Prettier tools to automatically format and style the submitted code.

// Runs `eslint src` on all packages
npm run lint

Building

// Builds all packages
npm run build