-
Notifications
You must be signed in to change notification settings - Fork 16
Description
In phetsims/perennial#456 I added a watch script that automatically modulifies on yaml modification. @brent-phet and @jonathanolson are also discussing adding a step to phettest that designers can commit changes to yaml, and phettest will automatically grunt modulify. I was wondering about another path that may streamline the process even more, if the grunt dev-server can automatically "transpile" the file inline during serving. This could give the same benefits we get from the inline transpiler (do not need to remember to run the task, do not need a watch process, etc).
Some cases and caveats:
- phettest does not run on grunt dev-server (yet). If it did, designers could push yaml changes and see the effect right away
- We still need the Fluent and JSON artifacts for build publications. So we could add that step during
grunt build - If
grunt buildautomatically modulifies, then maybe phettest "build" could be used for designers contributing/testing yaml files. - It would be great if rosetta could use the yaml files directly too, instead of needing the json
I originally skipped this since it took 0.5s to run grunt modulify. But I see that running grunt modulify in an already running node, only costs about 18ms, so it is likely fine to inline.