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 2
/
Gruntfile.js
55 lines (51 loc) · 1.9 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
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: {
basic: {
src: [
'src/license.js',
'src/intro.js',
'src/on.js',
'src/request.js',
'src/request/xhr.js',
'src/request/script.js',
'src/outro.js'
],
dest: 'dist/rx.dojo.js'
}
},
uglify: {
basic: {
src: ['<banner>', 'dist/rx.dojo.js'],
dest: 'dist/rx.dojo.min.js'
}
},
qunit: {
all: ['tests/*.html']
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task(s).
grunt.registerTask('default', ['concat:basic', 'uglify:basic']);
};