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

chore(npmignore): Cleanup list of assets included in the released npm package #1942

Merged
merged 1 commit into from
Apr 5, 2018

Conversation

rpl
Copy link
Member

@rpl rpl commented Mar 30, 2018

This PR rewrites the .npmignore file to ensure that only the files needed in the released package are actually included.

The current .npmignore looks pretty outdated and so the package released on npm contains a long list of files that are not really of any use when the package is installed from a regular user, as it can be checked by looking at the following unpkg url: https://unpkg.com/addons-linter@0.41.0/

I propose to reverse the way we list the globs in the npmignore, so that we exclude everything by default, and then we just list all the globs related to the files that we actually want to be included in the released npm package.

(To be fair, I think that most of the files in bin/, besides the addons-linter one, should be moved in a separate directory, because they are not bin scripts of the package, but just "internal" nodejs utilities that we use from time to time during the development activities, e.g. to import a new version of the API schema files, manage the locales extraction and generation etc.).

@rpl rpl requested a review from EnTeQuAk March 30, 2018 15:52
Copy link
Contributor

@EnTeQuAk EnTeQuAk left a comment

Choose a reason for hiding this comment

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

I was wondering if we should include CODE_OF_CONDUCT.md and CONTRIBUTING.md too but I guess they're too much github-only anyway.

Looks good! And the builded package seems to work fine.

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