Created
December 10, 2013 21:07
-
-
Save lazywithclass/7900091 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
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']); | |
}; |
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
{ | |
"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" | |
} | |
} |
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
The answer is <!-- @echo answer --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment