-
Notifications
You must be signed in to change notification settings - Fork 6
/
Gruntfile.js
61 lines (54 loc) · 1.78 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
/**************************************************************************************
Grunt configuration file
Grunt is a taks runner that performs various common actions. In this case, the
grunt configuration below is used to lint the text using jshint and to concatenate
the various files together into the single 'index.js' file which is executed
**************************************************************************************/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
js: {
files: [
'src/*.js',
'Gruntfile.js'
],
tasks: ['jshint', 'concat']
}
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: ['src/*.js']
},
concat: {
options: {
separator: ';',
},
dist: {
src: ['src/aria_intro.js', 'src/aria_call.js', 'src/twiml_answer.js',
'src/twiml_say.js', 'src/twiml_play.js', 'src/twiml_gather.js',
'src/twiml_pause.js', 'src/twiml_record.js', 'src/twiml_dial.js',
'src/twiml_bridge.js', 'src/twiml_hold.js', 'src/twiml_unhold.js',
'src/twiml_reject.js', 'src/twiml_hangup.js', 'src/twiml_redirect.js',
'src/aria.js'],
dest: './index.js',
},
},
execute: {
target: {
src: ['index.js']
}
}
});
// Load the Grunt plugins.
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-execute');
// Register the default tasks.
grunt.registerTask('default', ['concat', 'execute']);
};