Sorry for taking another day to get to you on this.
Mimosa's workflows are like a car assembly line.
https://github.com/dbashford/mimosa/blob/master/src/util/workflow.coffee#L19-L30For
each workflow, modules line up to perform a task for a certain step.
The object in the code I linked above is keyed by workflow name with the arrays being the steps.
The steps are executed in order, with Mimosa passing information (like a file that is being processed) from
step to step. Each module can modify or transform data when it is
called such that downstream modules see the modified data.
https://github.com/CraigCav/mimosa-traceur/blob/master/src/index.js#L75traceur runs "afterCompile".
https://github.com/dbashford/mimosa-react/blob/master/src/index.js#L28react is a javascript compiler, which gets special treatment from mimosa. It runs during the "compile" step. Don't have to understand how mimosa lines up modules to know that afterCompile is after compile. ;)
So what should be happening is..
1. in the compile step, mimosa-react transforms options.files[].inputFileText to options.files[].outputFileText.
2. in the afterCompile step mimosa-traceur transforms options.files[].
outputFileText to a new options.files[].
outputFileText. Essentially rewriting it.
This would meant hat react would need to be able to handle es6 syntax. By the time react has compiled it, the code is valid, so the traceur compiler should be able to handle it ok.
https://github.com/dbashford/mimosa-jshint/blob/master/src/index.js#L121jshint also runs "afterCompile". When two modules register for the same step, the order in the modules array wins. So, if you have traceur running BEFORE jshint, jshint would be running on the compiled JS code and you likely would not need the esnext flag. If you have traceur running AFTER jshint, then jshint would need to understand esnext.
IMPORTANT!
I noticed this just before hitting POST on the message. Bug in traceur code:
https://github.com/CraigCav/mimosa-traceur/issues/5 If you make the
change I suggest in that issue, this MAY work out.