RE: Contribute requirejs.config.paths to ModuleManager

2017-11-28 Thread Svein-Erik Løken
via Apache Tapestry Mailing List Archives] [mailto:ml+s1045711n5733731...@n5.nabble.com] Sent: tirsdag 28. november 2017 08:34 To: Svein-Erik Løken <sv...@jacilla.no> Subject: Re: Contribute requirejs.config.paths to ModuleManager Hi, It has been a while since I last fought the modu

Re: Contribute requirejs.config.paths to ModuleManager

2017-11-27 Thread Chris Poulsen
gt; Loaded module bootstrap/collapse > GET http://localhost:9876/modules.gz/react.js 404 (No module for path > 'react.js'.) > > Very strange that the virtual link does not work! > > S-E > > > From: Thiago H de Paula Figueiredo [via Apache Tapestry Mailing List > Archive

RE: Contribute requirejs.config.paths to ModuleManager

2017-11-27 Thread Svein-Erik Løken
e virtual link does not work! S-E From: Thiago H de Paula Figueiredo [via Apache Tapestry Mailing List Archives] [mailto:ml+s1045711n5733729...@n5.nabble.com] Sent: mandag 27. november 2017 13:32 To: Svein-Erik Løken <sv...@jacilla.no> Subject: Re: Contribute requirejs.config.paths to Mod

Re: Contribute requirejs.config.paths to ModuleManager

2017-11-27 Thread Thiago H. de Paula Figueiredo
On Sun, Nov 26, 2017 at 10:40 AM, Svein-Erik Løken wrote: > Source code: > > @Contribute(JavaScriptStackSource.class) > public static void addMyStack(MappedConfiguration JavaScriptStack> configuration) { > configuration.addInstance("react", ReactStack.class); > }

RE: Contribute requirejs.config.paths to ModuleManager

2017-11-26 Thread Svein-Erik Løken
t.add("react"); return ret; } From: Thiago H de Paula Figueiredo [via Apache Tapestry Mailing List Archives] [mailto:ml+s1045711n5733724...@n5.nabble.com] Sent: fredag 24. november 2017 22:03 To: Svein-Erik Løken <sv...@jacilla.no> Subject: Re: Contribute requirejs.c

Re: Contribute requirejs.config.paths to ModuleManager

2017-11-24 Thread Thiago H. de Paula Figueiredo
be could be modified to also accept paths. > To support modern JS frameworks I think setting requirejs.config.paths in a > nice way globally should be implemented. > > S-E > > From: Thiago H de Paula Figueiredo [via Apache Tapestry Mailing List > Archives] [mailto:ml+s1045711n573

RE: Contribute requirejs.config.paths to ModuleManager

2017-11-24 Thread Svein-Erik Løken
)); } return configuration; }); } I am now calling this in my global mailto:ml+s1045711n5733722...@n5.nabble.com] Sent: fredag 24. november 2017 17.02 To: Svein-Erik Løken <sv...@jacilla.no> Subject: Re: Contribute requirejs.config.paths to ModuleManager On Fri, Nov 2

Re: Contribute requirejs.config.paths to ModuleManager

2017-11-24 Thread Thiago H. de Paula Figueiredo
On Fri, Nov 24, 2017 at 11:13 AM, Svein-Erik Løken wrote: Hello! Trying to use TypeScript and React with Tapestry: > > In TypeScript I need to use: import * as React from "react"; > > I would like to load react: react.min, so I have to set paths: {...} > > The configuration

Contribute requirejs.config.paths to ModuleManager

2017-11-24 Thread Svein-Erik Løken
Trying to use TypeScript and React with Tapestry: In TypeScript I need to use: import * as React from "react"; I would like to load react: react.min, so I have to set paths: {...} The configuration should be set at startup, but I cannot figure how to do it. I can set requirejs.config.shim,