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-cnn-base

v0.7.0

Published

CNN Base Package Generator

Downloads

11

Readme

CNN Base Package Generator

Requirements

A current LTS or Stable version of Node.js. We recommend using nvm to manage node versions.

A utility for installing Yeoman packages. yo should work but it is recommended you use the cnn CLI available from CNN Package Generator.

Install

cnn-package-generator installs the cnn cli tool used to run the Yeoman generator.

$ npm install --global cnn-package-generator
$ npm install --global generator-cnn-base

Usage

With cnn (recommended):

  • $ cnn cnn-base

  • See the README in the CNN Package Generator repo for more details.

With yo (** NOT** recommended):

  • $ yo cnn-base

Options

  • --extend: Extend cnn-base by another generator. This option is used internally by cnn and can be passed in as an argument to yo.

Example:

$ yo cnn-base --extend cnn-generator
Extending cnn-base with cnn-generator

What does this do?

  • Generates a default file structure for the chosen generator.

  • Generates configuration files with predefined settings based on our current standards. This includes settings for the following packages.

  • Generates our standardized process documents.

    • AUTHORS.md
    • CHANGELOG.md
  • Creates a local GIT repository for the project. Currently the remote repository on GitHub will need to be manually created.

  • Generates a default package.json with all of the required properties and dependencies needed for the chosen generator. Includes the following default scripts.

    • generate-authors - Uses a bash script to generate the AUTHORS.md file, which is used by npmjs.org when your package is published.

    • generate-changelog - Uses changelog-maker to generate the CHANGELOG.md.

    • generate-coverage - Uses Istanbul along with Mocha and Chai to create a code coverage report. Also opens it up on OS X in a browser.

    • generate-docs - Uses ESDoc to generate documentation in /docs.

    • test - Uses ESLint to validate all .js files and uses jsonlint to validates all .json files.

    • update-apply - Uses ncu and updates all dependencies.

    • update-check - Uses ncu and lists all updates, but does not apply them.

  • Calls npm-init to further customize the package.json file.

node npm npm-downloads dependency-status