Skip to content

Commit 423bd87

Browse files
author
Oscar Lodriguez (OSV)
committed
watch
1 parent 68b58fe commit 423bd87

File tree

7 files changed

+10
-462
lines changed

7 files changed

+10
-462
lines changed

Diff for: .gitignore

-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
11
node_modules/
2-
temp
3-
*.log
4-
52
dist
6-
7-
# IDE's
8-
.idea
9-
.vscode

Diff for: .travis.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: node_js
22
node_js:
3-
- 7
4-
- 6
5-
- 4
6-
after_script: 'cat ./coverage/lcov.info | coveralls'
3+
- 10
4+
script:
5+
- npm test

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Solid base for practising RxJS
22

3+
[![Build Status](https://travis-ci.org/code0wl/typescript-rxjs-webpack.svg?branch=master)](https://travis-ci.org/code0wl/typescript-rxjs-webpack)
4+
35
Use this playground to quickly scaffold a rxjs program that includes marble testing for scratchpad purposes
46

57
## Usage
@@ -11,7 +13,7 @@ npm start
1113
## TDD
1214

1315
```bash
14-
npm test
16+
npm run test:watch
1517
```
1618

1719
Project will start on the specified port with watch mode, enjoy!

Diff for: main.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
import { interval } from "rxjs";
2-
import { scan } from "rxjs/operators/";
2+
import { scan } from "rxjs/operators";
33

44
// ****
5-
//
65
// Welcome to your rxjs scratch pad 🤗
7-
//
86
// ****
97

108
const source = interval(2000);
11-
12-
const sourceMessage = x => `rxjs logo spun ${ x } times`;
139
const messageElement = document.querySelector('.message');
1410

15-
const log = x => (messageElement.textContent = x);
11+
const sourceMessage = x => `rxjs logo spun ${ x } times`;
12+
const log = x => messageElement.textContent = x;
1613

1714
source
1815
.pipe(scan((_, count) => count + 1, 0))

0 commit comments

Comments
 (0)