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

igniter

v1.1.0

Published

A framework where you can run identical npm task like linting, testing, publishing across multiple npm projects. Define your own igniter archetype as a package and you can update all the dev dependencies across your projects by just updating the archetype

Downloads

5

Readme

Igniter :fire:

Why

Igniter manages your commonly used task like linting, testing, publishing and common (dev)dependencies across multiple npm packages. Npm is good for running task for each individual package but what if you have 50 react components packages and 20 express plugin packages. Managing the dev dependencies of like mocha, eslint, karma etc and dependencies across all of your packages will probably yield hundreds of combinations of the dependencies versions, directory structures, npm scripts for similar projects. It will be a mess.

Install

npm install -g igniter

Usage

Igniter by itself does not create any boilerplate npm scripts, common dependencies or dev dependencies. What Igniter does is that it runs archetypes. An archetype defines what the common tasks(npm scripts), the common dev dependencies and the common dependencies are for a particular type of project (i.e. either React components or Express middleware)

An archetype basically is another npm package with scripts defined. To install an archetype in your npm package just simply run

i-install <archetype-package-name>

Let's assume that the scripts of package.json of the archetype is as below

 "scripts": {
    "init": "mkdir src && mkdir lib",
    "lint": "eslint --color -c .eslintrc-server lib bin",
    "test": "mocha --opts test/server/mocha.opts test/server/spec",
    "test-coverage": "istanbul cover --config .istanbul.server.yml _mocha -- --opts test/server/mocha.opts test/server/spec",
    "test-all": "i-run test && i-run test-coverage"
  }

The authors of the archetypes may specific as many scripts as they want. Once a script defined in an archetype, you can run the script with

i-run <script-name>

As you can see, the archetype author may write scripts to create boilerplate directories, do linting, testing, and test coverage and just about anything.

Cascading scripts

i-run example-script will use the example-script defined in node_modules/<archetype-name>/package.json. However you can overwrite example-script in your own package.json since it's sometimes impossible that scripts can be reused across similar packages.

Running scripts

Unlike task runners like gulp and grunt. Igniter only relies on npm, node and shell(i.e. bash) capabilities to run the script. It can run tasks in parallel, timeout a long running task and do anything a shell + node can do.

i.e. Running 2 scripts in parallel i-run test & i-run test-coverage

Support

Igniter is only tested on the *nix bash environment.

Thanks

Project is inspired by http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/