adobe / aio-cli

Adobe I/O Extensible CLI
https://www.adobe.io
Apache License 2.0
81 stars 35 forks source link

[Feature Request] Add TypeScript Support #722

Open anand-srivastava opened 1 month ago

anand-srivastava commented 1 month ago

Requesting support for TypeScript in aio, including the addition of TypeScript project templates. This would allow developers to create and maintain applications using TypeScript while leveraging Adobe’s extensibility tools.

Use Case

Many developers prefer TypeScript for its type safety, better tooling support, and improved maintainability. Currently, when using aio app init, the generated templates are JavaScript-based. Providing TypeScript support would:

Proposed Behaviour

  1. Add TypeScript templates:
    • Update aio app init to include an option for TypeScript (--typescript flag)
    • Provide equivalent templates for TypeScript similar to the existing JavaScript templates
    • Include tsconfig.json and necessary dependencies (typescript, @types/node, etc.)
  2. Update other CLI Commands to Support TypeScript:
    • Ensure aio app run, aio app deploy, and other commands work seamlessly with TypeScript projects
    • Automatically transpile .ts files if required before execution
  3. Documentation & Examples:
    • Update the official documentation to include examples of how to use TypeScript in Adobe App Builder applications
aiojbot commented 1 month ago

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-3520