🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

ncmp-copy-plugin

Package Overview
Dependencies
Maintainers
1
Versions
5
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-copy-plugin

NCMP plugin for copying files

unpublished
latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

ncmp-copy-plugin

Deprecated - Not actively maintained!!

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

NCMP plugin for copying files from node_modules into another file structure.

Installation

npm install ncmp-copy-plugin

Usage

Use this to copy files which are runtime dependencies of your client application to another folder structure outside of node_modules.

You have to extend the ncmp.json configuration file as described below:

{
    "destinations": {
        "*.css": "content/components",
        "aurelia-*.js": "scripts/components/aurelia/*",
        "*": "scripts/components",
    },
    "plugins": ["copy"]
}

Add the word "copy" to the correct position in the "plugins" array.

It defines the destination folders depending on a regular expression which is executed against the file basename. The base path is the root folder. In this example we want to copy the distributions from jquery. The tool will perform the following copy actions:

SourceDestination
./node_modules/jquery/dist/jquery.js./scripts/components/jquery.js
./node_modules/jquery/dist/jquery.min.js./scripts/components/jquery.min.js
./node_modules/aurelia-framework/dist/amd/aurelia-framework.js./scripts/components/aurelia/framework/aurelia-framework.js
./node_modules/aurelia-templating/dist/amd/aurelia-templating.js./scripts/components/aurelia/templating/aurelia-templating.js

You can also define a single source file instead of an array. Files are only copied if they does not exists in the destination or the file hash differs.

You can use globs everywhere in the source file paths:

dist/*.js
dist/jquery.*
dist/*.min.js

See main documentation for additional information.

License

MIT

Keywords

ncmp

FAQs

Package last updated on 28 Jan 2017

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