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-artillery

v1.0.4

Published

A fully loaded CRA (create react app) template.

Downloads

13

Readme

artillery

A fully loaded CRA (create react app) template

USAGE

npx create-react-app my-app --template artillery

Features (utilities)

  1. LocalTunnel support
  2. jsconfig configuration
  3. editorconfig support
  4. prettier support
  5. eslint support
  6. browserlist support
  7. .env support
  8. css normalization
  9. source map explorer support

NOTE: Remove eslintConfig and browserslist from package.json

File Structure

Artillery is a CRA (create-react-app) template which modify some files and add some to the CRA module. Below are all the files which have been modified / added as per the artillery template.

project
│
└─custom_scripts
│   └─localTunnel.js
│
└─src
│   └─index.css
│   └─index.js
│
└─.browserslistrc
└─.editorconfig
└─.env
└─.eslintignore
└─.eslintrc.json
└─.prettierrc
└─.jsconfig.json
└─package.json

LocalTunnel support

The project is configured to integrate with localtunnel out of the box. Localtunnel allows the developer's work environment to be exposed to a public https domain which can be used by anyone with that url to access the project in it's development phase. The localTunnel can be fine tuned(customized) in custom_scripts/localTunnel.js file.

usage:

npm run lt

jsconfig configuration

jsconfig.json is a json file which helps better integration with vs-code. Note that this file is only useful for vs-code. Read here for configuration options in jsconfig.

editorconfig support

.editorconfig is used for setting up defaults for all the browsers. Read here for configuration options. It is recommended to use the editor specific extensions for better integration.

prettier support

Prettier is one of the most famous code formatter present and works very well with most of the code editors. Prettier is configured as a plugin of eslint and works seamlessly with eslint. .prettierrc file contains the configurational details of prettier. Read here for prettier configurational options.

Though prettier being an eslint plugin runs every time eslint runs but if you want to use it separately use the following command:

npm run fix-formate

It is recommended to use the editor specific extensions for better integration.

eslint support

Though CRA comes with eslint support in-build but Artillery template extends it further with prettier plugin and eslintignore file. Use .eslintrc.json for adding customized eslint rules. Use .eslintignore for excluding files from eslint. CRA will run eslint automatically but it is preferred to use a editor specific extensions for better integration.