On 24 Mar 2015 at 11:22:52, Nicolas Delsaux 
([email protected](mailto:[email protected])) wrote:

> Thanks for all your replies, Vincent and Thomas.
> I'm quite ... worried by the fact to directly put my webjars
> dependencies in WEB-INF/lib, directly or through "Advanced Search", as
> it would prevent me to have explicit link between the JS lib and the
> place where it is used.
> What I fear is the WEB-INF/lib folder becoming kind of messy, with all
> JS dependencies dropped there without proper usage identification, and a
> zealous sysadmin coming there and purging the folder aggresively.
> Have you got any kind of best practices to avoid that ?

If you’re doing dev and writing an extension for your code then all you need is 
add a dependency to the webjar in your extension’s POM and then install it 
through the Extension Manager and it won’t go in WEB-INF/lib :)

Thanks
-Vincent

> Le 24/03/2015 11:16, [email protected] a écrit :
> > On 24 Mar 2015 at 11:12:54, [email protected] 
> > ([email protected](mailto:[email protected])) wrote:
> >
> >> Hi Nicolas,
> >>
> >>
> >> On 23 Mar 2015 at 16:33:55, Nicolas Delsaux 
> >> ([email protected](mailto:[email protected])) wrote:
> >>
> >>> I would like to create a Javascript application in XWiki.
> >>> My precise goal is to go get some content from Jenkins (build status)
> >>> and render it over a static image using d3.js or any other rich
> >>> rendering framework.
> >>> I suppose the only way to implement that is to write my webpage as HTML.
> >>> But, then, how will I use external frameworks ? (typically d3.js)
> >>
> >> Regarding D3js you have an example here:
> >> http://extensions.xwiki.org/xwiki/bin/view/Extension/D3+Example
> >>
> >> And there’s even a macro here (not tried it myself):
> >> http://extensions.xwiki.org/xwiki/bin/view/Extension/d3js
> > Just a note: these examples were written prior to us having the webjar 
> > integration support. So with webjars, it’s even easier and you don’t need 
> > to include d3js in an XWiki Object anymore. You can just put the webjar in 
> > WEB-INF/lib and it’ll be usable.
> >
> > See http://extensions.xwiki.org/xwiki/bin/view/Extension/WebJars+Integration
> >
> > Thanks
> > -Vincent
> >
> >> Hope it helps
> >> -Vincent
> >>
> >>> Thanks
> >>>
> >>> --
> >>> Nicolas Delsaux
> > _______________________________________________
> > users mailing list
> > [email protected]
> > http://lists.xwiki.org/mailman/listinfo/users
>  
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to