From b27fba7bbccee0356b09c094b43c5fde084d2b7b Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 13 Feb 2012 08:57:39 +0000 Subject: [PATCH] start working on css/js minification: will need 2 index one for dev with debug js and an other one for live with minify/packed files git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1243438 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-web/archiva-webapp-js/pom.xml | 72 ++++++++++++ .../src/main/webapp/index-dev.html | 105 ++++++++++++++++++ 2 files changed, 177 insertions(+) create mode 100644 archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index-dev.html diff --git a/archiva-modules/archiva-web/archiva-webapp-js/pom.xml b/archiva-modules/archiva-web/archiva-webapp-js/pom.xml index 83f044cc5..eedb2d0c8 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp-js/pom.xml @@ -543,6 +543,78 @@ + + com.samaxes.maven + maven-minify-plugin + 1.3.5 + + + startup-minify + generate-resources + + ${basedir}/src/main/webapp + css + + jquery-ui-1.8.16.custom.css + jquery.ui.1.8.16.ie.css + bootstrap.css + archiva.css + + apache-archiva-${project.version}.css + js + + jquery-1.7.1.js + lab.js + require.1.0.1.js + + apache-archiva-startup-${project.version}.js + + + minify + + + + main-minify + generate-resources + + ${basedir}/src/main/webapp + js + + jquery.tmpl.js + archiva/utils.js + jquery.i18n.properties-1.0.9.js + archiva/i18nload.js + jquery.cookie.1.0.0.js + knockout-debug.js + jquery-ui-1.8.16.custom.min.js + jquery.validate.js + jquery.json-2.3.min.js + archiva/main-tmpl.js + archiva/repositories.js + archiva/network-proxies.js + archiva/proxy-connectors.js + redback/operation.js + redback/redback-tmpl.js + bootstrap.js + knockout.simpleGrid.js + redback/user.js + redback/users.js + redback/redback.js + redback/register.js + redback/permission.js + redback/resource.js + redback/roles.js + archiva/main.js + + apache-archiva-main-${project.version}.js + + + minify + + + + + org.apache.tomcat.maven tomcat6-maven-plugin diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index-dev.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index-dev.html new file mode 100644 index 000000000..e3766a62e --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index-dev.html @@ -0,0 +1,105 @@ + + + + + + + + + + + + + Apache Archiva + + + + + +
+ +
+
+
+ +
+
+
+
+
+
+
+
+ +
+ +
+
+ +
+ + + + + + + + + + -- 2.39.5