Skip to content

Instantly share code, notes, and snippets.

@lazywithclass
Created December 10, 2013 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazywithclass/7900091 to your computer and use it in GitHub Desktop.
Save lazywithclass/7900091 to your computer and use it in GitHub Desktop.
module.exports = function (grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
preprocess: {
options: {
context : {
answer: 42
}
},
multifile : {
files : {
'destination' : 'source'
}
}
}
});
grunt.registerTask('default', ['preprocess']);
};
{
"name": "testing-grunt",
"version": "0.0.0",
"description": "Testin grunt-preprocess",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": "",
"author": "me@lazywithclass.com",
"license": "BSD",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-preprocess": "~3.0.1",
"matchdep": "~0.3.0"
}
}
The answer is <!-- @echo answer -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment