[Pkg-javascript-commits] [node-rx] 01/01: simplify grunt dependencies

Paolo Greppi paolog-guest at moszumanska.debian.org
Mon Dec 19 18:40:00 UTC 2016


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

paolog-guest pushed a commit to branch master
in repository node-rx.

commit 735582dc4729723b22c25fe8c5266e2788f741c1
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Mon Dec 19 18:23:25 2016 +0000

    simplify grunt dependencies
---
 debian/control                            |  6 ----
 debian/patches/00-load-grunt-tasks.diff   |  8 +-----
 debian/patches/01-simplify-gruntfile.diff | 46 +++++++++++++++++++++++++++++++
 debian/patches/series                     |  1 +
 4 files changed, 48 insertions(+), 13 deletions(-)

diff --git a/debian/control b/debian/control
index 3cc1626..136305c 100644
--- a/debian/control
+++ b/debian/control
@@ -9,14 +9,8 @@ Build-Depends:
  , node-grunt-cli
  , grunt
  , node-grunt-contrib-copy
- , node-grunt-contrib-jshint
- , node-grunt-contrib-connect
  , node-grunt-contrib-uglify
  , node-grunt-contrib-concat
- , node-grunt-contrib-qunit
- , node-grunt-contrib-watch
- , node-grunt-saucelabs
- , node-grunt-jscs
  , nodejs
 Standards-Version: 3.9.8
 Homepage: https://github.com/Reactive-Extensions/RxJS
diff --git a/debian/patches/00-load-grunt-tasks.diff b/debian/patches/00-load-grunt-tasks.diff
index dc5d887..e9a24b6 100644
--- a/debian/patches/00-load-grunt-tasks.diff
+++ b/debian/patches/00-load-grunt-tasks.diff
@@ -7,20 +7,14 @@ Index: node-rx/Gruntfile.js
 ===================================================================
 --- node-rx.orig/Gruntfile.js
 +++ node-rx/Gruntfile.js
-@@ -2469,7 +2469,15 @@ module.exports = function (grunt) {
+@@ -2469,7 +2469,9 @@ module.exports = function (grunt) {
    });
  
    // Load all "grunt-*" tasks
 -  require('load-grunt-tasks')(grunt);
 +  grunt.loadNpmTasks('grunt-contrib-copy');
-+  grunt.loadNpmTasks('grunt-contrib-jshint');
-+  grunt.loadNpmTasks('grunt-contrib-connect');
 +  grunt.loadNpmTasks('grunt-contrib-uglify');
 +  grunt.loadNpmTasks('grunt-contrib-concat');
-+  grunt.loadNpmTasks('grunt-contrib-qunit');
-+  grunt.loadNpmTasks('grunt-contrib-watch');
-+  grunt.loadNpmTasks('grunt-saucelabs');
-+  grunt.loadNpmTasks('grunt-jscs');
  
    function createNuGetPackage(nuspec) {
      var done = this.async();
diff --git a/debian/patches/01-simplify-gruntfile.diff b/debian/patches/01-simplify-gruntfile.diff
new file mode 100644
index 0000000..438f8bc
--- /dev/null
+++ b/debian/patches/01-simplify-gruntfile.diff
@@ -0,0 +1,46 @@
+Description: Get rid of qunit, jscs, jshint and watch grunt stuff.
+Forwarded: not-needed
+Author: Paolo Greppi <paolo.greppi at libpf.com>
+
+Index: node-rx/Gruntfile.js
+===================================================================
+--- node-rx.orig/Gruntfile.js
++++ node-rx/Gruntfile.js
+@@ -2364,29 +2364,6 @@ module.exports = function (grunt) {
+           files: {'dist/rx.sorting.min.js': ['dist/rx.sorting.js'] }
+         }
+       },
+-      qunit: {
+-          all: ['tests/*.html']
+-      },
+-      jshint: {
+-        all: [
+-          'rx.all.js'
+-        ]
+-      },
+-      jscs: {
+-        src: 'src/**/*.js',
+-        options: {
+-          config: '.jscsrc'
+-        }
+-      },
+-      watch: {
+-        scripts: {
+-          files: 'src/**/*.js',
+-          tasks: ['default'],
+-          options: {
+-            interrupt: true
+-          }
+-        }
+-      },
+       copy: {
+         'lite': {
+           flatten: true,
+@@ -2940,7 +2917,6 @@ module.exports = function (grunt) {
+     'copy:core-binding',
+     'copy:core-testing',
+ 
+-    'qunit',
+ 	'rebuild-ts'
+   ]);
+ };
diff --git a/debian/patches/series b/debian/patches/series
index 61833c9..197cc85 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 00-load-grunt-tasks.diff
+01-simplify-gruntfile.diff

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



More information about the Pkg-javascript-commits mailing list