Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit 020034f

Browse files
Adding core modules
1 parent 73ae54d commit 020034f

File tree

42 files changed

+3697
-55
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3697
-55
lines changed

Gruntfile.js

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2399,6 +2399,39 @@ module.exports = function (grunt) {
23992399
'dist/rx.lite.extras.compat.min.js'
24002400
],
24012401
dest: 'modules/rx-lite-extras-compat/'
2402+
},
2403+
'core': {
2404+
flatten: true,
2405+
filter: 'isFile',
2406+
expand: true,
2407+
src: [
2408+
'dist/rx.core.js',
2409+
'dist/rx.core.map',
2410+
'dist/rx.core.min.js'
2411+
],
2412+
dest: 'modules/rx-core/'
2413+
},
2414+
'core-binding': {
2415+
flatten: true,
2416+
filter: 'isFile',
2417+
expand: true,
2418+
src: [
2419+
'dist/rx.core.binding.js',
2420+
'dist/rx.core.binding.map',
2421+
'dist/rx.core.binding.min.js'
2422+
],
2423+
dest: 'modules/rx-core-binding/'
2424+
},
2425+
'core-testing': {
2426+
flatten: true,
2427+
filter: 'isFile',
2428+
expand: true,
2429+
src: [
2430+
'dist/rx.core.testing.js',
2431+
'dist/rx.core.testing.map',
2432+
'dist/rx.core.testing.min.js'
2433+
],
2434+
dest: 'modules/rx-core-testing/'
24022435
}
24032436
}
24042437
});
@@ -2597,7 +2630,10 @@ module.exports = function (grunt) {
25972630
'copy:lite',
25982631
'copy:lite-compat',
25992632
'copy:lite-extras',
2600-
'copy:lite-extras-compat'
2633+
'copy:lite-extras-compat',
2634+
'copy:core',
2635+
'copy:core-binding',
2636+
'copy:core-testing',
26012637
]);
26022638

26032639
// Default task
@@ -2690,6 +2726,9 @@ module.exports = function (grunt) {
26902726
'copy:lite-compat',
26912727
'copy:lite-extras',
26922728
'copy:lite-extras-compat',
2729+
'copy:core',
2730+
'copy:core-binding',
2731+
'copy:core-testing',
26932732

26942733
'qunit'
26952734
]);

doc/libraries/core/rx.core.binding.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Files:
88
- [`rx.core.binding.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.core.binding.js)
99

1010
NPM Packages:
11-
- _None_
11+
- [`rx-core-binding`](https://www.npmjs.com/package/rx-core-binding)
1212

1313
NuGet Packages:
1414
- _None_
@@ -22,23 +22,23 @@ NuGet Dependencies:
2222
## Included Observable Operators ##
2323

2424
### `Observable Instance Methods`
25-
- [`connect`](../../api/core/operators/connect.md)
26-
- [`publish`](../../api/core/operators/publish.md)
27-
- [`publishLast`](../../api/core/operators/publishlast.md)
28-
- [`publishValue`](../../api/core/operators/publishvalue.md)
29-
- [`refCount`](../../api/core/operators/refcount.md)
30-
- [`replay`](../../api/core/operators/replay.md)
31-
- [`share`](../../api/core/operators/share.md)
32-
- [`shareLast`](../../api/core/operators/sharelast.md)
33-
- [`shareReplay`](../../api/core/operators/sharereplay.md)
34-
- [`shareValue`](../../api/core/operators/sharevalue.md)
35-
- [`singleInstance`](../../api/core/operators/singleinstance.md)
25+
- [`connect`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/connect.md)
26+
- [`publish`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/publish.md)
27+
- [`publishLast`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/publishlast.md)
28+
- [`publishValue`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/publishvalue.md)
29+
- [`refCount`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/refcount.md)
30+
- [`replay`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/replay.md)
31+
- [`share`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/share.md)
32+
- [`shareLast`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/sharelast.md)
33+
- [`shareReplay`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/sharereplay.md)
34+
- [`shareValue`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/sharevalue.md)
35+
- [`singleInstance`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/singleinstance.md)
3636

3737
## Included Classes ##
3838

3939
### Subjects
4040

41-
- [`Rx.AsyncSubject`](../../api/subjects/asyncsubject.md)
42-
- [`Rx.Subject`](../../api/subjects/subject.md)
43-
- [`Rx.BehaviorSubject`](../../api/core/observable.mdapi/subjects/behaviorsubject.md)
44-
- [`Rx.ReplaySubject`](../../api/core/observable.mdapi/subjects/replaysubject.md)
41+
- [`Rx.AsyncSubject`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/asyncsubject.md)
42+
- [`Rx.Subject`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/subject.md)
43+
- [`Rx.BehaviorSubject`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/observable.mdapi/subjects/behaviorsubject.md)
44+
- [`Rx.ReplaySubject`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/observable.mdapi/subjects/replaysubject.md)

doc/libraries/core/rx.core.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Files:
88
- [`rx.core.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.core.js)
99

