|
|
@ -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(' -->', ''); |
|
|
|