redux-marionette icon indicating copy to clipboard operation
redux-marionette copied to clipboard

NPM Project Unusable in UMD Ecosystem

Open AndrewHenderson opened this issue 9 years ago • 4 comments
trafficstars

I'm currently using require.js in dev environment. I installed the project from NPM. Because it's a clone of the repo, it assumes ES2015. I think a bundler such as Webpack that bundles the project through babel and puts it in a dist directory for use in any project will be a big step towards easing adoption.

AndrewHenderson avatar Oct 20 '16 17:10 AndrewHenderson

:+1: will accept pull request.

You might check out the webpack-dev-server or my own https://github.com/compstak/simple-dev-server

stutrek avatar Oct 20 '16 17:10 stutrek

@stutrek I ended up creating a separate project.

After a bit of experimentation, I realized my goal was different – rather than needing Marionette/React middleware, I wanted a way to connect Marionette Views to a Redux store, independent of React.

My hope is to allow the project I work on to migrate the business logic out of Backbone Models and Collections and into Redux, then rewrite the existing view layer in React later on.

In the interim, new components can be written in React with the ability to communicate with a shared data event API.

The project I wrote was mostly a port of React-Redux. You share a thorough understanding of both Marionette and React, so any feedback would be much welcomed: https://github.com/AndrewHenderson/marionette-redux. FYI, The docs are still a work in progress.

Thanks again for posting your project! Reading through your code was enlightening as I began my search.

AndrewHenderson avatar Dec 02 '16 18:12 AndrewHenderson

I reopened this issue. That way the next user of the library will be aware that this is a known issue. I'll leave it to you to re-close, if you prefer.

AndrewHenderson avatar Dec 02 '16 18:12 AndrewHenderson

I like what you're doing. My repo is really not much more than a connection similar to yours plus a React component.

There could probably be a webpack config for this repo that packages it into two files, the connection and the React component, but your connection seems more complete.

stutrek avatar Dec 02 '16 18:12 stutrek