Permalink
Browse files

Added grunt-retro and tests are passing

  • Loading branch information...
1 parent 0a599d1 commit 9d16db3e5162ca81064fba985df48663996807aa @twolfson committed Feb 28, 2013
Showing with 8 additions and 2 deletions.
  1. +2 −1 package.json
  2. +6 −1 tasks/jsmin-sourcemap.js
View
3 package.json
@@ -30,7 +30,8 @@
"test": "cd test && grunt"
},
"dependencies": {
- "jsmin-sourcemap": "~0.14.0"
+ "jsmin-sourcemap": "~0.14.0",
+ "grunt-retro": "~0.2.1"
},
"_devDependencies": {
"grunt": "~0.3.12"
View
7 tasks/jsmin-sourcemap.js
@@ -1,6 +1,11 @@
var jsmin = require('jsmin-sourcemap'),
- path = require('path');
+ path = require('path'),
+ gruntRetro = require('grunt-retro');
module.exports = function (grunt) {
+ // Load and bind grunt-retro
+ grunt = gruntRetro(grunt);
+
+ // Define the jsmin-sourcemap task
grunt.registerMultiTask('jsmin-sourcemap', 'Generate minified JavaScript and sourcemap from files', function () {
// Grab the files to minify
var file = this.file,

0 comments on commit 9d16db3

Please sign in to comment.