Closed zepumph closed 1 year ago
I experimented with this and don't think we should proceed. In my opinion, it may be best and easiest to start using phet-lib for these cases, though it comes with much more baggage, having a single way to ship and version this code will likely be best and easiest.
Here is the patch where I added the ability to specify a different standalone filename, and supported tambo in having a standalone runnable with window globals for all classes:
Here is how I tested it:
<html>
<script src="../sherpa/lib/lodash-4.17.4.min.js"></script>
<script src="../tambo/build/tambo.min.js"></script>
</html>
I immediately ran into a problem where phet
wasn't defined trying to access phet.chipper.queryParameters.supportsSound
. My recommendation from this point is to instead spend time on phet-lib, since it is more streamlined into our code base (since it will do things like add initialize-globals as a preload.
Over to @jessegreenberg for next steps.
@jessegreenberg and @zepumph - I just got tambo working from phetlib for the paper programming project (currently in the papyrus repo, but there is talk of renaming this repo). There are some awkward steps necessary to make it work, and I'll log a separate issue for that, but I'm wondering if that means this issue can be closed.
Awesome! Yes, I think phet-lib is a good way to go. I am fine closing this issue. Anyone free to reopen if there is anything else to do here.
@jessegreenberg showed interest in this, and I think it will be straight forward. Let me take a look!