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
Please remove "dist" from .npmignore #178
Comments
The thing is, all the npm package is the distribution and so it makes no sense to include the Does meteor not provide a build step/runtime for client side CommonJS dependencies? |
No, there's no such thing I'm aware of. A manual build step between adding the package and starting the app would be against the principle of simplicity. Furthermore the user wouldn't know about it if my package comes as a dependency of another package. And I think at run-time it won't be possible as in many cases Meteor won't have write access to the file system. That's because Meteor comes with free hosting included, though there are limitations for security reasons. Just to understand what needs to be done, how would one build the |
Okay. It's pretty straight forward to build. # if you don't have grunt
npm install -g grunt-cli
grunt build |
Thanks Stuart. But that is no option for three reasons:
So I don't see a manual build process as reasonable and an automated one through grunt not possible for mostly the same reasons (don't touch internals, no write access on remote servers) plus grunt not available. ...plus a huge overhead in maintaining a package which simply should add one single js file to the client. The only reasonable and very ugly solution I see on my end is to actually pick that single js file and physically put it into the package instead of just adding a dependency to the npm module. A git submodule might be more easy to maintain but would add redundant download of the stuff which already is there from the npm module. And the git submodule itself can not be used the way the npm package is bundled. (e.g. there is no
I understand that and appreciate your sense for cleanliness. But I have a real use case here. :) BTW, why do you have the |
I agree here, it doesn't make sense to omit the dist directory from the npm install... This makes the package essentially unusable in its compiled format if you're installing via npm. |
Looks like this change was made, though no release has been created since. I'm currently using this command
Dead handy repo, BTW, thanks. |
Agreeing on this too. This makes no sense to ignore the dist directory in an npm package. I want to use it and have to manually install the dependencies (>100Mo actually) just to be able to use the library. Edit : Ok I went a bit too fast and didn't see that this change was already on the git. Now what needs to happen is an npm release to actually make this change useful. :) |
I'm the maintainer of a package* which packs jszip for the Meteor framework. Meteor has the option to set dependencies from npm, which I do.
The package adds zip functionality to server and client. The server side implementation relies on the npm module. For the client side implementation I simply sent the file dist/jszip.js to the client, which now is not possible any longer. Any chance you remove that folder from the .npmignore? I see how it's not required in a standard node setup, but it doesn't hurt to have it and enables me (and other users/maintainers) to ship the file directly to the client.
* Please don't think this doesn't matter because the package is listed with zero downloads. Meteor just changed its package management system which reset all counters to 0. I just updated my package to be compatible with the new system. Before it had several hundred downloads. :)
The text was updated successfully, but these errors were encountered: