meteor / meteor-feature-requests

A tracker for Meteor issues that are requests for new functionality, not bugs.
Other
89 stars 3 forks source link

Atmosphere to NPM migration through extensions to package.json #384

Open CaptainN opened 4 years ago

CaptainN commented 4 years ago

I'd like to see a way to migrate to NPM, while retaining most of the features we have in atmosphere packages. This could be done in a similar way as other source based distributions do it, by extending the package.json with hooks for Meteor end points - either precompiled, or to be compiled and cached at install time.

If we had a JSON setting in package.json that mapped to the meteor package API, it seems we could get this working by doing a translation internally (automating the creating of compatible package.js files - and compiling the source).

It'd also be nice if we could distribute as source. I know there can be performance issues with that (and probably some other concerns off which I'm not aware), but maybe we can solve it by compiling at install time (or first run), instead of at build time. This would solve a few problems: