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

gulp as task manager #143

Open
gaboesquivel opened this issue Oct 22, 2018 · 4 comments
Open

gulp as task manager #143

gaboesquivel opened this issue Oct 22, 2018 · 4 comments

Comments

@gaboesquivel
Copy link
Contributor

We have several handy script on the root folder, however error handling is big difficult when writing shell script. I think that gulpjs could be a robust dev task management solution.

This package looks interesting https://www.npmjs.com/package/gulp-docker-compose

Scripts I have in mind:

  • gulp setup : initializes/configures blockchain and databases
  • gulp start : starts all required services
  • gulp restart restarts all services
  • gulp restart [servicename] . restart specific service
  • gulp stop : stops all services gracefully
  • gulp flush : remove all blockchain and database data

related to #142

@leordev
Copy link
Member

leordev commented Oct 22, 2018

I agree that shell is bad and we should get rid of it...

But also I think gulp adds another abstraction level that we don't need

I'd rather go with pure npm (yarn) scripts (I'm happily using that a lot in some projects)

Check this out: https://medium.freecodecamp.org/why-i-left-gulp-and-grunt-for-npm-scripts-3d6853dd22b8

So I'd say, unless you think there are good benefits that I'm missing in gulp, let's go with yarn scripts.

@gaboesquivel
Copy link
Contributor Author

I've been trying to follow this approach of using only yarn and it get's a bit confusing.

I think gulp can help to avoid yarn scripts inception.

gulp -> docker compose -> yarn instead of yarn -> docker compose --> yarn

I think it's more clear. gulp has the global scripting scope while yarn is for specific services.

@leordev
Copy link
Member

leordev commented Oct 22, 2018

Alright, gulp there it is! ;)

@gaboesquivel
Copy link
Contributor Author

👍

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

2 participants