forked from handsontable/handsontable
/
grunt.js
57 lines (49 loc) · 1.45 KB
/
grunt.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
/**
* This file is used to build ``jquery.handsontable.js` from `src/*`
*
* Usage: Install Grunt, then go to repo main directory and execute `grunt`
* To execute automatically after each change, execute `grunt --force default watch`
*
* See https://github.com/cowboy/grunt for more information
*/
module.exports = function (grunt) {
grunt.initConfig({
concat: {
dist: {
src: [
'src/intro.js',
'src/core.js',
'src/tableView.js',
'src/helpers.js',
'src/border.js',
'src/fillHandle.js',
'src/undoRedo.js',
'src/blockedRows.js',
'src/blockedCols.js',
'src/rowHeader.js',
'src/colHeader.js',
'src/renderers/textRenderer.js',
'src/renderers/autocompleteRenderer.js',
'src/renderers/checkboxRenderer.js',
'src/editors/textEditor.js',
'src/editors/autocompleteEditor.js',
'src/editors/checkboxEditor.js',
'src/cellTypes.js',
'src/pluginHooks.js',
'src/plugins/contextMenu.js',
'src/3rdparty/jquery.autoresize.js',
'src/3rdparty/jquery.mousewheel.js',
'src/3rdparty/sheetclip.js',
'src/outro.js'
],
dest: 'jquery.handsontable.js'
}
},
watch: {
files: ['<config:concat.dist.src>'],
tasks: 'concat'
}
});
// Default task.
grunt.registerTask('default', 'concat');
};