Skip to content

Commit

Permalink
oao run-script: add possibility to generate more than one job per s…
Browse files Browse the repository at this point in the history
…ubpackage (e.g. `oao run-script test:*`) (#70)
  • Loading branch information
guigrpa committed Mar 14, 2018
1 parent 9dba0f4 commit eb0a7a9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* `oao run-script`: add the possibility to generate more than one job per subpackage (e.g. `oao run-script test:*`).

## 1.4.1 (2018-3-12)

* Fix issues caused by new yarn `workspaces` semantics (#71, #67).
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ $ oao run-script start --tree

By default, `oao run-script` runs sequentially. Use `--parallel` to run the scripts in parallel, and `--tree` if you want to follow the inverse dependency tree (starting from the tree leaves).

You can also run all scripts matching a given glob pattern: `oao run-script test:*`.

## Credits :clap:

* [lerna](https://github.com/lerna/lerna): for general inspiration.
Expand Down
1 change: 0 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
* Add a limit to parallel jobs
* Make parallel jobs know which are their input requirements
* `oao runScript`: add possibility to generate more than one job per subpackage (e.g. `oao runcript test:*`)

*Nothing else identified right now*
8 changes: 8 additions & 0 deletions src/__tests__/__snapshots__/runScript.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ Array [
"storySrc": undefined,
},
],
Array [
"yarn run start2",
Object {
"bareLogs": undefined,
"cwd": "test/fixtures/packages/oao-b",
"storySrc": undefined,
},
],
Array [
"yarn run start",
Object {
Expand Down
2 changes: 2 additions & 0 deletions src/utils/__tests__/__snapshots__/readSpecs.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Object {
"name": "oao-b",
"scripts": Object {
"start": "ls -al",
"start2": "ls",
},
"version": "0.1.0",
},
Expand Down Expand Up @@ -130,6 +131,7 @@ Object {
"name": "oao-b",
"scripts": Object {
"start": "ls -al",
"start2": "ls",
},
"version": "0.1.0",
},
Expand Down
3 changes: 2 additions & 1 deletion test/fixtures/packages/oao-b/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"license": "MIT",
"scripts": {
"start": "ls -al"
"start": "ls -al",
"start2": "ls"
}
}

0 comments on commit eb0a7a9

Please sign in to comment.