Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start on conversion to typescript #90

Open
clexmond opened this issue Jun 19, 2024 · 5 comments
Open

Start on conversion to typescript #90

clexmond opened this issue Jun 19, 2024 · 5 comments
Labels
enhancement New feature or request ODHack

Comments

@clexmond
Copy link
Member

Start on a conversion of the SDK to typescript. First steps should include a build process that can be incorporated into Github Actions.

@clexmond clexmond added enhancement New feature or request ODHack labels Jun 19, 2024
@Oshioke-Salaki
Copy link

Can i do this?

@HumbertoTM10
Copy link

Hi @clexmond is this still available to work on?

@jedstroke
Copy link

Hi @clexmond, here's my portfolio: https://www.jedshock.com, can I port the SDK to TypeScript?

@clexmond
Copy link
Member Author

This is a potentially large task! I'd love to hear how you would approach this since fully converting could take longer than we have during ODHack, what's a good intermediate deliverable?

@Ugo-X
Copy link

Ugo-X commented Jun 22, 2024

Hello Project Lead @clexmond ! I'm Ugo, a fullstack(JS,TS,React,Node,Next.js,Three.js) developer with a strong track record in OD hack projects. I've been actively involved since Edition 2, contributing to various initiatives, and I'm thrilled to be part of Edition 5!
Having used OnlyDust extensively (see my profile:https://app.onlydust.com/u/Ugo-X ), I'm confident in my ability to tackle new challenges within this edition.
I'm eager to leverage my skills and experience to contribute effectively.

Here is how I would tackle the issue

  • I would set up a TypeScript compiler for the SDK.

  • I would then create a tsconfig.json file to configure how TypeScript compiles the SDK files.

  • Since we already have an src folder, I would rename the index.js file to index.ts to utilize TypeScript for the main SDK file.

  • Next, I would update the package.json file to include a build script that utilizes the TypeScript compiler. This script will help automate the compilation process.

  • Finally, I would create a GitHub Actions workflow file (if we use GitHub). This workflow would automatically build the SDK using TypeScript whenever the code is deployed. This helps streamline the build process.

  • Later on we can start changing the files one by one to support typescript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ODHack
Projects
None yet
Development

No branches or pull requests

5 participants