Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks
wizlif opened this issue Nov 14, 2022 · 5 comments
Open
4 tasks

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

wizlif opened this issue Nov 14, 2022 · 5 comments

Comments

@wizlif
Copy link
Collaborator

wizlif commented Nov 14, 2022

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
@Xazin
Copy link
Member

Xazin commented Nov 14, 2022

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.

@wizlif
Copy link
Collaborator Author

wizlif commented Nov 14, 2022

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.

@pythonhubdev
Copy link

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

@Xazin
Copy link
Member

Xazin commented Mar 10, 2023

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.

@pythonhubdev
Copy link

Okay @Xazin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants