NetSuite Tool to generate SDF Template for TypeScript and more
npm install netsuite-ts-sdf-toolTo install netsuite-ts-sdf-tool, use npm:
``bash`
npm install -g netsuite-ts-sdf-tool
Ensure that you have Node.js and npm installed on your machine.
To install dependencies:
`bash`
npm install
bash
nsx setup
`
It will guide you through a setup wizard to configure your user settings.##### help
`bash
nsx help
`
Shows help information.##### create
The create command initializes a new project structure, including appropriate naming and directory handling.
`bash
nsx create
`
After running the command, follow the prompts to define script type, project name, and destination folder. Your file will be named according to the format specified during setup (or default if not set). You will be prompted to confirm the suggested name and be able to override it.##### newfile
`bash
nsx newfile
`
Utilizing newfile, you can swiftly generate a new TypeScript file in your project. The command prompts you to enter a filename and an optional folder path. It ensures the file is created at the desired location and updates the webpack configuration automatically.##### template
`bash
nsx template
`
Start the template flow. Choose the script type, select the function(s) to add, and then select the file to replace. Only files with less than 20 lines will show up to prevent overwriting important files.
##### build [bun]
Use the build command to compile your project and upload the built file(s) to the SuiteCloud File Cabinet.
`bash
nsx build
`
or with an optional argument:
`bash
nsx build bun
`
Upon execution, the CLI will prompt you to select one or more path(s) to build from a list. Choose the desired option(s) and the script will handle the build and upload process. Ensure your project.json is properly configured and not empty, as the CLI will fetch the account authentication ID from this file as a security step to not accidentaly deploy to Production.If used without bun as argument, it uses npm for the build process. If used with bun as argument it'll run using bun insxead.
`bash
npm/bun run build && suitecloud file:upload --paths "/SuiteScript/YOUR_SELECTED_PATH.js" "/SuiteScript/ANOTHER_SELECTED_PATH.js"
``Ensure your project.json is correctly configured and authenticated using SuiteCloud CLI.
If not authenticated, utilize: suitecloud account:setup -i
Here are some ways you can contribute:
Reporting Issues: Provide a detailed report of any issues encountered, steps to reproduce them, and relevant system details.
Submitting Pull Requests: Work on improvements or fixes and submit them to be reviewed for inclusion in the project.
Enhancement Suggestions: Provide thoughts on current features and suggestions for new ones.
Ensure to follow the contribution guidelines detailed in CONTRIBUTING.md (if available) when submitting any changes.
The detailed license can be found in the LICENSE file in the repository. It essentially allows you to do anything you want with the software, as long as you include the original copyright and license notice in any copy of the software or any substantial portion of it.