Licence header (#126)
Licence header (#126)

* basic generator, which asks for the licence path

* read plugin folders and show them to the user

* added options + refactored

* add option to exclude file types and read licence file

* read source folders and walk through them

* renamed variables, added comments and a try catch block

* generate comments for different file extensions

* write header to file

* run for each plugin

* moved alignment of lines to separate function

* remove supportedFileTypes and use this.fs

* use this.fs

* execute inside a plugin instead of showing all available plugins

* use glob instead of self-written walkThroughFileSystem function

* remove old headers if existing

* removing log messages again, because they distract from the prompts to override files

* removed obsolete plugins option

* use path.basename to get last folder of the path

* use platform specific newline characters

* use sync glob instead of async version

* fix linting

* remove first line before looping over them instead of just referencing it

* renamed variable

* use shift instead splice(...)[0]

* minimal changes

* use os.EOL consistently

* extracted local variables

* early aborting search for header

* changed condition of while loop to a more save version

phovea/generator-phovea,phovea/generator-phovea,phovea/generator-phovea,phovea/generator-phovea,phovea/generator-phovea