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

@pix8/ui-react

v0.0.5

Published

Staging area for @pix8/ui-react npm package

Downloads

7

Readme

pix8

React UI Components

Modular react.js common UI components for pix8.

Intro

UI react is... will be a modular UI component library based on react.js and use by front-end dev. It sorely needs a better name!

It's built in React + ES6, utilizing Styled-Components for the graceful encapsulation of either style or structure strictly at component level, and bundled using rollup.

Features

This is built on top of the excellent React-Modern-Library-BoilerPlate.

  • Support all modern JS language features for component development out of the box
  • Build process to convert source to umd and es module formats for publishing to npm
  • Comes with an example app using a standard create-react-app, serving 2 purposes
  • Use Rollup for build process and Babel for transpilation
    • See the blog post for an explanation of Rollup vs Webpack
  • Allow the use of npm modules within your library, either as dependencies or peer-dependencies
  • Supports Styled Components
  • Testing available with Jest, using react-scripts from create-react-app

Development Workflow

Now you're ready to run a local version of rollup that will watch your src/ component and automatically recompile it into dist/ whenever you make changes.

Library Development

# run example to start developing your new component against
npm link # the link commands are important for local development
npm install # disregard any warnings about missing peer dependencies
npm start # runs rollup with watch flag

Local Development

We'll also be running our example/ create-react-app that's linked to the local version of your @pix8/ui-react module.

# (in another terminal window) launch local development environment
cd example
npm install
npm link @pix8/ui-react
npm start # runs create-react-app dev server

Deployment

Build and dispatch the module to NPM

# build deployables, increment version/tag and publish
cd example
npm install
npm link pix8/ui-react
npm run build
npm version v<version> | major | minor | patch OR git tag -a v<version> -m "<comment>"
npm pack
npm publish

Note: Please delete the generated archived module once finished

Testing

Initial pass did not have a large focus on testing. However, one thing to note ... if you get the following error:

Error: Error watching file for changes: EMFILE

You will need to install watchman via homebrew (brew install watchman) to have a watcher running on your tests. See this issue on the Jest repo.