This tool allows to monitor for local changes on NetSuite project. Any changed file will be uploaded to the file cabinet and deployed automatically (when watch mode is active). Also you can download or upload all or single file using command line.
Config built using great tool https://github.com/suiteplus/nscabinet
- Download https://github.com/suiteplus/nscabinet/blob/master/restlet/nscabinet-restlet.js
- Sign in to the NetSuite
- Customization / Scripting / Scripts / New / RESTlet
- Name => REST-NScabinet
- ID => _rest_nscabinet
- Script file / New
- File name => REST-NScabinet
- Folder => RESTlets (from bundle)
- Available for suitebundles => check
- Select nscabinet-restlet.js file
- Save
- Post function => post
- Save / Deploy Script
- ID => nscabinet_deployed
- Roles => Administrator
- Deployed => check
- Save
- Install latest npm (come with NodeJS)
- In terminal:
git clone https://github.com/Sunsvision/gulp-netsuite-watcher.git
- In terminal:
cd gulp-netsuite-watcher
- In terminal:
npm i
- Copy all NetSuite file structure 1 in 1 to gulp-netsuite-watcher root folder
- Configure connection params to "nsconfig" variable in gulpfile.js file
- If you have some project or IDE specific folder or file that should not be loaded to NetSuite file cabinet - add it as exclude to "filesystem" variable in gulpfile.js file (eg. "!node_modules/**" will ignore all node_modules files)
Run one of the following gulp tasks:
gulp
Live mode, without parameters. Will watch for any file changed in filesystem folder and auto upload to NS server - so just run it, start working on your project and your changings will be uploaded to NetSuite filecabinet automatically
gulp download
Single execution. Will download all files from NS server filesystem
gulp download --file file_name
Single execution. Will download selected file from NS server filesystem
gulp upload
Single execution. Will upload all files to NS server
gulp upload --file file_name
Single execution. Will upload selected file to NS server