Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed debig logging

  • Loading branch information...
commit b506e76324a1072ea685c4bb392e94acd5a08520 1 parent 4c0373c
Omry Nachman authored
Showing with 3 additions and 15 deletions.
  1. +1 −2  Gruntfile.js
  2. +2 −2 package.json
  3. +0 −11 tasks/Aggregation.js
3  Gruntfile.js
View
@@ -197,8 +197,7 @@ module.exports = function (grunt) {
greatescape: {
all: 'target/aggregations/greatescape/escaped.js'
}
- })
- ;
+ });
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
4 package.json
View
@@ -1,9 +1,9 @@
{
"name": "grunt-aggregator",
"description": "Plugins for Wix.com js build",
- "version": "0.3.1",
+ "version": "0.3.2",
"author": "Omry Nachman <omry@wix.com>",
- "main": "commons/grunt-aggregator.js",
+ "main": "Gruntfile.js",
"engines": {
"node": ">= 0.8.6"
},
11 tasks/Aggregation.js
View
@@ -59,8 +59,6 @@ module.exports = function (grunt) {
}
function setMin(min, aggregation, aggregationFiles, manifest, debugManifest) {
- console.log('set');
-
var files = aggregationFiles.filter(js);
var dest = utils.unixpath(aggregation.dest + ".min.js", aggregation.targetDir);
var debugEntry = createManifestEntry(aggregation);
@@ -101,8 +99,6 @@ module.exports = function (grunt) {
}
function setManyMin(min, aggregation, aggregationFiles, manifest, debugManifest) {
- console.log('set');
-
var files = aggregationFiles.filter(js);
if (aggregation.manymin && files.length) {
var sources = utils.cleanArray(files, aggregation.sourceDir + "/" + aggregation.package);
@@ -128,8 +124,6 @@ module.exports = function (grunt) {
}
function setCssMin(cssMin, aggregation, aggregationFiles, manifest, debugManifest) {
- console.log('set');
-
var files = aggregationFiles.filter(css);
if (aggregation.cssmin && files.length) {
var src = utils.cleanArray(files, aggregation.sourceDir + "/" + aggregation.package);
@@ -159,7 +153,6 @@ module.exports = function (grunt) {
}
function setCopy(copy, aggregation, aggregationFiles, manifest, debugManifest) {
- console.log('set');
if (aggregation.copy) {
var _id = aggregation.targetDir + '/' + aggregation.package + '#' + aggregation.id;
copy[_id] = {files: {}};
@@ -173,8 +166,6 @@ module.exports = function (grunt) {
}
function setList(aggregation, aggregationFiles, manifest, debugManifest) {
- console.log('set');
-
if (!aggregation.copy && !aggregation.min && !aggregation.manymin && !aggregation.excludeFromManifest) {
var entry = createManifestEntry(aggregation);
@@ -249,8 +240,6 @@ module.exports = function (grunt) {
}
function setFollowingTasks(aggregation, aggregationFiles, copy, min, cssmin, manifest, debugManifest) {
- console.log('setting following tasks');
-
setCopy(copy, aggregation, aggregationFiles, manifest, debugManifest);
setMin(min, aggregation, aggregationFiles, manifest, debugManifest);
setManyMin(min, aggregation, aggregationFiles, manifest, debugManifest);
Please sign in to comment.
Something went wrong with that request. Please try again.