Skip to content

Replace boilerplate by a CRA template or fork #35

Open
@smaniotto

Description

Problem definition

We're currently working on the UI Toolkit repo to structure it based on this boilerplate, but we will need a couple of workarounds (ie: extra work) to keep updates in sync between both repos.

By using create react app (either template or fork), all these updates would be in sync with a version bump. The main con is loosing flexibility in the Webpack configs, but on the good side, we don't have to tweak Webpack anymore.

I believe that the main blocker of adopting CRA in the past was support for PostCSS and CSS Modules, but since v2 launch (late 2018) it has support.

Template, fork or both

The main pro of using a template is having CRA easily updated (just a version bump). And the main pro of using a fork is having more flexibility in the Webpack configs if needed, but updates will have to be patched manually. We can also use a combination of both, a template that uses a forked version of create react app.

In my opinion, we could start with the template and fork only if needed.

Any obvious problem that I'm not considering?

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