This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Gruntfile.js
70 lines (65 loc) · 2.66 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = function (grunt) {
grunt.initConfig({
meta: {
banner:
'/*'+
'Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.\r\n' +
'Microsoft Open Technologies would like to thank its contributors, a list.\r\n' +
'of whom are at http://aspnetwebstack.codeplex.com/wikipage?title=Contributors..\r\n' +
'Licensed under the Apache License, Version 2.0 (the "License"); you.\r\n' +
'may not use this file except in compliance with the License. You may.\r\n' +
'obtain a copy of the License at.\r\n\r\n' +
'http://www.apache.org/licenses/LICENSE-2.0.\r\n\r\n' +
'Unless required by applicable law or agreed to in writing, software.\r\n' +
'distributed under the License is distributed on an "AS IS" BASIS,.\r\n' +
'WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or.\r\n' +
'implied. See the License for the specific language governing permissions.\r\n' +
'and limitations under the License..\r\n' +
'*/'
},
concat: {
options: {
separator: ''
},
basic: {
src: [
'src/license.js',
'src/intro.js',
'src/basicheader.js',
'src/events.js',
'src/promise.js',
'src/binding.js',
'src/mutationobserver.js',
'src/websocket.js',
'src/webworker.js',
'src/geolocation.js',
'src/sensor.js',
'src/accelerometer.js',
'src/compass.js',
'src/gyrometer.js',
'src/lightsensor.js',
'src/orientationsensor.js',
'src/simpleorientationsensor.js',
'src/requestanimationframescheduler.js',
'src/mutationobserverscheduler.js',
'src/outro.js'
],
dest: 'rx.winjs.js'
}
},
uglify: {
basic: {
src: ['<banner>', 'rx.winjs.js'],
dest: 'rx.winjs.min.js'
}
},
qunit: {
all: ['tests/*.html']
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-qunit');
// Default task(s).
grunt.registerTask('default', ['concat:basic', 'uglify:basic']);
};