Note that if you use [base][] directly you will also need to let the plugin know that it is being registered on a Base "application" (since Base
can be used to create anything, like views
, collections
etc.).
var npm = require('{%= name %}');
var Base = require('base');
var app = new Base({isApp: true}); // <=
app.use(npm());
// install npm packages `micromatch` and `is-absolute` to devDependencies
app.npm.devDependencies(['micromatch', 'is-absolute'], function(err) {
if (err) throw err;
});
{%= apidocs("index.js") %}
v0.4.1
- fixes issue #2 to use the
app.cwd
when available to ensure npm modules are installed to the correct folder
v0.4.0
- adds
global
method for installing with the--global
flag - adds
exists
method for checking if a package exists onnpm
- removes [base-questions][]
- removes
askInstall
method (moved to [base-npm-prompt][])
v0.3.0
- improved instance checks
- adds [base-questions][]
- adds
dependencies
method - adds
devDependencies
method