npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

netsuite-ts-sdf-tool

v2.3.1

Published

NetSuite Tool to generate SDF Template for TypeScript and more

Downloads

31

Readme

NetSuite TypeScript SDF Tool

netsuite-ts-sdf-tool is a command-line interface (CLI) tool designed to automate and streamline your project creation and build processes, particularly focusing on SuiteScripts development for the NetSuite platform.

To install netsuite-ts-sdf-tool, use npm:

npm install -g netsuite-ts-sdf-tool

Ensure that you have Node.js and npm installed on your machine.

To install dependencies:

npm install

Usage

setup

Use the setup command to configure the CLI with user-specific details, such as file prefix and filename format.

nsx setup

It will guide you through a setup wizard to configure your user settings.

help
nsx help

Shows help information.

create

The create command initializes a new project structure, including appropriate naming and directory handling.

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
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
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.

nsx build

or with an optional argument:

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.

npm/bun run build && suitecloud file:upload --paths "/SuiteScript/YOUR_SELECTED_PATH.js" "/SuiteScript/ANOTHER_SELECTED_PATH.js"

Configuration

Ensure to run the setup before creating a new project to specify your desired filename prefix and format. You can specify filename format using placeholders like {prefix}, {scriptType}, and {projectName}. Example format: "{prefix}_{scriptType}_{projectName}"

Ensure your project.json is correctly configured and authenticated using SuiteCloud CLI. If not authenticated, utilize: suitecloud account:setup -i

Contribution

Contributions to netsuite-ts-sdf-tool are always welcome, whether it be improvements to documentation, feature requests and implementation, bug fixes, and more.

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.

License

netsuite-ts-sdf-tool is MIT licensed. This means you're free to use this software for any purpose, to distribute it, to modify it, and to distribute modified versions of the software under the terms of the license.

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.