Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Minimize the magic of the setup #40

@novellizator

Description

@novellizator

There is a lot of magic going on with the solution above. Considering that this is a training project, we should keep the non-react stuff down to the minimum.

@novellizator @branoholy @dinassh There is a lot of magic going on with the solution above. Considering that this is a training project, we should keep the non-react stuff down to the minimum.

I think that the idea of having a single package.json file is great, but linking dependencies with some magical symlinking not so much :-) For the sake of simplicity I suggest this:

  1. Replace CRA with Parcel bundler
  2. Have one package.json file in the root directory
  3. Have multiple start commands specified, i.e. start:0 would do parcel src/00-init/index.html etc.

With the above, we should have one set of dependencies but still be able to invoke the app from multiple entry points, which is what we want to do unless I am really mistaken.

AFAIK Parcel should do out of the box everything that CRA does, maybe except ESlint stuff.

What do you think?

Originally posted by @karelklima in #37

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions