Bazel is a powerful build tool created at Google.
It is rock solid and scales really well. (Bazel is an open source version of the tool used at Google. Facebook, Uber, Twitter all use similar tools.)
import {Component} from '@angular/core'; | |
@Component({ | |
selector: 'ttt-app', | |
template: ` | |
<ttt-game></ttt-game> | |
`, | |
}) | |
export class AppComponent { | |
} |
const source = Rx.Observable.of(1,2,3,4,5); | |
//transparently log values from source with 'do' | |
const example = source | |
.do(val => console.log(`BEFORE MAP: ${val}`)) | |
.map(val => val + 10) | |
.do(val => console.log(`AFTER MAP: ${val}`)); | |
//'do' does not transform values | |
//output: 11...12...13...14...15 | |
const subscribe = example.subscribe(val => console.log(val)); |
import 'babel-core/polyfill'; // so I can use Promises | |
import fetch from 'isomorphic-fetch'; // so I can use fetch() | |
function doSomething() { | |
return dispatch => | |
fetch( | |
'/api/something' | |
).then( | |
response => response.json() | |
).then( |
Bazel is a powerful build tool created at Google.
It is rock solid and scales really well. (Bazel is an open source version of the tool used at Google. Facebook, Uber, Twitter all use similar tools.)