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

@timenglart/cbr

v1.0.0

Published

React component library based on the styling of @jcu/cookbook

Downloads

1

Readme

JCU CookBook React Library

Node.js CI code style: prettier

JCU CookBook-React is a React component library featuring common components for University projects, styled using JCU CookBook.

Requirements

  • Node 12.x.x (or above)
  • Yarn

Deployment

Create a distribution by running the following:

yarn
yarn dist

The compiled TypeScript files can be found in the ./dist folder along with their type definition files.

Development

To set up for development, run the following:

yarn
yarn start

This will build a development distribution and watch the project directory's files, automatically recompiling as changes occur to components.

If you'd like to visualise and analyse the resulting component bundle, run:

yarn build:visualize

To interactively explore components and their relevant props, run:

yarn storybook

This will create a Storybook application which will run a server at http://localhost:6006 which you can view, interact and modify the created React components.

Tests

To run tests on the components and their respective code:

yarn test

You can also check code coverage using:

yarn test --coverage

Upgrading

  • To upgrade react-scripts (Create React App, follow the instructions in the updating documentation.

  • To upgrade this package's dependencies:

    yarn upgrade-interactive

    and read through each of the package's changes to ensure nothing will break on upgrade.

  • To upgrade @jcu/cookbook, complete the yarn upgrade procedure above. For updates to major or minor versions, you will also have to modify the CDN URL located in ./src/config.ts.

Prior to committing any such upgrades, run the tests for this package, described above.

Code standards

All code written in this project is linted via eslint and its default configuration with CRA and formatting is carried out automatically on commit via prettier.

Code can be manually checked and linted via:

yarn lint