netsuite-suitecloud-sdk icon indicating copy to clipboard operation
netsuite-suitecloud-sdk copied to clipboard

Added options in suitecloud project:create for scaffolding Single Page Application (SPA) projects

Open warambil opened this issue 8 months ago • 2 comments

Contact Email

[email protected]

Type of Contribution

Code Enhancement

Product

SuiteCloud CLI

Contribution Description

Now that SPA support has been released, I believe it would be helpful to extend the suitecloud project:create -i command with a new option for initializing SPA applications.

Similar to the existing prompt that asks whether to include packages for Jest and testing, we could add an additional step asking if the project is intended to be a Single Page Application. If selected, this option would automatically scaffold the project with the necessary packages, configuration, and default folder structure for an SPA built with SDF.

This would streamline the setup process for developers building SPA projects and encourage consistency across implementations.

Prerequisites

Yes, I have completed the prerequisites

Additional Information

There should be an extra step that should ask:

Is this an SPA project? (No, Yes)

If YES

Will this project use TypeScript? (Yes, No)

Add

gulpfile.mjs package.json (add needed packages references) tsconfig.json tsconfig.test.json prettier.config.js build eslint.config.mjs README.md

The SERVERSIDESCRIPTING feature in the MANIFEST dependencies

SpaClient.js SpaServer.js

Empty directories with .ignore assets directory components page app

warambil avatar Mar 30 '25 22:03 warambil

Hi @warambil , thank you for your feature proposal! This is a very valuable suggestion, and our team will review and evaluate how it can be aligned with our roadmap. We’ll keep you posted on our next steps!

veronicacbs avatar Mar 31 '25 10:03 veronicacbs

Thanks. By all means, please review it and let me know if your team would accept me to fork the project and send a code review with this feature.

warambil avatar Mar 31 '25 13:03 warambil