supibot icon indicating copy to clipboard operation
supibot copied to clipboard

Typescript status

Open boring-nick opened this issue 1 year ago • 5 comments

This issue tracks the adoption of Typescript into Supibot

Supibot itself:

  • [x] Initial support with build infrastructure etc - https://github.com/Supinic/supibot/pull/95
  • [x] Definitions for globals which are used everywhere such as sb
    • Seems to be doable via declare var in a globals.d.ts file
  • [ ] First bot command in TS
    • [ ] Hot reloading
  • [ ] Bot internals such as platform handling

Helper repos:

  • [x] supi-core:
    • Initial support: https://github.com/Supinic/supi-core/pull/50
  • [x] supi-db-init:
    • Full migration - DONE: https://github.com/Supinic/supi-db-init/pull/3
  • [ ] supinic.com: TODO (no idea what's going on there and how templating interacts with TS)
  • [ ] track-link-parser:
    • WIP: https://github.com/Supinic/track-link-parser/pull/4
  • [x] duration-parser:
    • DONE: https://github.com/Supinic/duration-parser/pull/1
  • [ ] async-markov: TODO
    • WIP: https://github.com/Supinic/async-markov/pull/1
  • [x] cytube-connector: DONE
    • https://github.com/Supinic/cytube-connector/commit/132a30d833127f432b733966de074ea8e8c28e18
  • [X] supibot-desktop-listener:
    • Full migration - DONE: https://github.com/Supinic/supinic-desktop-listener/pull/5

boring-nick avatar Aug 04 '24 14:08 boring-nick

Merged https://github.com/Supinic/supi-db-init/pull/3 👍

Supinic avatar Aug 06 '24 15:08 Supinic

Merged Supinic/supi-core#50 👍

Supinic avatar Aug 16 '24 15:08 Supinic

Merged https://github.com/Supinic/duration-parser/pull/1 :+1:

Supinic avatar Aug 27 '24 17:08 Supinic

Merged Supinic/supibot#95 👍

Supinic avatar Sep 03 '24 15:09 Supinic

Pushed cytube-connector :+1:

Supinic avatar Sep 10 '24 18:09 Supinic

Merged https://github.com/Supinic/supi-core/pull/55

Supinic avatar Jan 14 '25 16:01 Supinic

Major changes in #113:

  • track-link-parser is now baseline in Supibot as utils/link-parser.ts
  • bot internals are in TS now (platforms, classes, utils, some others; not singletons for now)
  • several but not all commands are in TS now
  • reload command adjusted to run git pull then yarn build then hot-reload with dynamic imports and a random hash - best we can do, really

Supinic avatar Apr 15 '25 16:04 Supinic

async-markov Typescript merged in supinic/async-markov#1

Supinic avatar Apr 15 '25 16:04 Supinic

The supinic.com project is not directly related to Supibot, so it doesn't have to be mentioned here.

Supinic avatar Apr 15 '25 16:04 Supinic

So that's it then. Now to slowly rewrite commands and stuff as they come along.

Image

Supinic avatar Apr 15 '25 16:04 Supinic