Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

next -> redux opinionated #366

Merged
merged 113 commits into from
Jun 21, 2017
Merged

next -> redux opinionated #366

merged 113 commits into from
Jun 21, 2017

Conversation

sergiokopplin
Copy link
Collaborator

@sergiokopplin sergiokopplin commented Feb 21, 2017

Might need some help here.

ctrlplusb and others added 30 commits January 13, 2017 07:18
update broken feature/flow link in docs
* Updated CSP for nonce backwards compatibility

* Documented

* Updates comments
   - `SERVER_PORT` to `PORT`
   - `SERVER_HOST` to `HOST`
   - `CLIENT_DEVSERVER_PORT` to `CLIENT_DEV_PORT`
 - Replaces `code-split-component` with `react-async-component`
 - Renames the `nodeBundlesIncludeNodeModuleFileTypes` config property to `nodeExternalsFileTypeWhitelist`
 - Refactors the server and serviceworker offline page generation. We now use a set of React components (`ServerHTML` and `HTML`) to manage our HTML in a uniform fashion.
 - Refactors how we resolve environment specific configuration values. `NODE_ENV` is reserved for specifying a `development` or `production` build now. Use `CONF_ENV` to specify a target environment if you would like to resolve an environment specific .env file.
 - Refactors the client configuration filter rule to be contained within the main configuration and moves the configuration object creation into the server middleware.
 - Renames the `safeGetConfig` to `config`, and made it a default export.
 - Removes the `cross-env` library.

 - All server/client/shared code all use the shared config helper.
 - Updated dependencies, including to the latest Webpack official 2 release.

 - New babel plugins to optimise React production build performance.
 - Adds new icon sets.

 - Chrome favicon request issue.
 - Cleans up the package scripts.
 - Service worker would fail if a subfolder was added to the public folder.
…sary. Everything internal (tooling/docs) has been moved to an "internal" folder. The rest lives at root.

The configuration has been given a massive once over too.  I really disliked how there were multiple ways the config values were being read throughout the project.  Everything has been changed now to use a config helper that lives in the '<projectroot>/config/' folder.  All things config lives in that folder now too.
Removes CONF_ENV and refactors environment variable resolution to use NODE_ENV again.
@strues
Copy link
Collaborator

strues commented May 3, 2017

It's certainly close to ready, if not completely ready. Havent noticed any other issues myself.

@brianfeister
Copy link

I think I uncovered a minor bug where wrapping components differently than you're doing in the boilerplate causes the async /post/:id route to choke, I think this might be a better approach

https://github.com/sergiokopplin/react-universally/pull/3

Fix Router v2 Implementation
@sergiokopplin
Copy link
Collaborator Author

Nice catch @brianfeister !!!

@sergiokopplin
Copy link
Collaborator Author

sergiokopplin commented May 25, 2017

Hey guys!
The branch has 1 problem which affects the render speed.

image

I was looking as seems to be a problem with the async wrapper.
Can someone helps me with that? Not finding the problem.
Have you fixed that in another branch @ctrlplusb?
Do you have this problem in your project @birkir?


related:
#43

@sergiokopplin
Copy link
Collaborator Author

Fixed!

I changed this line from client/index:

const rehydrateState = window.__JOBS_REHYDRATE_STATE__;

to:

const rehydrateState = window.__JOBS_STATE__;

client/index.js Outdated
@@ -30,7 +30,7 @@ const supportsHistory = 'pushState' in window.history;

// Get any rehydrateState for the async components.
// eslint-disable-next-line no-underscore-dangle
const asyncComponentsRehydrateState = window.__ASYNC_COMPONENTS_REHYDRATE_STATE__;
const asyncComponentsRehydrateState = window.__JOBS_STATE__;
Copy link

@maryokhin maryokhin May 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this part in server/middleware/reactApplication/ServerHTML.js also reflect this?

 ifElse(asyncComponentsState)(() =>
      inlineScript(
        `window.__ASYNC_COMPONENTS_REHYDRATE_STATE__=${serialize(asyncComponentsState)};`,
      ),
    ),

also reflect this change?

@maryokhin
Copy link

maryokhin commented May 31, 2017

Running this branch as-is gives me a bunch of errors in the console, is that normal?

screenshot 2017-05-31 13 48 06

Everything renders fine though.

@sergiokopplin
Copy link
Collaborator Author

@maryokhin can you take a look now?

@maryokhin
Copy link

@sergiokopplin yep, console is clean now.

@birkir birkir mentioned this pull request Jun 21, 2017
@oyeanuj
Copy link
Contributor

oyeanuj commented Jun 21, 2017

@sergiokopplin @ctrlplusb Ready to merge? 🎉

@strues
Copy link
Collaborator

strues commented Jun 21, 2017

LGTM

@ctrlplusb
Copy link
Owner

If @strues is happy lets go! 👍

@ctrlplusb ctrlplusb merged commit 9ee484c into ctrlplusb:feature/redux-opinionated Jun 21, 2017
@ctrlplusb
Copy link
Owner

Well done to @sergiokopplin for all his hard work on this one, and a huge thanks to everyone else who helped along the way. 👍

@sergiokopplin
Copy link
Collaborator Author

Awesome!!!! :)

@sergiokopplin
Copy link
Collaborator Author

sergiokopplin commented Jun 22, 2017

@ctrlplusb can i add my name on the contributors? :)

@ctrlplusb
Copy link
Owner

Of course yes!

Sorry I have been completely dropping the ball on managing this project at the moment. I have so many other gears turning, with some exciting new developments. I appreciate to the moon your contribution. In fact, expect an invite. 👍

@sergiokopplin
Copy link
Collaborator Author

Thanks @ctrlplusb!

@sergiokopplin sergiokopplin deleted the feature/redux-opinionated branch August 17, 2017 13:32
oyeanuj pushed a commit to oyeanuj/react-universally that referenced this pull request Oct 6, 2017
* feature/redux-opinionated: (25 commits)
  Adding logging for redux actions, and updating DevTools syntax to the latest.
  Updating tests to pass.
  Pushing updated lock files (without merge indicators)
  Added lock files. Also, previous commit was merging master into redux/opinionated. Ignore previous commit message
  Server logging enhancements (ctrlplusb#508)
  Minor readme updates (ctrlplusb#501)
  Remove link to phantom page
  Updates failing snapshots.
  Updates deps and adds an npmrc to make sure dep installs are always exact.
  Replaces yarn with npm.
  Added 100% coverage for utils folder (ctrlplusb#484)
  Fix link to phantom page in the documentation. (ctrlplusb#507)
  Rebase
  Remove link to phantom page
  Checkout refinements and deps updates from ctrlplusb#489
  Update redux dependencies
  next -> redux opinionated (ctrlplusb#366)
  Updates to latest react-jobs and fixes job attached to Post.
  Migrates from the 'task routes' implementation for data loading to the usage of the 'react-jobs' library.
  Fixes missing dependencies.
  ...
@sergiokopplin
Copy link
Collaborator Author

@ctrlplusb hey man! i've pushed a commit that was supposed to be a pr on the next branch to add me as contributor. sorry for that, my mistake! Can you add me on readme also? thanks

@ctrlplusb
Copy link
Owner

No worries, my sincere apologies for not having you in there already!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.