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 18
/
Gruntfile.js
78 lines (74 loc) · 3.1 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
71
72
73
74
75
76
77
78
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/core/license.js',
'src/core/intro.js',
'src/core/basicheader.js',
'src/core/internal/inherits.js',
'src/core/internal/deepEquals.js',
'src/core/internal/dictionary.js',
'src/core/internal/lookup.js',
'src/core/enumerator.js',
'src/core/enumerable.js',
'src/core/exports.js',
'src/core/outro.js'
],
dest: 'l2o.js'
},
ixJS: {
src: [
'src/core/license.js',
'src/core/subintro.js',
'src/core/ixheader.js',
'src/core/Interactive/aggregates.js',
'src/core/Interactive/buffering.js',
'src/core/Interactive/creation.js',
'src/core/Interactive/single.js',
'src/core/Interactive/exception.js',
'src/core/Interactive/imperative.js',
'src/core/suboutro.js'
],
dest: 'ix.js'
}
},
uglify: {
basic: {
src: ['<banner>', 'l2o.js'],
dest: 'l2o.min.js'
},
ixJS: {
src: ['<banner>', 'ix.js'],
dest: 'ix.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', 'concat:ixJS', 'uglify:basic', 'uglify:ixJS', 'qunit']);
};