File: fix-Gruntfile-for-Debian.patch

package info (click to toggle)
jquery-tablesorter 1%3A2.31.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,024 kB
  • sloc: sh: 14; makefile: 8
file content (51 lines) | stat: -rw-r--r-- 1,985 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Description: The Debian location of the Grunt modules isn't found automatically
 yet. So we need to help Grunt.
 .
 Actually, as of Grunt 1.0.1-7, this is possible, but while Grunt isn't
 backported to stretch, let's keep the patch.
 .
 Also not all modules are packaged yet, so disable cssmin for now.
Author: Paul Gevers <elbrus@debian.org>
Forwarded: not-needed
Index: jquery-tablesorter/Gruntfile.js
===================================================================
--- jquery-tablesorter.orig/Gruntfile.js
+++ jquery-tablesorter/Gruntfile.js
@@ -373,16 +373,16 @@ module.exports = function( grunt ) {
 
 	});
 
-	grunt.loadNpmTasks( 'grunt-contrib-clean' );
-	grunt.loadNpmTasks( 'grunt-contrib-jshint' );
-	grunt.loadNpmTasks( 'grunt-htmlhint' );
-	grunt.loadNpmTasks( 'grunt-contrib-qunit' );
-	grunt.loadNpmTasks( 'grunt-contrib-concat' );
-	grunt.loadNpmTasks( 'grunt-contrib-uglify' );
-	grunt.loadNpmTasks( 'grunt-contrib-copy' );
-	grunt.loadNpmTasks( 'grunt-contrib-watch' );
-	grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
-	grunt.loadNpmTasks( 'grunt-jscs' );
+	grunt.loadNpmTasks( 'grunt-contrib-clean', '/usr/lib/nodejs' );
+	grunt.loadNpmTasks( 'grunt-contrib-jshint', '/usr/lib/nodejs' );
+	grunt.loadNpmTasks( 'grunt-htmlhint', '/usr/lib/nodejs' );
+	grunt.loadNpmTasks( 'grunt-contrib-qunit', '/usr/lib/nodejs' );
+	grunt.loadNpmTasks( 'grunt-contrib-concat','/usr/lib/nodejs' );
+	grunt.loadNpmTasks( 'grunt-contrib-uglify','/usr/lib/nodejs' );
+	grunt.loadNpmTasks( 'grunt-contrib-copy','/usr/lib/nodejs' );
+	grunt.loadNpmTasks( 'grunt-contrib-watch', '/usr/lib/nodejs' );
+	grunt.loadNpmTasks( 'grunt-contrib-cssmin', '/usr/lib/nodejs' );
+	grunt.loadNpmTasks( 'grunt-jscs', '/usr/lib/nodejs' );
 
 	grunt.registerTask( 'test', [ 'jscs', 'jshint', 'htmlhint', 'qunit' ] );
 
@@ -391,8 +391,8 @@ module.exports = function( grunt ) {
 		'copy',
 		'concat',
 		'uglify',
-		'cssmin',
-		'clean:css',
+//		'cssmin',
+//		'clean:css',
 		'updateManifest'
 	];