Skip to content

Migrate to TypeScript? #2

@valadaptive

Description

@valadaptive

Currently, twemoji-parser is written in JS + Flow, with the regex generator / build step written in Scala and using the Pants build system. While this may have fit in well with other Twitter projects (Twitter seems to do a lot in Scala; not sure about Flow), twemoji is no longer a Twitter project. It may make more sense to migrate twemoji-parser and the regex-generation build step completely to TypeScript, which the Node ecosystem seems to be coalescing around.

Currently, building twemoji-parser (or at least regenerating the regex) requires installing the JVM, Scala, and Python, despite this being a Node package. I believe it would be more friendly to new contributors to rewrite the regex generator in JavaScript or TypeScript, so that developers more used to the Node ecosystem would have an easier time contributing and wouldn't have to worry about so many non-Node language setups.

I believe that migrating the parser from Flow to TypeScript would also be beneficial. There's a lot more tooling built up around TypeScript than Flow, easing the development process, and the unofficial definitely-typed TS definitions could be replaced with official type definitions.

I would be more than willing to take on this work, provided that you think it'd be beneficial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions