Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add licenseFileNamePartsToFind option #45

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ikkala
Copy link

@ikkala ikkala commented Apr 13, 2017

Generalized the support for arbitrary license file names because of the need for file name "copying". This merge could solve also issue #43.

About implementation: To avoid callback hell when looping through given file names refactored the code ( b6f6c06) to use generator functions in createModule function. Next, added licenseFileNamePartsToFind option that must be array of file names (or regexps). To support newish "license" file variations #44 array items can also contain alternative license collection name. So, the default for this parameter is [['li@(c|s)en@(c|s)e', 'license'], 'readme'].

Unfortunately, to support generator functions in tests, had to upgrade gulp-mocha and therefore the gulp-coveralls now fails. The Coveralls integration plugin seems to be quite old and there's no more new version available.

@ikkala
Copy link
Author

ikkala commented Apr 13, 2017

It's actually gulp-coverage that fails silently because of reasons explained here sindresorhus/gulp-mocha#159 and then gulp-coveralls has nothing to send.

@iandotkelly
Copy link
Owner

I've made a significant change to nlf to support npm3 which is probably going to conflict with this. Now that it doesn't support node < 4 I'm planning to significantly rewrite this to be cleaner and more es6y.

@ikkala
Copy link
Author

ikkala commented May 15, 2017

Ok, let me know when your es6 branch is in good enough shape so that I can redo the idea of this pull request to it also. Or perhaps then when it merges the main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants