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

cra-template-stg

v4.3.0

Published

A quick start Create React App template with React Router, Redux Toolkit, TypeScript, React Testing Library and custom ESlint configurations. As well as, Storybook, Styled Components, Emotion, Material UI, Prettier, Husky and more.

Downloads

90

Readme

create-react-app --template stg

Commitizen friendly semantic-release: angular github GitHub Workflow Status (with event) npm dwndt

A quick start Create React App template with React Router, Redux Toolkit, TypeScript, React Testing Library, styled-components, MUI, storybook and custom ESlint configurations. As well as Husky & Commitizen so you can keep deploying your code in the best way possible.

Changelog

See the changelog to see latest changes. Raise an issue if you see something that needs improvement or witness a bug with the template

How to install? Prerequisities

You MUST have : node & npm

After successfully installing node run the following command:

npm install yarn -g

This will install yarn globally.

Next head over to the folder where you would like to use cra-template-stg.

Press Alt+D type in cmd press Enter and after the terminal appears type in the following:

yarn create react-app . --template stg

Change . with your project name if desired.

You might get a message This will install create-react-app... just press Enter to continue

Initial setup

You can start the project after the scripts are done

yarn run start

Or directly start developing in VSCode

code .

Husky & Commitizen initialization

Type in the following if you chose a desired name:

cd *your project name* && yarn run husky-init

If you went with a . for a project name then just proceed with:

yarn run husky-init

This will configure husky & commitizen to automatically prettify and lint your files as well as commit by the conventional commit standard. IMPORTANT - never run this command more than twice as it would write the same hooks and your git commit commands would be calling the commitizen cli twice!

Best commit practices for me are:

$ git add .
$ git commit

After $ git commit the terminal will call husky pre-commit hook which will lint all files. Then husky will call the prepare-commit-msg which on its side will prompt the commitizen conventional commit interface.

Lastly, of course, after selecting the type of commit and commit message we need to push our changes.

$ git push

Continous Integration

The project comes with CI already configured with Semantic Release. It uses GitHub Actions to run yarn install, yarn lint & yarn release on every push to the main branch. That is also updating an automated CHANGELOG.md file when there are changes that trigger a release. A change that trigger a release is analyzed with the help of @semantic-release/commit-analyzer and @semantic-release/release-notes-generator plugins whereas the Changelog is updated with the help of @semantic-release/changelog. In order to use it you need to set up Github Actions. Go to the Actions tab and you will see the workflow running. However, make sure you add a GH_TOKEN environment variable in your repository settings. You can find more information on how to do that here.. Another important thing is to have your Github Actions settings configured like this and this in order to have the CI working properly.

Great job!

That's it! You are ready to start building on top of this template.

If you liked this template consider giving it a star ⭐