[Pkg-nagios-changes] [pkg-icingaweb2] 01/01: Take care about minification of vendor javascripts
Markus Frosch
lazyfrosch at moszumanska.debian.org
Tue Mar 10 17:31:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
lazyfrosch pushed a commit to branch master
in repository pkg-icingaweb2.
commit d8df5dfdc2c4ba84d23210ffbcbc282b5842d28d
Author: Markus Frosch <markus at lazyfrosch.de>
Date: Tue Mar 10 18:31:22 2015 +0100
Take care about minification of vendor javascripts
---
debian/.gitignore | 1 +
debian/control | 5 ++++-
debian/icingaweb2.install | 6 +++---
debian/rules | 17 +++++++++++++++++
4 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/debian/.gitignore b/debian/.gitignore
index 2044abb..cf9c8ca 100644
--- a/debian/.gitignore
+++ b/debian/.gitignore
@@ -9,3 +9,4 @@ icingaweb2-module-setup/
icingaweb2/
php-icinga/
.*.sw[op]
+minify/
diff --git a/debian/control b/debian/control
index 1b193ed..f52f48e 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,10 @@ Priority: extra
Maintainer: Icinga Development Team <info at icinga.org>
Uploaders:
Markus Frosch <lazyfrosch at debian.org>
-Build-Depends: debhelper (>=9)
+Build-Depends:
+ debhelper (>= 9),
+ python,
+ python-jsmin
Standards-Version: 3.9.6
Homepage: https://www.icinga.org
Vcs-Browser: http://anonscm.debian.org/cgit/pkg-nagios/pkg-icingaweb2.git
diff --git a/debian/icingaweb2.install b/debian/icingaweb2.install
index 468feae..8b6478c 100644
--- a/debian/icingaweb2.install
+++ b/debian/icingaweb2.install
@@ -13,6 +13,6 @@ packages/files/public/index.php usr/share/icingaweb2/public
debian/icingaweb2.conf etc/apache2/conf-available
# TODO: vendor libraries - should be moved to a proper package
-library/vendor/JShrink/*.php usr/share/icingaweb2/library/vendor/JShrink
-library/vendor/Parsedown/*.php usr/share/icingaweb2/library/vendor/Parsedown
-library/vendor/lessphp/*.php usr/share/icingaweb2/library/vendor/lessphp
+library/vendor/JShrink/*.php usr/share/icingaweb2/library/vendor/JShrink
+library/vendor/Parsedown/*.php usr/share/icingaweb2/library/vendor/Parsedown
+library/vendor/lessphp/*.php usr/share/icingaweb2/library/vendor/lessphp
diff --git a/debian/rules b/debian/rules
index 51d788b..b9795b9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,24 @@
%:
dh $@
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf debian/minify
+
override_dh_install:
dh_install -X.min.js -X.min.map -XSOURCE
+ cp -r debian/minify/*.min.js debian/icingaweb2/usr/share/icingaweb2/public/js/vendor/
+
+override_dh_auto_build:
+ dh_auto_build
+ mkdir debian/minify
+ python -m jsmin public/js/vendor/jquery-1.11.0.js \
+ > debian/minify/jquery-1.11.0.min.js
+ python -m jsmin public/js/vendor/jquery-2.1.0.js \
+ > debian/minify/jquery-2.1.0.min.js
+ python -m jsmin public/js/vendor/jquery.sparkline.js \
+ > debian/minify/jquery.sparkline.min.js
+ python -m jsmin public/js/vendor/jquery.tipsy.js \
+ > debian/minify/jquery.tipsy.min.js
# vi: ts=4 sw=4 noexpandtab :
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-icingaweb2.git
More information about the Pkg-nagios-changes
mailing list