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

Improve client and server entires with unified configuration #1078

@zamotany

Description

@zamotany

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions