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-azwell-js-redux

v0.8.0

Published

A quick start Create React App template with React Router, Redux, and custom ESlint configurations with Husky pre-commit

Downloads

2

Readme

A quick start Redux + React-Router Create React App template configured with Prettier and EsLint Airbnb style

An opinionated quick start Create React App (CRA) template with configured Redux, React Router, Prettier and custom ESlint configuration.

Original Create React App README available here

Warning

Please note that this template use the last lts version of node.js currently 16.13.1, I cannot guarantee that it will work on previous version.

Usage

npx create-react-app your-project-name --template azwell-js-redux

Or

yarn create react-app your-project-name --template azwell-js-redux

npx command installs the most recent stable version of CRA from npm.

--template parameter points to this template, note that cra-template- prefix is omitted.

Purpose

I've been struggling since the beginning of my developer journey to have things I use the most already configured on a new project. React-Router, Redux, Eslint config, Prettier etc can be so long to configure that's why I've created this template, feel free to use it and ask for any questions.

Available Scripts

In the project directory, you can run:

  • npm start - runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

  • npm run test - launches the test runner in the interactive watch mode.

  • npm run build - builds the app for production to the build folder.

Husky pre-commit has been added to this project so that you can check for eslint error before commit and can't commit unless you have 0 warnings in your code.

Due to CRA template limitations (we can change only scripts and dependencies inside generated package.json) all configuration is done by adding config files where possible. Also no devDependencies for now, sorry.

Prettier

I added prettier to force consistent formatting. Don't like trailing semicolons? Feel free to tweak prettier rules inside .prettierrc file to match your code style.

Styles/CSS/Styling

You will find in the index.scss file my personal CSS reset, feel free to change it to use your own.

Eslint configurations

The template extends CRA ESLint rules with a custom set, tailored for the reasonable and clean development process.

Eslint rules are commented for your convenience feel free to tweak or remove them inside .eslintrc. No judgment.

Testing template locally

To test the output of your template locally run

npx create-react-app my-app --template file:/\path\to\file

Thank you

I hope this template will be helpful for you !