Skip to content

[SUGGESTION]: Integrate melos to simplify task execution #307

Open

Description

@wizlif

We currently need to manually run commands to execute tasks like build_runner, format testing, analyzing etc. These are common tasks that can be run multiple times during development. We can integrate melos which will act as a Makefile for our flutter project, creating shortcuts for all tasks like building buiild_runner.

Some tasks that could be simplified include :-

  • Generating files with build_runner.
  • Checking code analysis with flutter analyze.
  • Checking code format status.
  • Running all tests

Activity

  1. Xazin commented on Nov 14, 2022

    @Xazin
    Member

    I think hooks are better in this case. Everyone has git, instead of relying on melos. Everyone would need to install their cli.

    Melos is good if you are eg. Developing a federated package/plugin. Not sure it beats git hooks in our usecase though.

  2. wizlif commented on Nov 14, 2022

    @wizlif
    CollaboratorAuthor

    How would we use hooks to execute build_runner ?

    I was looking at simplifying some of the commonly used tasks during development so instead of typing
    flutter pub run build_runner watch -d we could simply have melos build:watch alternatively if we don't want to use melos, we can still create a Makefile with some of these commands.

  3. pythonhubdev commented on Mar 9, 2023

    @pythonhubdev

    But most of the time people forget to setup Git Hooks @Xazin so it wont run by default right?

  4. Xazin commented on Mar 10, 2023

    @Xazin
    Member

    But most of the time people forget to setup Git Hooks @Xazin so it wont run by default right?

    That is not really an issue though. Melos is built for mono repos, this isn't one.

    It's overkill to use it as such. You would also need to run one command to have melos working, just as you would hooks. So that cannot be the argument.

  5. pythonhubdev commented on Mar 10, 2023

    @pythonhubdev

    Okay @Xazin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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