All Projects → bahmutov → Npm Module Checklist

bahmutov / Npm Module Checklist

Licence: mit
Steps to check when starting, working and publishing a module to NPM

Projects that are alternatives of or similar to Npm Module Checklist

Rsmq
Redis Simple Message Queue
Stars: ✭ 1,556 (+1144.8%)
Mutual labels:  npm
Kymsu
Keep Your macOs Stuff Updated (KYMSU)
Stars: ✭ 119 (-4.8%)
Mutual labels:  npm
Greenkeeper
🤖 🌴 Real-time automated dependency updates for npm and GitHub
Stars: ✭ 1,564 (+1151.2%)
Mutual labels:  npm
Simple Boilerplate
A simple webpack boilerplate for your comfortable work with HTML, JS and CSS.
Stars: ✭ 116 (-7.2%)
Mutual labels:  npm
Getme
CLI utility for everyday tasks. With getme you get weather, forecast, currency rate, upload files, IP address, word definitions, text translations, internet speed, do google searches, get inspirational quotes and get Chuck Norris jokes
Stars: ✭ 118 (-5.6%)
Mutual labels:  npm
Phd
A list of resources on how/why to do a PhD
Stars: ✭ 120 (-4%)
Mutual labels:  advice
Discord.js Musicbot Addon
This DOES NOT WORK any more. This repo only serves as an archive for is anyone wants to pickup my work. You may still join the discord however.
Stars: ✭ 109 (-12.8%)
Mutual labels:  npm
React Ckeditor
CKEditor component for React with plugin and custom event listeners support
Stars: ✭ 124 (-0.8%)
Mutual labels:  npm
Restberry
Framework for setting up RESTful JSON APIs with NodeJS.
Stars: ✭ 118 (-5.6%)
Mutual labels:  npm
Create New Cli
Create your own CLI using a series of simple commands.
Stars: ✭ 122 (-2.4%)
Mutual labels:  npm
Get Programming With Nodejs
Code samples for Get Programming with Node.js (See verhagen's VM setup for exercises in this book: https://github.com/verhagen/get-programming-with-nodejs)
Stars: ✭ 117 (-6.4%)
Mutual labels:  npm
Php Sf Flex Webpack Encore Vuejs
A simple app skeleton to try to make every components work together : symfony 4 (latest stable at the date, but work with sf 3.3+ if you just change the versions in composer.json), symfony/flex, webpack-encore, vuejs 2.5.x, boostrap 4 sass
Stars: ✭ 118 (-5.6%)
Mutual labels:  npm
React Use Localstorage
(seeking maintainers) ⚓ React hook for using local storage
Stars: ✭ 122 (-2.4%)
Mutual labels:  npm
React Native In App Message
React Native in-app notification component
Stars: ✭ 114 (-8.8%)
Mutual labels:  npm
Atbmarket
🎉 JUST FOR FUN :: npm package of ATB plastic bag
Stars: ✭ 123 (-1.6%)
Mutual labels:  npm
Npm Stats Www
A website showing npm modules metrics
Stars: ✭ 113 (-9.6%)
Mutual labels:  npm
Puresharp
Puresharp is a Framework that provides the essential APIs (AOP, IOC, etc...) to productively build high quality (.NET 4.5.2+ & .NET Core 2.1+) applications through reliability, scalability and performance without no compromise
Stars: ✭ 120 (-4%)
Mutual labels:  advice
Npm Expansions
Send us a pull request by editing expansions.txt
Stars: ✭ 1,777 (+1321.6%)
Mutual labels:  npm
Npm Link Shared
links a folder of local modules with inter-dependencies to the target directory
Stars: ✭ 123 (-1.6%)
Mutual labels:  npm
Example Rollup React Component Npm Package
Example React Component, Published to npm
Stars: ✭ 122 (-2.4%)
Mutual labels:  npm

npm-module-checklist

Steps to check when starting, working and publishing a module to NPM

You can add the included CHECKLIST.md into your project, or copy it into your README.md; then check items off as you go. Use one of the two badges to let everyone know your module is solid.

npm checklist badge badge alternate

[![badge 1](https://img.shields.io/badge/follows-npm%20checklist-brightgreen.svg)](CHECKLIST.md)
[![badge 2](https://img.shields.io/badge/%E2%98%B0-%E2%9C%93-brightgreen.svg)](CHECKLIST.md)

Example: manpm

Checklist

  • [ ] watch the egghead.io series How to Write an Open Source JavaScript Library; it is extremely useful for any NPM project (OSS or closed-sourced).
  • [ ] start unit testing right away, pick your unit testing framework
  • [ ] start linting code to prevent obvious problems, like misspelled variable. eslint, jshint, jscs or all of them together gulp-lint-everything
  • [ ] run linting and unit tests on each commit locally. pre-git, ghooks and use ban-sensitive-files to avoid committing sensative files (like private keys).
  • [ ] use code quality as a service tool to fight creeping code complexity. Codacy, CodeClimate, BitHound
  • [ ] validate commit message using pre-git or commitizen with validate-commit-msg. This enables other tools, like intelligent release notes.
  • [ ] use logging library to show more information during debugging or verbose mode. debug, logdown
  • [ ] show the project's GitHub open issues on demand or on commit using git-issues
  • [ ] setup continuous integration server, like TravisCI or CircleCI (or wait until you set up semantic-release which will set up TravisCI for you).
  • [ ] add badges to the README to make broken unit tests or out of date dependencies visible
  • ci server badge
  • published NPM package info NodeICO
  • production and dev dependencies being out of date david-dm
  • semantic release badge
  • code quality badges
  • insecure code or dependencies
  • [ ] check module published size and white list only necessary files, tutorial
  • [ ] setup semantic-release to automate publishing and avoid breaking semver. This is important, but is currently broken in too many projects. Even this checklist is using semver!
  • [ ] avoid surprizes by using exact versions of the top level dependencies. Use save-exact NPM setting and exact-semver to enforce it.
  • [ ] setup a script to reliably update out of date dependencies using next-update
  • [ ] setup automatic pull requests when newer versions of dependencies appear greenkeeper.io
  • [ ] if writing a CLI tool, add a way to check if it is out of date and should be upgraded; update-notifier
  • [ ] scan dependencies and code for known security vulnerabilities. snyk, NodeSecurity
  • [ ] catch missing or invalid package.json values using grunt-nice-package or fixpack
  • [ ] write simple installation commands for your module
  • [ ] write "quick intro" example showing the main feature of your module
  • [ ] add CONTRIBUTING.md file with clear guidelines how others can add new features or fix bugs in your module. Atom editor and lodash have excellent examples to follow. When GitHub finds a CONTRIBUTING.md file it shows a message to anyone opening an issue.
  • [ ] generate documentation automatically. xplain is my own tool for JS to HTML/Markdown generation
  • [ ] place most of the public API documentation in README file for simple retrieval. This allows other developers to find relevant sections right from the command line manpm or by looking up npm home package-name
  • [ ] use a library to output the correct plural forms of words in the user messages pluralize

Source: npm-module-checklist

Advanced

If you include the separate checklist file, you can automatically insert / update it inside the README. Setup the markdown update as a step in your build process using update-markdown.

Contributing

Everyone is welcome to submit pull requests with new content. I just ask to check before submitting a new content that:

  • it is not covered by an item that already is in the list.
  • if there is an open issue, please reference it in your commit message. You can even check the list of issues from command line before committing npm run issues.
  • has links to an explanation why it is a good idea and tools that help accomplish it.
  • Make sure to run npm run build once to update the checklist inside README.md

Contributors

Small print

Author: Gleb Bahmutov © 2015

License: MIT - do anything with the code, but don't blame me if it does not work.

Spread the word: tweet, star on github, etc.

Support: if you find any problems with this module, email / tweet / open issue on Github

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].