🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

ncmp

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

ncmp

NPM client modules postprocessor

unpublished
Source
npmnpm
Version
0.2.0-beta
Version published
Maintainers
1
Created
Source

NCMP - NPM Client Modules Postprocessor

NPM David bitHound Overall Score Join the chat at https://gitter.im/ncmp/ncmp

NCMP is a simple tool which allows you to perform some postprocessing after npm installs or updates. It is mainly designed for usage in client infrastructures. So if you use npm as your main client package manager.

Installation

npm install ncmp

Usage

One of the goals of this project is to provide a modular as possible tool for npm postprocessing in web client infrastructures. The developers should have full control about all steps at any time.

You have to create a ncmp.json configuration file in the root folder of your project:

{
    "packages": {
        "jquery": ["dist/jquery.js", "dist/jquery.min.js"],
        "aurelia-framework": "dist/amd/aurelia-framework.js",
        "aurelia-templating": "dist/amd/aurelia-templating.js"
    },
    "plugins": []
}

In the "plugins" array you can define a set of plugins (in their execution order) which can do more specific postprocessing.

Plugins

Writing Plugins

There are some requirements for new plugins:

  • The name of the plugin npm module has to be ncmp-XXX-plugin. Where XXX is the string for the "plugins" config section.
  • The main file has to define and export a function with this signature: runPlugin(chain). The chain has to be returned.
  • To retrieve the config you have to reference ncmp as a peerDependency. The config variable is exported.
  • Create a pull request for this README and extend the list of plugins above.

License

MIT

Keywords

ncmp

FAQs

Package last updated on 16 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts