Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Improve client and server entires with unified configuration #1078

Open
zamotany opened this issue Aug 9, 2017 · 0 comments
Open

Improve client and server entires with unified configuration #1078

zamotany opened this issue Aug 9, 2017 · 0 comments

Comments

@zamotany
Copy link
Contributor

zamotany commented Aug 9, 2017

With unified configuration instead of using generators we can write pretty small and trivial babel plugins that will handle generating client entry init files and server entires.

Client

  1. Read src/apps.js.
  2. Find definition for specific app (passed via options) and store it.
  3. Replace everything with static login from string.
  4. Append stored app definition.
  5. Profit - we can now directly use it (save on disk or use as a virtual module).

Server

  1. Read src/apps.js
  2. Add wrap values in Document, routes, reducers with require call.
  3. Profit - we can now directly use it (save on disk or use as a virtual module).
@zamotany zamotany mentioned this issue Aug 9, 2017
23 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant