mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
419 B
21 lines
419 B
13 years ago
|
|
||
|
module.exports = exports = rebuild
|
||
|
|
||
|
exports.usage = 'Runs "clean", "configure" and "build" all at once'
|
||
|
|
||
|
function rebuild (gyp, argv, callback) {
|
||
|
|
||
|
// first "clean"
|
||
|
gyp.commands.clean([], function (err) {
|
||
|
if (err) {
|
||
|
// don't bail
|
||
|
gyp.info(err.stack);
|
||
|
}
|
||
|
|
||
|
gyp.commands.configure([], function (err) {
|
||
|
if (err) return callback(err);
|
||
|
gyp.commands.build([], callback);
|
||
|
});
|
||
|
});
|
||
|
}
|