mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-09 15:47:55 -05:00
* Add script to prepare and deploy gh-pages * Cleanup other script names * Only copy neccessary files * More copying and cleanups * Switch to gulp * Update dependencies * Make that gulp flow actually work * Update README
10 lines
333 B
JavaScript
10 lines
333 B
JavaScript
var fs = require('fs');
|
|
var path = require('path');
|
|
var pkg = require('../package.json');
|
|
var licensePath = path.resolve(__dirname, '../LICENSE');
|
|
|
|
var license = fs.readFileSync(licensePath, 'utf8');
|
|
var data = license.replace(/Modernizr\s(.+?)\s\|/, 'Modernizr ' + pkg.version + ' |');
|
|
|
|
fs.writeFileSync(licensePath, data, 'utf8');
|