Skip to content

Add support for JSX file format as well via create-email #423

Closed

Description

@gokulkrishh

Using this command, i am able to create starter email

npx create-email@latest

By default, above command create Component files in .tsx file format, it would be great if there is flag to enable the support for .jsx file format as well

Suggestion:

npx create-email@latest --jsx

Note: JSX file support is already in place via [#231]. Asking for flag to enable the creation of Components as jsx file.

Activity

  1. bukinoshita commented on Feb 1, 2023

    @bukinoshita
    Member

    Nice, thanks for creating this @gokulkrishh.

    I think we can have a typescript flag.

    $ create-email
    $ create-email --typescript
  2. gokulkrishh commented on Feb 1, 2023

    @gokulkrishh
    Author

    @bukinoshita So by default .JSX and a flag for typescript. This would great.

  3. bastiaanv commented on Feb 2, 2023

    @bastiaanv
    Contributor

    I would suggest to switch it around. Typescript by default, and .JSX as flag. Typescript is currently the default for most frameworks

  4. gokulkrishh commented on Feb 2, 2023

    @gokulkrishh
    Author

    @bastiaanv I am not so sure about typescript being the default for most frameworks (Not trying to start a debate on typescript 😄).

    For CRA and NextJS, we need to pass --typescript flag. Realised this after check the docs.

    Would leave this decision to you people to decide.

  5. bukinoshita commented on Feb 6, 2023

    @bukinoshita
    Member

    Yeah, I'd prefer having Typescript as default as well, but most libraries has JS as default instead of typescript. So I'd suggest going with jsx as default and in the example always show the typescript flag.

  6. locked and limited conversation to collaborators on Mar 21, 2023
  7. converted this issue into a discussion #586 on Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: create-emailPackage for running `npx create-email`Package: react-emailThis is the CLI we generally use as just `email` on the temrinal.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions