@@ -10,7 +10,33 @@ var packageInfo = JSON.parse(fs.readFileSync('./package.json', {encoding: 'utf-8
1010 content = fs . readFileSync ( file , { encoding : 'utf8' } ) ,
1111 versionMatcher = new RegExp ( name + ' v[0-9\.]+' ) ;
1212
13- content = content . replace ( versionMatcher , name + ' v' + version ) ;
13+ var header = '/*!\n' +
14+ ' * react-charts v' + version + '\n' +
15+ ' * https://github.com/jhudson8/react-charts\n' +
16+ ' *\n' +
17+ ' *\n' +
18+ ' * Copyright (c) 2014 Joe Hudson<joehud_AT_gmail.com>\n' +
19+ ' *\n' +
20+ ' * Permission is hereby granted, free of charge, to any person obtaining a copy\n' +
21+ ' * of this software and associated documentation files (the "Software"), to deal\n' +
22+ ' * in the Software without restriction, including without limitation the rights\n' +
23+ ' * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n' +
24+ ' * copies of the Software, and to permit persons to whom the Software is\n' +
25+ ' * furnished to do so, subject to the following conditions:\n' +
26+ ' *\n' +
27+ ' * The above copyright notice and this permission notice shall be included in\n' +
28+ ' * all copies or substantial portions of the Software.\n' +
29+ ' *\n' +
30+ ' * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n' +
31+ ' * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n' +
32+ ' * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n' +
33+ ' * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n' +
34+ ' * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n' +
35+ ' * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n' +
36+ ' * THE SOFTWARE.\n' +
37+ ' */\n' ;
38+
39+ content = header + content ;
1440fs . writeFileSync ( file , content , { encoding : 'utf8' } ) ;
1541
1642var minimized = UglifyJS . minify ( file ) ;
0 commit comments