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

Commit 5395764

Browse files
Updating to version 3
1 parent 78bb0db commit 5395764

28 files changed

+1342
-2710
lines changed

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
/content/
55
/tests/
66
/.jshintrc
7-
/.npmignore
7+
/.npmignore
8+
/src/

Gruntfile.js

Lines changed: 77 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,87 @@
11
module.exports = function (grunt) {
22

3-
grunt.initConfig({
4-
pkg: grunt.file.readJSON('package.json'),
5-
meta: {
6-
banner:
7-
'/*'+
8-
'Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.\r\n' +
9-
'Microsoft Open Technologies would like to thank its contributors, a list.\r\n' +
10-
'of whom are at http://aspnetwebstack.codeplex.com/wikipage?title=Contributors..\r\n' +
11-
'Licensed under the Apache License, Version 2.0 (the "License"); you.\r\n' +
12-
'may not use this file except in compliance with the License. You may.\r\n' +
13-
'obtain a copy of the License at.\r\n\r\n' +
14-
'http://www.apache.org/licenses/LICENSE-2.0.\r\n\r\n' +
15-
'Unless required by applicable law or agreed to in writing, software.\r\n' +
16-
'distributed under the License is distributed on an "AS IS" BASIS,.\r\n' +
17-
'WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or.\r\n' +
18-
'implied. See the License for the specific language governing permissions.\r\n' +
19-
'and limitations under the License..\r\n' +
20-
'*/'
21-
},
22-
concat: {
23-
basic: {
24-
src: [
25-
'src/license.js',
26-
'src/intro.js',
27-
'src/basicheader.js',
28-
'src/events-modern.js',
29-
'src/ajax.js',
30-
'src/jsonp.js',
31-
'src/websocket.js',
32-
'src/webworker.js',
33-
'src/mutationobserver.js',
34-
'src/requestanimationframescheduler.js',
35-
'src/mutationobserverscheduler.js',
36-
'src/geolocation.js',
37-
'src/outro.js'
38-
],
39-
dest: 'rx.dom.js'
40-
},
41-
compat: {
42-
src: [
43-
'src/license.js',
44-
'src/intro.js',
45-
'src/basicheader.js',
46-
'src/events.js',
47-
'src/ajax.js',
48-
'src/jsonp.js',
49-
'src/websocket.js',
50-
'src/webworker.js',
51-
'src/mutationobserver.js',
52-
'src/requestanimationframescheduler.js',
53-
'src/mutationobserverscheduler.js',
54-
'src/geolocation.js',
55-
'src/outro.js'
56-
],
57-
dest: 'rx.dom.compat.js'
58-
},
59-
},
60-
uglify: {
61-
basic: {
62-
src: ['<banner>', 'rx.dom.js'],
63-
dest: 'rx.dom.min.js'
64-
},
65-
compat: {
66-
src: ['<banner>', 'rx.dom.compat.js'],
67-
dest: 'rx.dom.compat.min.js'
68-
}
69-
},
70-
qunit: {
71-
all: ['tests/*.html']
3+
grunt.initConfig({
4+
pkg: grunt.file.readJSON('package.json'),
5+
meta: {
6+
banner:
7+
'/*'+
8+
'Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.\r\n' +
9+
'Microsoft Open Technologies would like to thank its contributors, a list.\r\n' +
10+
'of whom are at http://aspnetwebstack.codeplex.com/wikipage?title=Contributors..\r\n' +
11+
'Licensed under the Apache License, Version 2.0 (the "License"); you.\r\n' +
12+
'may not use this file except in compliance with the License. You may.\r\n' +
13+
'obtain a copy of the License at.\r\n\r\n' +
14+
'http://www.apache.org/licenses/LICENSE-2.0.\r\n\r\n' +
15+
'Unless required by applicable law or agreed to in writing, software.\r\n' +
16+
'distributed under the License is distributed on an "AS IS" BASIS,.\r\n' +
17+
'WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or.\r\n' +
18+
'implied. See the License for the specific language governing permissions.\r\n' +
19+
'and limitations under the License..\r\n' +
20+
'*/'
21+
},
22+
concat: {
23+
basic: {
24+
src: [
25+
'src/license.js',
26+
'src/intro.js',
27+
'src/basicheader.js',
28+
'src/ajax.js',
29+
'src/jsonp.js',
30+
'src/websocket.js',
31+
'src/webworker.js',
32+
'src/mutationobserver.js',
33+
'src/requestanimationframescheduler.js',
34+
'src/mutationobserverscheduler.js',
35+
'src/geolocation.js',
36+
'src/outro.js'
37+
],
38+
dest: 'dist/rx.dom.js'
7239
}
73-
});
40+
},
41+
uglify: {
42+
basic: {
43+
src: ['<banner>', 'dist/rx.dom.js'],
44+
dest: 'dist/rx.dom.min.js'
45+
}
46+
},
47+
qunit: {
48+
all: ['tests/*.html']
49+
}
50+
});
7451

75-
grunt.loadNpmTasks('grunt-contrib-concat');
76-
grunt.loadNpmTasks('grunt-contrib-uglify');
77-
grunt.loadNpmTasks('grunt-contrib-qunit');
78-
grunt.loadNpmTasks('grunt-contrib-jshint');
79-
grunt.loadNpmTasks('grunt-contrib-watch');
52+
// Load all "grunt-*" tasks
53+
require('load-grunt-tasks')(grunt);
8054

81-
grunt.registerTask('nuget', 'Register NuGet-RxJSDOM', function () {
82-
var done = this.async();
55+
grunt.registerTask('nuget', 'Register NuGet-RxJSDOM', function () {
56+
var done = this.async();
8357

84-
//invoke nuget.exe
85-
grunt.util.spawn({
86-
cmd: ".nuget/nuget.exe",
87-
args: [
88-
//specify the .nuspec file
89-
"pack",
90-
"nuget/RxJS-Bridges-HTML/RxJS-Bridges-HTML.nuspec",
58+
//invoke nuget.exe
59+
grunt.util.spawn({
60+
cmd: ".nuget/nuget.exe",
61+
args: [
62+
//specify the .nuspec file
63+
"pack",
64+
"nuget/RxJS-Bridges-HTML/RxJS-Bridges-HTML.nuspec",
9165

92-
//specify where we want the package to be created
93-
"-OutputDirectory",
94-
"nuget",
95-
96-
//override the version with whatever is currently defined in package.json
97-
"-Version",
98-
grunt.config.get("pkg").version
99-
]
100-
}, function (error, result) {
101-
if (error) {
102-
grunt.log.error(error);
103-
} else {
104-
grunt.log.write(result);
105-
}
66+
//specify where we want the package to be created
67+
"-OutputDirectory",
68+
"nuget",
10669

107-
done();
108-
});
109-
});
70+
//override the version with whatever is currently defined in package.json
71+
"-Version",
72+
grunt.config.get("pkg").version
73+
]
74+
}, function (error, result) {
75+
if (error) {
76+
grunt.log.error(error);
77+
} else {
78+
grunt.log.write(result);
79+
}
11080

111-
// Default task(s).
112-
grunt.registerTask('default', ['concat:basic', 'concat:compat', 'uglify:basic', 'uglify:compat', 'qunit']);
81+
done();
82+
});
83+
});
84+
85+
// Default task(s).
86+
grunt.registerTask('default', ['concat:basic', 'uglify:basic', 'qunit']);
11387
};

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rxjs-dom",
3-
"version": "2.0.9",
3+
"version": "3.0.0",
44
"main": [
55
"rx.dom.js",
66
"rx.dom.compat.js"

0 commit comments

Comments
 (0)