1010
NPM Packages:
11-
- _None_
11+
- [`rx-core`](https://www.npmjs.com/package/rx-core)
1212

1313
NuGet Packages:
1414
- _None_
@@ -17,19 +17,19 @@ NuGet Packages:
1717

1818
### Core Objects
1919

20-
- [`Rx.Observer`](../../api/core/observer.md)
21-
- [`Rx.Observable`](../../api/core/observable.md)
20+
- [`Rx.Observer`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/observer.md)
21+
- [`Rx.Observable`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/observable.md)
2222

2323
### `Observable Methods`
24-
- [`create`](../../api/core/operators/create.md)
24+
- [`create`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/create.md)
2525

2626
### Schedulers
2727

28-
- [`Rx.Scheduler`](../../api/schedulers/scheduler.md)
28+
- [`Rx.Scheduler`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/schedulers/scheduler.md)
2929

3030
### Disposables
3131

32-
- [`Rx.CompositeDisposable`](../../api/disposables/compositedisposable.md)
33-
- [`Rx.Disposable`](../../api/disposables/disposable.md)
34-
- [`Rx.SerialDisposable`](../../api/disposables/serialdisposable.md)
35-
- [`Rx.SingleAssignmentDisposable`](../../api/disposables/singleassignmentdisposable.md)
32+
- [`Rx.CompositeDisposable`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/disposables/compositedisposable.md)
33+
- [`Rx.Disposable`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/disposables/disposable.md)
34+
- [`Rx.SerialDisposable`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/disposables/serialdisposable.md)
35+
- [`Rx.SingleAssignmentDisposable`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/disposables/singleassignmentdisposable.md)

doc/libraries/core/rx.core.testing.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Files:
88
- [`rx.testing.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.core.testing.js)
99

1010
NPM Packages:
11-
- _None_
11+
- [`rx-core-testing`](https://www.npmjs.com/package/rx-core-testing)
1212

1313
NuGet Packages:
1414
- _None_
@@ -23,15 +23,15 @@ NuGet Dependencies:
2323

2424
### Core Objects
2525

26-
- [`Rx.Notification`](../../api/core/notification.md)
26+
- [`Rx.Notification`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/notification.md)
2727

2828
### Schedulers
2929

30-
- [`Rx.TestScheduler`](../../api/testing/testscheduler.md)
31-
- [`Rx.VirtualTimeScheduler`](../../api/schedulers/virtualtimescheduler.md)
30+
- [`Rx.TestScheduler`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/testing/testscheduler.md)
31+
- [`Rx.VirtualTimeScheduler`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/schedulers/virtualtimescheduler.md)
3232

3333
### Testing Classes
3434

35-
- [`Rx.ReactiveTest`](../../api/testing/reactivetest.md)
36-
- [`Rx.Recorded`](../../api/testing/recorded.md)
37-
- [`Rx.Subscription`](../../api/testing/subscription.md)
35+
- [`Rx.ReactiveTest`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/testing/reactivetest.md)
36+
- [`Rx.Recorded`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/testing/recorded.md)
37+
- [`Rx.Subscription`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/testing/subscription.md)

modules/publish.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var fs = require('fs');
2+
var execSync = require('child_process').execSync,
3+
4+
var files = fs.readdirSync(process.cwd());
5+
for (var i = 0; i < files.length; i++) {
6+
var file = files[i];
7+
var stat = fs.statSync(file);
8+
if (stat.isDirectory()) {
9+
execSync('npm publish ' + file);
10+
}
11+
}

modules/rx-core-binding/package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "rx-core-binding",
3+
"title": "Reactive Extensions for JavaScript (RxJS) Core",
4+
"description": "Core binding library for composing asynchronous and event-based operations in JavaScript",
5+
"version": "3.0.0",
6+
"homepage": "https://github.com/Reactive-Extensions/RxJS",
7+
"author": {
8+
"name": "Cloud Programmability Team",
9+
"url": "https://github.com/Reactive-Extensions/RxJS/blob/master/authors.txt"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/Reactive-Extensions/RxJS.git"
14+
},
15+
"licenses": [
16+
{
17+
"type": "Apache License, Version 2.0",
18+
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
19+
}
20+
],
21+
"bugs": "https://github.com/Reactive-Extensions/RxJS/issues",
22+
"jam": {
23+
"main": "rx.core.binding.js"
24+
},
25+
"browser": {
26+
"index.js": "rx.core.binding.js"
27+
},
28+
"dependencies": {
29+
"rx-core": "*"
30+
},
31+
"devDependencies": {},
32+
"keywords": [
33+
"React",
34+
"Reactive",
35+
"Events",
36+
"Rx",
37+
"RxJS"
38+
],
39+
"main": "rx.core.binding.js"
40+
}

modules/rx-core-binding/readme.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# RxJS Core Binding Module #
2+
3+
The Reactive Extensions for JavaScript has a notion of hot and cold observables. Hot observables fire whether you are listening to them or not, such as mouse movements. Cold observables on the other hand, such as a sequence created from an array will fire the same sequence to all subscribers. The Core Binding module gives you the ability to replay events for hot observables, and to turn cold observables into hot observables. The primary use case is for those who are implementing libraries compatible with RxJS to be able to handle hot and cold observables.
4+
5+
## Details ##
6+
7+
Files:
8+
- [`rx.core.binding.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.core.binding.js)
9+
10+
NPM Packages:
11+
- [`rx-core-binding`](https://www.npmjs.com/package/rx-core-binding)
12+
13+
NuGet Packages:
14+
- _None_
15+
16+
File Dependencies:
17+
- [`rx.core.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.core.js)
18+
19+
NuGet Dependencies:
20+
- _None_
21+
22+
## Included Observable Operators ##
23+
24+
### `Observable Instance Methods`
25+
- [`connect`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/connect.md)
26+
- [`publish`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/publish.md)
27+
- [`publishLast`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/publishlast.md)
28+
- [`publishValue`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/publishvalue.md)
29+
- [`refCount`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/refcount.md)
30+
- [`replay`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/replay.md)
31+
- [`share`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/share.md)
32+
- [`shareLast`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/sharelast.md)
33+
- [`shareReplay`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/sharereplay.md)
34+
- [`shareValue`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/sharevalue.md)
35+
- [`singleInstance`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/singleinstance.md)
36+
37+
## Included Classes ##
38+
39+
### Subjects
40+
41+
- [`Rx.AsyncSubject`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/asyncsubject.md)
42+
- [`Rx.Subject`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/subject.md)
43+
- [`Rx.BehaviorSubject`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/observable.mdapi/subjects/behaviorsubject.md)
44+
- [`Rx.ReplaySubject`](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/observable.mdapi/subjects/replaysubject.md)

0 commit comments

Comments
 (0)