I am in the process of creating a package for NPM and Bower.
To maintain organization, I store my working files (ES6) in the src/
directory of the package and compile the distribution files (ES5, using Babel) in the lib/
directory.
For version control, I have added lib/
to my .gitignore
.
For NPM, I utilize a .npmignore
file that excludes src/
instead of lib/
, allowing the publication of the contents of the lib/
folder on NPM.
However, with regards to Bower, the lib/
folder is not present in the repository, resulting in it being excluded from the Bower package. How do I go about publishing the contents of the ignored lib/
folder on Bower?