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

v0.1.2

Published

Scaffold out a micro library or framework using yeoman.

Downloads

15

Readme

generator-microjs

Build Status Code GPA Dependency Status NPM Version IRC Channel Gitter GitTip

About

Quickly scaffold out a micro library or framework.

Features

  • Pre-fills information using your GitHub account data.
  • Checks if your new project name is already taken on NPM.
  • Choose your preferred task runner framework.
  • Choose your preferred unit test framework.
  • Test coverage pre-configured to publish to code climate.
  • Micro library template is pre-configured for AMD, Node.js and browser support.
  • README file
    • Dynamic based on the project configurations.
    • Pre-configured badges for:
      • Travis Build Status: Build Status
      • Code Quality GPA: Code GPA
      • Dependency Status: Dependency Status
      • NPM Version: NPM Version
      • NPM Downloads: NPM Downloads
      • IRC Channel: IRC Channel
      • Gitter Chat Room: Gitter
      • GitTip: GitTip
  • JSHint pre-configured to lint the source code and unit tests.
  • Complexity Report pre-configured to analyze source code for maintainability.
  • Karma pre-configured to run unit tests in your chosen framework.
  • Travis CI configured for continuous integration.
    • pre-configured to publish build status to your project IRC channel and gitter chat room.
  • included dot files
    • .editorconfig
    • .gitattributes
    • .gitignore
    • .jshintrc
    • .npmignore
    • .travis.yml

Setup

You'll need Yeoman installed if you don't have it already.

$ npm install -g yo

To install generator-microjs from npm, run:

$ npm install -g generator-microjs

Scaffolding

Go to your new project folder, run the generator and answer the prompts. The use --coffee flag is optional.

$ yo microjs --coffee

Check List

Step-by-step for creating a new micro-lib. A LOT will be done for you, but there are some things you should customize in your newly scaffolded micro-library.

  1. Create an empty repository on GitHub.
  2. Clone it to your computer
  3. Go to your new project folder, run the microjs generator and answer the prompts.
  4. NPM 1. Update the description in your package.json file and add appropriate keywords. 1. Shrinkwrap your node.js modules using npm shrinkwrap -dev
  5. Travis 1. enable any build status notifications you want published. 1. enable publishing test coverage to code climate.
  6. Writing unit tests for your code.
  7. Implement your micro library or framework.
  8. Activate the repository in Travis.
  9. Push you initial commit to GitHub.
  10. Activate the repository on CodeClimate.
  11. Create a new release of your code on GitHub.
  12. Publish version to NPM with npm publish.
  13. Register your framework with Bower.

Options

  • --skip-install

    Defaults to true. Skips the automatic execution of bower and npm after scaffolding has finished.

  • --coffee

    Defaults to true. Add support for CoffeeScript.

Updating

Use the following command to update to the latest version of generator-microjs.

$ npm update -g generator-microjs

Contributing

Pull requests welcome :)

TODO List

  • add option for sass / css
  • add option for creating a demo page

Testing

Unit tests for this generator are written in Mocha and can be run using npm test.

License

(The MIT License)

Copyright (c) 2014 Daniel Lamb [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.