-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Introduce support for running multiple tasks in series #39
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Charlike Mike Reagent <[email protected]>
I guess this is unnecessary and it will be impossible to pass arguments to the task. https://github.com/egoist/maid#read-command-line-arguments |
Yes. But this also may be a problem i'm describing here #37 (comment) What if CLI that you run from task have also such task? Let's consider an example that CLi that you want to run have command and optional sub-command such signature like ## add
Some description
```sh
yarn help
```
|
I just thought... We can allow running multiple commands behind But yea, you are kind of right, because we can use such maidfile to accomplish "run in series". ## full
```sh
maid lint && maid test && maid build
```
## lint
```sh
eslint src
```
## test
```sh
ava tests/
```
## build
```sh
babel src -d dist
```
so then just |
Building a task runner is a bit tricky some times. I know what it is, because I'm facing such problems, decisions and ideas while building v3 of I've workedaround those conflicting by filtering out So to recap. We can close, your decision :) |
You might get even fancier with ## full
Run tasks `one` `two` `three` after this
## one
```js
console.log(1)
```
## two
```js
console.log(2)
```
## three
```js
console.log(3)
``` Though something like ## full
Run tasks <tasks> (no this, no before \ after)
Might be really handy sytax sugar that would still allow for arguments and easy to type command |
@vsevolodtrofimov mmm yeah. More and more considering that this PR can be closed. The point of markdown-driven task runner is to use markdown insead of cli for most of things (such like running multiple commands/tasks) |
@tunnckoCore I have access to start merging, would you fix the conflicts and I will merge today. Thanks. |
What conflicts? There are no conflicts. The thing is that i'm still not sure if we want this. |
Because why not? It's easy addition.
Example (seen even in the maid's npm scripts)