Developers currently have to manually set up the project structure, which is time-consuming and error-prone. A CLI tool will standardize project creation.
Technical Implementation:
- Create a new package
newgate-cli or add a bin entry to the main package.
- Use
commander or yargs for argument parsing.
- Use
prompts or inquirer for interactive project setup (name, language, template).
- Include templates for:
- Basic JS (ES Modules)
- TypeScript (with build step)
Acceptance Criteria:
Developers currently have to manually set up the project structure, which is time-consuming and error-prone. A CLI tool will standardize project creation.
Technical Implementation:
newgate-clior add abinentry to the main package.commanderoryargsfor argument parsing.promptsorinquirerfor interactive project setup (name, language, template).Acceptance Criteria:
npx create-newgate-app my-appprompts the user for configuration.my-appis created with a workingpackage.jsonandindex.js.npm startin the new directory successfully starts the server.