[Pkg-javascript-commits] [node-jquery-textcomplete] 01/07: build using grunt and move to main
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Wed Nov 23 08:58:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository node-jquery-textcomplete.
commit d205158643121c754b2e2f6cb55bf4464d1ee106
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Wed Nov 23 13:34:51 2016 +0530
build using grunt and move to main
---
debian/changelog | 6 ++++++
debian/control | 5 ++++-
debian/patches/disable-optional-tasks.patch | 26 ++++++++++++++++++++++++++
debian/patches/series | 2 ++
debian/patches/use-global-tasks.patch | 13 +++++++++++++
debian/rules | 5 ++++-
6 files changed, 55 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 560d9f7..22aa6be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-jquery-textcomplete (1.7.3-2) UNRELEASED; urgency=medium
+
+ * Build using grunt and move to main
+
+ -- Pirate Praveen <praveen at debian.org> Wed, 23 Nov 2016 13:32:09 +0530
+
node-jquery-textcomplete (1.7.3-1) unstable; urgency=low
* Initial release (Closes: #836406)
diff --git a/debian/control b/debian/control
index b387304..1775429 100644
--- a/debian/control
+++ b/debian/control
@@ -1,5 +1,5 @@
Source: node-jquery-textcomplete
-Section: contrib/web
+Section: web
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
Uploaders: Pirate Praveen <praveen at debian.org>
@@ -8,6 +8,9 @@ Build-Depends:
, dh-buildinfo
, nodejs
, node-jquery
+ , grunt
+ , node-grunt-contrib-concat
+ , node-uglify
Standards-Version: 3.9.8
Homepage: http://yuku-t.com/jquery-textcomplete
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-jquery-textcomplete.git
diff --git a/debian/patches/disable-optional-tasks.patch b/debian/patches/disable-optional-tasks.patch
new file mode 100644
index 0000000..cc9a594
--- /dev/null
+++ b/debian/patches/disable-optional-tasks.patch
@@ -0,0 +1,26 @@
+Index: node-jquery-textcomplete/Gruntfile.js
+===================================================================
+--- node-jquery-textcomplete.orig/Gruntfile.js
++++ node-jquery-textcomplete/Gruntfile.js
+@@ -5,9 +5,9 @@ module.exports = function (grunt) {
+ 'use strict';
+
+ grunt.loadNpmTasks('grunt-contrib-concat');
+- grunt.loadNpmTasks('grunt-contrib-connect');
+- grunt.loadNpmTasks('grunt-contrib-uglify');
+- grunt.loadNpmTasks('grunt-contrib-watch');
++// grunt.loadNpmTasks('grunt-contrib-connect');
++// grunt.loadNpmTasks('grunt-contrib-uglify');
++// grunt.loadNpmTasks('grunt-contrib-watch');
+
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+@@ -65,6 +65,6 @@ module.exports = function (grunt) {
+ }
+ });
+
+- grunt.registerTask('default', ['connect', 'watch']);
+- grunt.registerTask('build', ['concat', 'uglify']);
++// grunt.registerTask('default', ['connect', 'watch']);
++ grunt.registerTask('build', ['concat']);
+ };
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c64e788
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+disable-optional-tasks.patch
+use-global-tasks.patch
diff --git a/debian/patches/use-global-tasks.patch b/debian/patches/use-global-tasks.patch
new file mode 100644
index 0000000..33bb735
--- /dev/null
+++ b/debian/patches/use-global-tasks.patch
@@ -0,0 +1,13 @@
+Index: node-jquery-textcomplete/Gruntfile.js
+===================================================================
+--- node-jquery-textcomplete.orig/Gruntfile.js
++++ node-jquery-textcomplete/Gruntfile.js
+@@ -4,7 +4,7 @@ module.exports = function (grunt) {
+
+ 'use strict';
+
+- grunt.loadNpmTasks('grunt-contrib-concat');
++ grunt.loadNpmTasks('grunt-contrib-concat','/usr/lib/nodejs');
+ // grunt.loadNpmTasks('grunt-contrib-connect');
+ // grunt.loadNpmTasks('grunt-contrib-uglify');
+ // grunt.loadNpmTasks('grunt-contrib-watch');
diff --git a/debian/rules b/debian/rules
index de57af0..1694fb6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,10 @@
%:
dh $@
-#override_dh_auto_build:
+override_dh_auto_build:
+ dh_auto_build
+ grunt build
+ uglifyjs -o dist/jquery.textcomplete.min.js dist/jquery.textcomplete.js
#override_dh_auto_test:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jquery-textcomplete.git
More information about the Pkg-javascript-commits
mailing list