Skip to content

[Proposal] make topcoder-react-utils a single devDependency #2

@maxceem

Description

@maxceem

Don't know where is better to write a proposal, so I create an issue. let me know if there is a better place.

Currently, if we want to use the same building process for another project we have to run adopt-dev-deps which will update our package.json with all the devDependecies and after we have to write webpack config files which will merge some configs from the topcoder-react-utils. What do you think about making topcoder-react-utils work similar way to react-scripts

  • So instead of copying all the dependencies, our project has only one devDependency topcoder-react-utils and provides some commands like build, start, dev, lint and so on.
  • The benefits of such approach are:
    • topcoder-react-utils could be theoretically used as a bootstrap during challenges. If it works the way react-scripts then it would be very handy to use, as there are zero lines to write before starting coding.
    • updating devDependencies will become centralized. Don't have to run adopt-dev-deps again.
  • Downside:
    • Have to think how to handle situations if a project needs to make some modifications to config files. Not sure if there is a good solution. In react-scripts we only can run eject command in such case, which will copy all the files from react-scripts to the project. So in this case, we would loose benefits of react-scripts as we cannot use it anymore.
    • Probably we can have some folders in the project which will extend corresponding configs from topcoder-react-utils.

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