- NodeJS 8.9.1
npm install -g mocha yarn && yarn install
Run the following while you are developing to continuously execute tests.
gulp watch-tests
In order to deploy to NetSuite, you will need to configure your account
credentials in credentials.json
, and your user must be an Administrator of
the NetSuite account you are attempting to deploy to.
-
Copy or rename
credentials-sample.json
tocredentials.json
-
Go to
Setup > Integration > Web Services Preferences
in your NetSuite account. -
Copy the
ACCOUNT ID
value to yourcredentials.json
file underaccount
, and fill in all other appropriate values forrole
,email
, andpassword
. -
If your account sandbox is newer and not hosted at the sandbox.netsuite subdomain, run the following command:
./util/use_top_level_sandbox.py
-
If you want to use the SuiteCloud Development Framework to backup and deploy object definitions alongside your scripts, first install the SDF CLI tools and then run
./util/init_sdf.sh
to configure the project folders. -
If you want to use the
gulp create-script
command, be sure to edit the script header definition intemplates/_script_header.js
.
Run the command gulp deploy-sandbox
to deploy to your Sandbox account.
Run the command gulp deploy-production
to deploy to your Production account.
You can also pull any repository-tracked scripts using gulp pull-sandbox
or
gulp pull-production
.
To pull workflows and saved searches you can use gulp pull-[env] --workflow [workflowscriptid]
or gulp pull-[env] --savedsearch [savedsearchscriptid]
.
Other types are not supported at this time.
Viewing all account objects can be done with gulp pull-[env] --listobjects
.
Previewing deployment changes against an account can be performed with gulp pull-[env] --preview
.
To deploy as an SDF bundle use gulp deploy-[env] --sdf
.
Using the NetSuite debugger is an absolute chore. If you are a Vim user, there is now a better option.
- Install my NetSuite Browserlink plugin into your Vim install.
- In Chrome/Chromium, open the extensions window and drag-drop the file
util/vim_netsuite_browserlink.user.js
file into the pane to prompt to install the user script. - Follow the Browserlink usage directions for more details.
AGPLv3