grunt-contrib-coffee
Advanced tools
Comparing version 0.10.1 to 0.11.0
{ | ||
"name": "grunt-contrib-coffee", | ||
"description": "Compile CoffeeScript files to JavaScript.", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"homepage": "https://github.com/gruntjs/grunt-contrib-coffee", | ||
@@ -31,8 +31,8 @@ "author": { | ||
"coffee-script": "~1.7.0", | ||
"chalk": "~0.4.0", | ||
"chalk": "~0.5.0", | ||
"lodash": "~2.4.1" | ||
}, | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.6.4", | ||
"grunt-contrib-nodeunit": "~0.2.1", | ||
"grunt-contrib-jshint": "~0.10.0", | ||
"grunt-contrib-nodeunit": "~0.4.1", | ||
"grunt-contrib-clean": "~0.5.0", | ||
@@ -39,0 +39,0 @@ "grunt-contrib-internal": "~0.4.6", |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-coffee v0.10.1 [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-coffee.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-coffee) | ||
# grunt-contrib-coffee v0.11.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-coffee.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-coffee) | ||
@@ -115,3 +115,3 @@ > Compile CoffeeScript files to JavaScript. | ||
} | ||
} | ||
}, | ||
@@ -125,3 +125,3 @@ glob_to_multiple: { | ||
ext: '.js' | ||
}, | ||
} | ||
@@ -136,2 +136,3 @@ } | ||
* 2014-08-06 v0.11.0 Adds summary containing number of files created. Move file creation logging to grunt.verbose. Updates Chalk to 0.5. | ||
* 2014-02-07 v0.10.0 SourceMappingURL calculated correctly | ||
@@ -165,2 +166,2 @@ * 2014-01-29 v0.9.0 Source mapping fixes. Update coffee-script to 1.7.0 Use lodash directly instead of deprecated grunt.util._ | ||
*This file was generated on Mon Feb 17 2014 15:32:05.* | ||
*This file was generated on Wed Aug 06 2014 15:34:17.* |
@@ -16,2 +16,7 @@ /* | ||
var actionCounts = { | ||
fileCreated: 0, | ||
mapCreated: 0 | ||
}; | ||
grunt.registerMultiTask('coffee', 'Compile CoffeeScript files into JavaScript', function() { | ||
@@ -37,7 +42,13 @@ var options = this.options({ | ||
} else if (options.join === true) { | ||
writeFile(f.dest, concatInput(validFiles, options)); | ||
writeCompiledFile(f.dest, concatInput(validFiles, options)); | ||
} else { | ||
writeFile(f.dest, concatOutput(validFiles, options)); | ||
writeCompiledFile(f.dest, concatOutput(validFiles, options)); | ||
} | ||
}); | ||
grunt.log.ok(actionCounts.fileCreated + ' files created.'); | ||
if (actionCounts.mapCreated > 0) { | ||
grunt.log.ok(actionCounts.mapCreated + ' source map files created.'); | ||
} | ||
}); | ||
@@ -71,3 +82,3 @@ | ||
var appendTrailingSlash = function(dirname) { | ||
if (dirname.length > 0) { | ||
if (dirname.length > 0 && dirname.slice(-1) !== path.sep) { | ||
return dirname + path.sep; | ||
@@ -215,2 +226,3 @@ } else { | ||
writeCompiledFile(paths.dest, output.js); | ||
options.sourceMapDir = appendTrailingSlash(options.sourceMapDir); | ||
writeSourceMapFile(options.sourceMapDir + paths.mapFileName, output.v3SourceMap); | ||
@@ -235,3 +247,4 @@ }; | ||
if (writeFile(path, output)) { | ||
grunt.log.writeln('File ' + chalk.cyan(path) + ' created.'); | ||
actionCounts.fileCreated++; | ||
grunt.verbose.writeln('File ' + chalk.cyan(path) + ' created.'); | ||
} | ||
@@ -241,5 +254,6 @@ }; | ||
if (writeFile(path, output)) { | ||
grunt.log.writeln('File ' + chalk.cyan(path) + ' created (source map).'); | ||
actionCounts.mapCreated++; | ||
grunt.verbose.writeln('File ' + chalk.cyan(path) + ' created (source map).'); | ||
} | ||
}; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16620
217
164
0
+ Addedansi-regex@0.2.1(transitive)
+ Addedansi-styles@1.1.0(transitive)
+ Addedchalk@0.5.1(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@0.1.0(transitive)
+ Addedstrip-ansi@0.3.0(transitive)
+ Addedsupports-color@0.2.0(transitive)
- Removedansi-styles@1.0.0(transitive)
- Removedchalk@0.4.0(transitive)
- Removedhas-color@0.1.7(transitive)
- Removedstrip-ansi@0.1.1(transitive)
Updatedchalk@~0.5.0