[Pkg-javascript-commits] [less.js] 32/38: Allow the browser tests to be run without compression for easier debugging

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:27:29 UTC 2015


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

js pushed a commit to annotated tag v2.2.0
in repository less.js.

commit fd0beface83b757791f0c079d735825712f33906
Author: Luke Page <luke.a.page at gmail.com>
Date:   Sun Jan 4 08:10:23 2015 +0000

    Allow the browser tests to be run without compression for easier debugging
---
 Gruntfile.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Gruntfile.js b/Gruntfile.js
index e13073d..e304c0c 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -5,6 +5,8 @@ module.exports = function (grunt) {
 
     // Report the elapsed execution time of tasks.
     require('time-grunt')(grunt);
+	
+	var COMPRESS_FOR_TESTS = true;
 
     // Project configuration.
     grunt.initConfig({
@@ -63,7 +65,7 @@ module.exports = function (grunt) {
                 banner: '<%= meta.banner %>'
             },
             browsertest: {
-                src: '<%= uglify.test.dest %>',
+                src: COMPRESS_FOR_TESTS ? '<%= uglify.test.dest %>' : '<%= browserify.browser.dest %>',
                 dest: 'test/browser/less.js'
             },
             dist: {
@@ -103,7 +105,7 @@ module.exports = function (grunt) {
                 dest: 'dist/less.min.js'
             },
 	        test: {
-		        src: 'tmp/less.js',
+		        src: '<%= browserify.browser.dest %>',
 		        dest: 'tmp/less.min.js'
 	        }
         },

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



More information about the Pkg-javascript-commits mailing list