Skip to content

Commit

Permalink
watch
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Lodriguez (OSV) committed Jul 21, 2020
1 parent 68b58fe commit 423bd87
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 462 deletions.
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
node_modules/
temp
*.log

dist

# IDE's
.idea
.vscode
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: node_js
node_js:
- 7
- 6
- 4
after_script: 'cat ./coverage/lcov.info | coveralls'
- 10
script:
- npm test
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Solid base for practising RxJS

[![Build Status](https://travis-ci.org/code0wl/typescript-rxjs-webpack.svg?branch=master)](https://travis-ci.org/code0wl/typescript-rxjs-webpack)

Use this playground to quickly scaffold a rxjs program that includes marble testing for scratchpad purposes

## Usage
Expand All @@ -11,7 +13,7 @@ npm start
## TDD

```bash
npm test
npm run test:watch
```

Project will start on the specified port with watch mode, enjoy!
9 changes: 3 additions & 6 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import { interval } from "rxjs";
import { scan } from "rxjs/operators/";
import { scan } from "rxjs/operators";

// ****
//
// Welcome to your rxjs scratch pad 🤗
//
// ****

const source = interval(2000);

const sourceMessage = x => `rxjs logo spun ${ x } times`;
const messageElement = document.querySelector('.message');

const log = x => (messageElement.textContent = x);
const sourceMessage = x => `rxjs logo spun ${ x } times`;
const log = x => messageElement.textContent = x;

source
.pipe(scan((_, count) => count + 1, 0))
Expand Down
Loading

0 comments on commit 423bd87

Please sign in to comment.