Skip to content

Can string modulify be provided by the dev-server? #1627

@samreid

Description

@samreid

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 build automatically 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions