Browse Source

undo changes to extractCode, using grunt task instead

main
Connor McSheffrey 11 years ago
parent
commit
89384f4071
  1. 3
      extractCode.js

3
extractCode.js

@ -16,13 +16,10 @@ function main(dest, filenames) {
if (!dest) {
throw new Error('no dest provided');
}
console.log(filenames);
filenames.map(function (filename) {
var content = fs.readFileSync(filename).toString('utf8');
var codeSamples = content.match(CODE_SAMPLE);
codeSamples.map(function (codeSample) {
// Do a little jank preprocessing
codeSample = codeSample.replace('<!--', '//').replace(' -->', '');

Loading…
Cancel
Save