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

@20i/mrm-preset

v1.3.0

Published

mrm preset to set up eslint, prettier, lint-staged, husky, and typescript

Downloads

26

Readme

mrm-preset

mrm preset to set up nvm, eslint, prettier, lint-staged, husky, and typescript.

Also includes a separate task for publishing npm libraries.

Usage

Setup all the things!

npx mrm all --preset @20i/mrm-preset
# or for yarn berry
yarn dlx mrm all --preset @20i/mrm-preset

Details

Each of these can be set up individually. To see all available tasks, run npx mrm --preset @20i/mrm-preset

nvm

npx mrm nvm --preset @20i/mrm-preset

Every project should have a .nvmrc file. Currently this defaults to 16, but you can change it to whatever you need.

nvm can be installed by following their installation instructions

eslint

npx mrm eslint --preset @20i/mrm-preset

The @20i/eslint-config will be installed with prettier and typescript support by default. See the package for more details.

If React or React Native are found as dependencies, additional eslint packages will be installed. This command can be run again after adding react if needed.

lint-staged

npx mrm lint-staged --preset @20i/mrm-preset

This also sets up husky to run as a pre-commit hook. The default command is to use a precommit npm script, but that can be adjusted in .husky/pre-commit and in your package.json.

.gitignore

npx mrm gitignore --preset @20i/mrm-preset

Configured with default values for a node project and yarn berry.

Default mrm presets

Any default preset can be run with npx mrm <PRESET>

typescript

Currently, this just runs the mrm preset for typescript. PRs are welcome to update this :D

readme

Will only run if a readme is not already present.

license

Will only run if a license is not already present.

editorconfig

This is a nifty config to help your editor have better default values. For more options, check out editorconfig docs.

Not included in all

ci-publish

npx mrm ci-publish --preset @20i/mrm-preset

ci-publish will add a .github/workflows/ci-publish.yml file to your project for auto publishing to npm on releases. It also adds a release.yml template to help with Github's auto release notes.

Dev

Publish to npm

This package is published to npm using the Publish CI workflow.

The workflow is configured to publish the package to npm after a successful release and package.json version bump.

To use,

  1. Add a publish NPM_TOKEN to your github repo secrets
  2. Bump the package.json version
  3. Make a release

For effective changelogs, be sure to add the labels found in release.yml to PRs.