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

generator-scaffold-code-guidelines

v1.1.0

Published

Scaffold code guidelines settings.

Downloads

5

Readme

Scaffold Code Guidelines Generator

Import Code Guidelines configurations into project.

There are rules for SCSS (stylelint) and JS (ESlint). There is also a .editorconfig and .prettierrc to help you follow guidelines as easily as possible. You can read more about code formatting and editor configuration in knowledge base.

This package is built on Yeoman Generator, read more about it in knowledge base.

Installation

  1. Check if you have installed Yeoman already.
npm list -g --depth 0
  1. If you haven't, do so.
npm install -g yo
  1. Install this generator itself.
npm install -g git+ssh://[email protected]:jan.hajek/scaffold-code-guidelines.git

You need to have SSH key correctly set up. If you are generating the key, don't forget paste your email instead of “GitLab” in command ssh-keygen -t rsa -C “GitLab” -b 4096

  1. Then, we need to run command which will output our configuration files. Make sure you're in your projects folder and run:
yo scaffold-code-guidelines

These configuration files are stored in the globally installed package. You should update this package before starting new project.

Adding code guidelines to the ongoing project

In case you are updating old project, there might be a conflict between new files and those already present. Yeoman asks you what to do, don't worry about loosing anything. However, you generally want to have the standard version of the configuration files. If you have your files versioned, you can safely overwrite them. Next, you check git diff to see, if there was something worth keeping and take it back.

Updating the rules in configs

If you want to change the rules, you can do so in this repo. Let the team know, though, so everyone can update their package. You can also make local changes, but that's not recommended, the purpose of those guidelines is to write unified code.

Even smoother work

Download editor extensions (stylelint, eslint, prettier), so the checking is done as you write and formating errors are fixed on save. Check knowledge base on how to do so.