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

Reduce size of NPM package #29

Merged
merged 1 commit into from Mar 18, 2017
Merged

Conversation

jorrit
Copy link
Contributor

@jorrit jorrit commented Mar 18, 2017

The NPM package contains a lot of files that are not needed to use fecha. This change reduces the package to just the source and minified files. The README and LICENSE files are always included, by the way.

The files that are currently in the package are:

  • bower.json
  • CHANGELOG.md
  • CONTRIBUTING.md
  • .editorconfig
  • .eslintrc.js
  • fecha.js
  • fecha.min.js
  • .idea
  • LICENSE
  • .npmignore
  • package.json
  • README.md
  • test.js
  • .travis.yml

My preference is to not include tests, but if you want to keep them in the NPM package I'll update the PR.

@taylorhakes
Copy link
Owner

@jorrit Thanks for doing this. I would like to keep the LICENSE file in the package. I don't think the tests are necessary. Can you update the pull request to add the LICENSE?

@jorrit
Copy link
Contributor Author

jorrit commented Mar 18, 2017

The README and LICENSE files will be included by npm even if they're not specified in the files array, see https://docs.npmjs.com/files/package.json#files.

@taylorhakes
Copy link
Owner

taylorhakes commented Mar 18, 2017

Great. Thanks. I will push out a new version later today

@taylorhakes taylorhakes merged commit d580a94 into taylorhakes:master Mar 18, 2017
@jorrit jorrit deleted the patch-1 branch March 18, 2017 21:05
@jorrit
Copy link
Contributor Author

jorrit commented Mar 18, 2017

Thank you for merging!

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.

None yet

2 participants