From jira-events at lists.jboss.org Thu Aug 1 10:31:26 2013 Content-Type: multipart/mixed; boundary="===============4139505663648366458==" MIME-Version: 1.0 From: Antonio Goncalves (JIRA) To: forge-issues at lists.jboss.org Subject: [forge-issues] [JBoss JIRA] (FORGE-1067) Adopt WebJars as encapsulation for Bootstrap and JQuery resources Date: Thu, 01 Aug 2013 10:31:26 -0400 Message-ID: In-Reply-To: JIRA.12497775.1375367421314@jira02.app.mwc.hst.phx2.redhat.com --===============4139505663648366458== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Antonio Goncalves created FORGE-1067: ---------------------------------------- Summary: Adopt WebJars as encapsulation for Bootstrap and JQue= ry resources Key: FORGE-1067 URL: https://issues.jboss.org/browse/FORGE-1067 Project: Forge Issue Type: Enhancement Components: Scaffold Affects Versions: 1.3.3.Final Reporter: Antonio Goncalves At the moment JBoss Forge copies the {{bootstrap.css}} into the resources d= irectory. It would be nice to use WebJar [1] to package Bootstrap (and JQue= ry) into the war file. = For this to happen you just need to add the following Maven dependencies to= the {{pom.xml}} : {code} org.webjars bootstrap 2.3.2 org.webjars jquery 2.0.3 {code} Then, change the {{pageTemplate.xhtml}} so it looks like this : = {code} #{empty pageTitle ? '{#pageTitle}' : pageTitle} ... ... ... {code} And of course, get rid of the {{bootstrap.css}} file ;o) [1] http://www.webjars.org/ [1] http://www.jamesward.com/2012/10/31/webjars-officially-launched See also : https://issues.jboss.org/browse/RF-12584 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --===============4139505663648366458==--