훌륭한 리더는 어떤 일을 시도해보라는 공식적인 허락을 기다리지 않는다. 무능한 중간관리자는 '공식적인 허락을 받지 못했으니 난 그 일을 할 수 없어'라고 생각하지만 훌륭한 관리자는 '공식적으로 하지 말라는 지시가 없었으니까 할 수 있어'라고 생각한다. 이것이 관점의 차이다. - 콜린 파월, 전 미국 국무 장관
성과는 문제를 해결함으로써가 아니라 새로운 기회를 개발함으로써 얻어집니다. 주어진 일에 반응하는(Reactive) 사람과 주도적으로 새로운 일을 개척해나가는 적극적이고 능동적인(Active) 사람, 둘 중 하나를 선택하는 순간 나의 미래 운명이 결정됩니다.
Reactive Extensions Library for JavaScript. This is a rewrite of Reactive-Extensions/RxJS and is the latest production-ready version of RxJS. This rewrite is meant to have better performance, better modularity, better debuggable call stacks, while staying mostly backwards compatible, with some breaking changes that reduce the API surface.
master - commits that will be included in the next minor or patch release
next - commits that will be included in the next major release (breaking changes)
Most PRs should be made to master, unless you know it is a breaking change.
Important
By contributing or commenting on issues in this repository, whether you've read them or not, you're agreeing to the Contributor Code of Conduct. Much like traffic laws, ignorance doesn't grant you immunity.
Installation and Usage
ES6 via npm
npm install rxjs
To import the entire core set of functionality:
importRxfrom'rxjs/Rx';
Rx.Observable.of(1,2,3)
To import only what you need by patching (this is useful for size-sensitive bundling):
Provide more modular file structure in a variety of formats
Provide more debuggable call stacks than preceding versions of RxJS
Building/Testing
The build and test structure is fairly primitive at the moment. There are various npm scripts that can be run:
build_es6: Transpiles the TypeScript files from src/ to dist/es6
build_cjs: Transpiles the ES6 files from dist/es6 to dist/cjs
build_amd: Transpiles the ES6 files from dist/es6 to dist/amd
build_global: Transpiles/Bundles the CommonJS files from dist/cjs to dist/global/Rx.js
build_all: Performs all of the above in the proper order.
build_test: builds ES6, then CommonJS, then runs the tests with jasmine
build_perf: builds ES6, CommonJS, then global, then runs the performance tests with protractor
build_docs: generates API documentation from dist/es6 to dist/docs
build_cover: runs istanbul code coverage against test cases
test: runs tests with jasmine, must have built prior to running.
tests2png: generates PNG marble diagrams from test cases.
npm run info will list available script.
Example
# build all the things!
npm run build_all
Performance Tests
Run npm run build_perf or npm run perf to run the performance tests with protractor. Run npm run perf_micro to run micro performance test benchmarking operator.
Adding documentation
RxNext uses ESDoc to generate API documentation. Refer to ESDoc's documentation for syntax. Run npm run build_docs to generate.
Generating PNG marble diagrams
The script npm run tests2png requires some native packages installed locally: imagemagick, graphicsmagick, and ghostscript.