chrisenytc / slush-generator

A slush generator for create slush generators
https://www.npmjs.org/package/slush-generator
MIT License
30 stars 11 forks source link

Question about rename files with underscore #14

Open DiegoAz opened 8 years ago

DiegoAz commented 8 years ago

Hi, I have a doubt. Can you help me please. Why do you create another folder to folders that starts with underscore?. Ex: to folder _jade create another folder .jade (empty) and the folder _jade

             .pipe(rename(function (file) {
                   if (answers.license === 'MIT') {
                        var mit = file.basename.replace('LICENSE_MIT', 'LICENSE');
                        file.basename = mit;
                    } else {
                        var bsd = file.basename.replace('LICENSE_BSD', 'LICENSE');
                        file.basename = bsd;
                    }
                    if (file.basename[0] === '_') {
                        file.basename = '.' + file.basename.slice(1);
                    }
               }))