todomvc icon indicating copy to clipboard operation
todomvc copied to clipboard

React with ES6 and Webpack Implementation

Open acamposruiz opened this issue 7 years ago • 13 comments

Hi!

Here I have develop an aproach with React 0.14 and webpack with ES6, I think can be a good thing present a way to modularize this project with webpack.

The project is in examples/react-webpack-es6.

Thanks for suggestions!

Antonio

acamposruiz avatar Aug 28 '17 17:08 acamposruiz

@acamposruiz, thanks for your PR! By analyzing the history of the files in this pull request, we identified @sindresorhus and @passy to be potential reviewers.

mention-bot avatar Aug 28 '17 17:08 mention-bot

Hi @dhruvdutt , I have cleaned up my commit messages and rebasen as you asked in this new branch and Pull Request

acamposruiz avatar Aug 28 '17 17:08 acamposruiz

Cool. Are there still issues with jshint in examples/react-webpack-es6/build/app.js?

dhruvdutt avatar Aug 28 '17 17:08 dhruvdutt

Appears that way so I will check all that and fix it as soon as I can

acamposruiz avatar Aug 28 '17 17:08 acamposruiz

I do not know if it is made a npm install on server on every project in order to let the example work out, do you know?

acamposruiz avatar Aug 30 '17 11:08 acamposruiz

I have that doubt because of node_modules folder is not included in .gitignore in other examples, why?

acamposruiz avatar Aug 30 '17 11:08 acamposruiz

In react example is included node_modules:

captura de pantalla 2017-08-30 a las 13 56 20

acamposruiz avatar Aug 30 '17 11:08 acamposruiz

Hi @dhruvdutt , Do you know anything about this error on travis? (node:9520) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead https://travis-ci.org/tastejs/todomvc/builds/269962365?utm_source=github_status&utm_medium=notification

acamposruiz avatar Aug 30 '17 12:08 acamposruiz

Okay, the other examples have node_modules folder which includes the final dist only and not the src. I believe this must have been done to directly serve package assets through GitHub static hosting. The current node_modules seems too big to commit. How about we generate a single file app.js including all vendor code and commit it?

Not sure about travis-ci check. Some nested dep seems to cause the issue.

dhruvdutt avatar Aug 30 '17 14:08 dhruvdutt

I've already removed almost all node_modules, only todomvc dependences will remains there. But travis-ci issue keep stay there and it seems like it has been happening for a while, so many others contributions remains unmerge because of this. I really do not know how to deal with this but I will keep digging some days. :)

acamposruiz avatar Aug 30 '17 16:08 acamposruiz

@acamposruiz Are you still intrested in landing this ?

FadySamirSadek avatar Jul 11 '18 02:07 FadySamirSadek

@FadySamirSadek yeah I'm still interested ;), Do you want me to do anything? what's next?

acamposruiz avatar Jul 11 '18 09:07 acamposruiz

@acamposruiz

  1. Branch has conflicts. Needs a rebase.
  2. Build is failing. Something to do with tests in tests/memory.js.

sagirk avatar Jul 11 '18 09:07 sagirk

Please refer to #2219

FadySamirSadek avatar Dec 24 '23 12:12 FadySamirSadek