[Pkg-javascript-commits] [select2.js] 02/11: build using grunt

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Thu Dec 14 15:07:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository select2.js.

commit 2a6c723c7a0b95246e9cafcefbd2cec7e9fdd59d
Author: Pirate Praveen <praveen at debian.org>
Date:   Thu Dec 14 18:06:51 2017 +0530

    build using grunt
---
 debian/control                        | 11 ++++++++++-
 debian/patches/series                 |  1 +
 debian/patches/use-system-tasks.patch | 30 ++++++++++++++++++++++++++++++
 debian/rules                          |  4 ++--
 4 files changed, 43 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 03fc2d4..c31e0eb 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,16 @@ Section: javascript
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Alexandre Viau <aviau at debian.org>
-Build-Depends: debhelper (>= 9), uglifyjs
+Build-Depends:
+ debhelper (>= 9)
+ , uglifyjs
+ , grunt
+ , node-grunt-contrib-clean
+ , node-grunt-contrib-concat
+ , node-grunt-contrib-uglify
+ , node-grunt-contrib-requirejs
+ , node-almond
+ , node-jquery-mousewheel
 Standards-Version: 4.1.2
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/select2.js.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/select2.js.git
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d2e01cd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use-system-tasks.patch
diff --git a/debian/patches/use-system-tasks.patch b/debian/patches/use-system-tasks.patch
new file mode 100644
index 0000000..28b278b
--- /dev/null
+++ b/debian/patches/use-system-tasks.patch
@@ -0,0 +1,30 @@
+--- a/Gruntfile.js
++++ b/Gruntfile.js
+@@ -324,22 +324,12 @@
+     }
+   });
+ 
+-  grunt.loadNpmTasks('grunt-contrib-clean');
+-  grunt.loadNpmTasks('grunt-contrib-concat');
+-  grunt.loadNpmTasks('grunt-contrib-connect');
+-  grunt.loadNpmTasks('grunt-contrib-jshint');
+-  grunt.loadNpmTasks('grunt-contrib-qunit');
+-  grunt.loadNpmTasks('grunt-contrib-requirejs');
+-  grunt.loadNpmTasks('grunt-contrib-symlink');
+-  grunt.loadNpmTasks('grunt-contrib-uglify');
+-  grunt.loadNpmTasks('grunt-contrib-watch');
++  grunt.loadNpmTasks('grunt-contrib-clean','/usr/lib/nodejs');
++  grunt.loadNpmTasks('grunt-contrib-concat','/usr/lib/nodejs');
++  grunt.loadNpmTasks('grunt-contrib-requirejs','/usr/lib/nodejs');
++  grunt.loadNpmTasks('grunt-contrib-uglify','/usr/lib/nodejs');
+ 
+-  grunt.loadNpmTasks('grunt-gh-pages');
+-  grunt.loadNpmTasks('grunt-jekyll');
+-  grunt.loadNpmTasks('grunt-saucelabs');
+-  grunt.loadNpmTasks('grunt-sass');
+-
+-  grunt.registerTask('default', ['compile', 'test', 'minify']);
++  grunt.registerTask('default', ['compile', 'minify']);
+ 
+   grunt.registerTask('compile', [
+     'requirejs:dist', 'requirejs:dist.full', 'requirejs:i18n',
diff --git a/debian/rules b/debian/rules
index 2514bd0..1f04ab5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,8 @@
 	dh $@
 
 override_dh_auto_build:
-	uglifyjs -o dist/js/select2.min.js dist/js/select2.js
+	grunt --force
 
 override_dh_auto_clean:
 	dh_clean
-	rm -f dist/js/select2.min.js
+	rm -f dist/js

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/select2.js.git



More information about the Pkg-javascript-commits mailing list