kabisa / maji

Maji is a framework to build great hybrid mobile apps.
https://www.majimobile.com/
MIT License
18 stars 10 forks source link

Work around NPM removing .gitignore from published packages #194

Closed pascalw closed 6 years ago

pascalw commented 6 years ago

See https://github.com/npm/npm/issues/3763 for details. Proposed fix of including an empty .npmignore doesn't work.

This commit fixes the issue by renaming the .gitignore to gitignore. During project creation we rename it back to .gitignore. For the gitignore to work inside the Maji src repo, a symlink from gitignore -> .gitignore is added.

Fixes #179.

pascalw commented 6 years ago

With npm pack && tar --list -f maji-3.0.2.tgz you can verify what files end up in the packaged module.