neilff / redux-ui-router

ngRedux bindings for Angular UI Router
MIT License
143 stars 48 forks source link

Add umd packages to npm repo via prepublish hook. #88

Closed kaidjohnson closed 7 years ago

kaidjohnson commented 7 years ago

Hello!

We're still stuck maintaining an application that isn't quite ready to migrate over to a package bundler such as webpack. As such, your library is unavailable to us, since no umd module is provided.

I've added umd module creation to the prepublish npm hook - it webpacks both a development (non-minified) version and production (minified) version on the fly to keep the git repository clean, but make these bundles available via npm installs. The bundles expose a global ngReduxUiRouter variable for in-browser use.

I'm currently testing this approach out using the v0.7.1-rc1, so would need a v0.7.1-rc2 to make this available on that track.

Thanks for your consideration and maintaining a nice bridge between ngRedux and ui-router!

hally9k commented 7 years ago

@kaidjohnson Thanks for your contribution! You should find 0.6.2 and 0.7.1-rc2 with your support for UMD packages available on NPM now.