Created
November 25, 2014 12:19
-
-
Save monolithed/459445212280fd05584c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var utils = require('util'); | |
module.exports = function (grunt, options) { | |
return { | |
index: { | |
options: { | |
template: function (data) { | |
var content = utils.format('return %s(%j);', data.contents, { | |
version: options.build.version, | |
banner : '<%= figlet.banner %>' | |
}); | |
return new Function(content)(); | |
} | |
}, | |
files: { | |
'build/index.html': 'trunk/index.xml' | |
} | |
}, | |
client: { | |
options: { | |
template: function (data) { | |
return 'module.exports = ' + data.contents; | |
} | |
}, | |
files: { | |
'cache/content.js': 'trunk/blocks/content.xml' | |
} | |
} | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment