CC dev-gaia back :-)
my first problem is I have no idea how to use commonjs in xpcshell.
try r.js for AMD is okay, for commonjs I think it will work if I
import 'resource://gre/modules/commonjs/toolkit/loader.js' but seems
not.
still studying for xpcshell.
- Yuren
On Mon, Aug 12, 2013 at 4:57 PM, Alexandre poirot <
poiro...@gmail.com> wrote:
> I can most likely help you find your way on the xpcshell/firefox-addon side.
>
> I'm first thinking about the commonjs module loader being shipped in Firefox
> via the add on SDK.
> That would allow us to first convert our existing is codebase from "a soup
> of js files" to a set of well defined commonjs modules.
>
> Then also thanks to the addon SDK, we can replace nsIFile usages by path and
> fs modules from the add on SDK. These modules are meant to expose same API
> than node one!
>
> Otherwise we should operate incrementally and avoid reimplementing build
> system from scratch in node. As we should be able to easily refactor our
> xpcshell codebase to a set of commonjs modules depending on node-compatible
> dependencies.
>
> Also, that would be handy to use a whiteboard flag.
>
> Thanks Yuren for driving this forward!!
>> _______________________________________________
>> dev-gaia mailing list
>>
dev-...@lists.mozilla.org
>>
https://lists.mozilla.org/listinfo/dev-gaia