var fsautil = require('fsautil'); console.log("relocating freshly-built native plugin..."); fsautil.mkdir_p("./lib",function(){ fsautil.cp("./build/Release/p4nodeapi.node","./lib/p4nodeapi.node",function(){ console.log("cleaning up build dir..."); fsautil.rm_rf("./build",function(){ console.log("cleaning up downloaded p4 c++ api files..."); fsautil.rm_rf("./tmp",function(){ console.log("all cleaned up, and ready to rock!"); process.exit(0); }); }); }); });
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16451 | Liz Lam | "Forking branch Main of matt-attaway-p4nodeapi to liz_lam-p4nodeapi." | ||
//guest/matt_attaway/p4nodeapi/npm_scripts/postinstall.js | |||||
#1 | 8517 | Matt Attaway |
Add a node.js language binding for Perforce This is fairly simple extension for node to make it easier to run Perforce commands from your node.js application. We've used this a fair amount internally, but it hasn't seen the same level of love as the other Perforce APIs. This API is not supported by Perforce support, but you are welcome to post on the forums if you have questions. |