A simple node file watcher to upload changed files to your NetSuite file cabinet. It does rely on a RESTlet that updates a file
using the nlapiCreateFile
suitescript function.
npm install -g ns-upload
Create a ns-upload.json
file in the root of your project. That file will need the following:
{
"url": "",
"nsRootPath": "",
"watched": "",
"auth": {
"email": "",
"pass": "",
"account": "",
"role": ""
}
}
URL to a updateFile RESTlet in your NS instance. Someday, maybe we'll use SOAP, but for now this. Never.
Path to the directory within the file cabinet that your project lives.
File patterns to be matched.
An object containing your Netsuite authentication credentials (email, pass, account, role).
Just run the command ns-upload
while deving to watch your files.