Skip to content

Commit

Permalink
Update glob for header insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtusz committed Jan 21, 2016
1 parent e5a0cd9 commit b5cb453
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ pathsDist.forEach(headerLicense);
var licenseSrc = constants.licenseSrc;
var licenseStr = licenseSrc.substring(2, licenseSrc.length - 2);


glob(path.join(constants.pathToSrc, '**/*.js'), function(err, files) {
var srcGlob = path.join(constants.pathToSrc, '**/*.js');
var libGlob = path.join(constants.pathToLib, '**/*.js');
glob('{' + srcGlob + ',' + libGlob + '}', function(err, files){
files.forEach(function(file) {
fs.readFile(file, 'utf-8', function(err, code) {

Expand Down

1 comment on commit b5cb453

@etpinard
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nicely done!

Please sign in to comment.