bskinn / bga-wingspan-scraper

Firefox extension to scrape data from a Wingspan game replay on BGA
MIT License
2 stars 0 forks source link

Figure out webpack &c. to allow simultaneous use of scrape_scores and scrape_boards #44

Closed bskinn closed 11 months ago

bskinn commented 11 months ago

Once everything is fully implemented, it might be moot.

Ultimately, it'll be UI buttons controlling everything, and webpack makes it so that I just import what I need into a ui.ts or whatever, and that'll do it.

Ultimately that ui.ts will be the core stuff. Could call that file main.ts... or maybe main.ts imports a set_up_ui() function from ui.ts that does that?

bskinn commented 11 months ago

Yep, this is pretty much how it'll work.

The UI is the entry point -- whatever we want to kick off, make a UI button for it.

Done as of roughly 5dbb3c8.

bskinn commented 11 months ago

This:

Could call that file main.ts... or maybe main.ts imports a set_up_ui() function from ui.ts that does that?