-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix master build and bump beta version (#137)
* use property matchers for getOpts spec * v2.0.0-beta.2 * Reduce pipeline concurrency for integration tests * update changelog * update yarn.locks for examples * clean yarn cache upon cleaning repo * bump root dev deps * correct docs * utilize implicit returns when possible * capatilize constants * moved streaming bootstrapping into bootstrap
- Loading branch information
1 parent
0a8e2c9
commit 7da1dda
Showing
36 changed files
with
306 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0-beta.2", | ||
"npmClient": "yarn", | ||
"packages": [ | ||
"packages/dockest", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/dockest/src/run/bootstrap/createDockerServiceEventStream.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { fromEventPattern, Observable } from 'rxjs' | ||
import { shareReplay } from 'rxjs/operators' | ||
import { DockerEventEmitter, DockerEventType } from './createDockerEventEmitter' | ||
|
||
export type DockerServiceEventStream = Observable<DockerEventType> | ||
|
||
export const createDockerServiceEventStream = ( | ||
serviceName: string, | ||
eventEmitter: DockerEventEmitter, | ||
): DockerServiceEventStream => | ||
fromEventPattern<DockerEventType>( | ||
handler => { | ||
eventEmitter.addListener(serviceName, handler) | ||
}, | ||
handler => { | ||
eventEmitter.removeListener(serviceName, handler) | ||
}, | ||
) | ||
// Every new subscriber should receive access to all previous emitted events, because of this we use shareReplay. | ||
.pipe(shareReplay()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/dockest/src/run/bootstrap/transformDockestServicesToRunners.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
packages/dockest/src/run/createDockerServiceEventStream.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.