(files, banner)
| 207 | } |
| 208 | |
| 209 | function insertBanner(files, banner) { |
| 210 | status('Insert banner to', files.length, 'files'); |
| 211 | if (config.dryRun) return; |
| 212 | |
| 213 | _.each(files, function(fileName) { |
| 214 | var filePath = path.join(projectRoot, fileName); |
| 215 | var content = fs.readFileSync(filePath); |
| 216 | var newContent = banner + content; |
| 217 | |
| 218 | fs.writeFileSync(filePath, newContent); |
| 219 | }); |
| 220 | } |
| 221 | |
| 222 | function bumpReadmeVersion(oldVersion, newVersion, bumpType) { |
| 223 | if (bumpType === 'dev') { |