forked from kaazing/kaazing-amqp-0-9-1-client-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
110 lines (91 loc) · 3.62 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
clean : {
dist : {
src : [ 'dist/' ]
},
},
concat : {
amqp : {
src : [
// kaazing-client-javascript-util files
'bower_components/kaazing-client-javascript-util/KaazingNamespace.js',
'bower_components/kaazing-client-javascript-util/Logger.js',
'bower_components/kaazing-client-javascript-util/Utils.js',
'bower_components/kaazing-client-javascript-util/Browser.js',
'bower_components/kaazing-client-javascript-util/ByteOrder.js',
'bower_components/kaazing-client-javascript-util/ByteBuffer.js',
'bower_components/kaazing-client-javascript-util/Charset.js',
'bower_components/kaazing-client-javascript-util/URI.js',
// Amqp-0-9-1 files
'src/amqp/internal/AmqpClientVariables.js',
'src/amqp/internal/AmqpNamespace.js',
'src/amqp/internal/AmqpRequireJSModule.js',
'src/amqp/EventDispatcher.js',
'src/amqp/internal/AmqpClientStartClosure.js',
'src/amqp/internal/StateMachine.js',
'src/amqp/internal/AsyncClient.js',
'src/amqp/internal/AmqpConstants.js',
'src/amqp/internal/AmqpDomains.js',
'src/amqp/internal/AmqpMethods.js',
'src/amqp/internal/AmqpInternalFields.js',
'src/amqp/internal/AmqpBuffer.js',
'src/amqp/AmqpClient.js',
'src/amqp/AmqpChannel.js',
'src/amqp/internal/ActionList.js',
'src/amqp/internal/AmqpClientEndClosure.js',
'src/amqp/AmqpArguments.js',
'src/amqp/AmqpProperties.js',
'src/amqp/AmqpEvent.js',
'src/amqp/AmqpClientFactory.js', ],
dest : 'dist/javascript/Amqp-0-9-1-debug.js'
},
},
uglify: {
amqpMin: {
files: {
// Generating Amqp-0-9-1-min.js
'dist/javascript/Amqp-0-9-1.js': ['dist/javascript/Amqp-0-9-1-debug.js']
},
},
},
copy : {
client_js: {
cwd: 'bower_components/kaazing-client-javascript/js',
src: '**',
dest: 'dist/javascript/',
expand: true,
},
demo : {
cwd : 'demo',
src : '**',
dest : 'dist/javascript/',
expand : true,
},
},
jsdoc: {
dist: {
src: ['dist/javascript/*-debug.js'],
dest: 'dist/jsdoc',
options: {
private: false
}
}
},
karma: {
test: {
configFile: 'test/karma.config.js'
},
},
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', [ 'clean', 'concat', 'uglify', 'copy', 'jsdoc' ]);
grunt.registerTask('test', [ 'karma' ]);
};