aws-samples / amazon-sumerian-hosts

Amazon Sumerian Hosts (Hosts) is an experimental open source project that aims to make it easy to create interactive animated 3D characters for Babylon.js, three.js, and other web 3D frameworks. It leverages AWS services including Amazon Polly (text-to-speech) and Amazon Lex (chatbot).
MIT No Attribution
175 stars 80 forks source link

[WIP] Convert to vanilla JavaScript modules (ES Modules) #183

Open trusktr opened 9 months ago

trusktr commented 9 months ago

[!NOTE] This is branched off of the branch for

  • 180

See that PR first. For convenience, here's the diff between the branches, as the Files changed will not be as useful.

Description

Converts examples to JavaScript (ES) modules, and imports all libraries via import syntax (except for AWS which is still a global var from a non-module script).

This is WIP, all examples and integration tests load, but Babylon demos have a break from Babylon 5 (see below). We also need to

Related Issue \

Reviewer Testing Instructions

Submission Checklist

I confirm that I have...


This contribution is licensed under the original MIT-0 license of the repository. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

theVoiceMouse commented 9 months ago

very interested in this. maybe double check "removed hard-coded Cognito IDs". good work.

trusktr commented 8 months ago

At this point, ESM changes are complete, and this is representative of the new repo format in every way. We just need to apply the fix for Babylon's animation API.

trusktr commented 8 months ago

very interested in this. maybe double check "removed hard-coded Cognito IDs". good work.

@theVoiceMouse Thanks! Indeed, I'll squash this, and I'll void that key and make myself a new one. :)