/
Gruntfile.js
56 lines (51 loc) · 1.57 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
/* created by - shivam gupta 20/11/2016 */
module.exports = function(grunt){
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
uglify: {
my_target: {
options: {
mangle : false,
beautify : true
},
files: {
'dest/tflib.controls.min.js': [
'initialize/initialize.js',
'methods/*.js',
'constants/TFConstants.js',
'validations/TFValidations.js',
'components/TFButton.js',
'components/TFCheckbox.js',
'components/TFCheckboxField.js',
'components/TFContainer.js',
'components/TFIterator.js',
'components/TFRadio.js',
'components/TFRadioField.js',
'components/TFTextAreaField.js',
'components/TFTextfield.js',
'components/TFLoader.js',
'components/TFComboboxField.js'
],
'dest/tflib.popups.min.js': [
'initialize/initializePopup.js',
'constants/TFConstants.js',
'popups/TFModalPopup.js',
'popups/TFStandardPopup.js',
'common/TFDraggable.js'
]
}
}
},
jsdoc : {
dist: {
src : ['constants/*.js','components/*.js','methods/*.js','validations/*.js', 'popups/*.js'],
options : {
destination: 'doc'
}
}
}
});
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default',['uglify', 'jsdoc']);
};