forked from NicolasCARPi/jquery_jeditable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
32 lines (29 loc) · 966 Bytes
/
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
/**
* Gruntfile.js
*
* Run 'grunt' in shell to minify javascript
*
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= pkg.homepage %> */\n',
mangle: false
},
dist: {
files: {
'dist/jquery.jeditable.min.js': 'src/jquery.jeditable.js',
'dist/jquery.jeditable.autogrow.min.js': 'src/jquery.jeditable.autogrow.js',
'dist/jquery.jeditable.charcounter.min.js': 'src/jquery.jeditable.charcounter.js',
'dist/jquery.jeditable.datepicker.min.js': 'src/jquery.jeditable.datepicker.js',
'dist/jquery.jeditable.masked.min.js': 'src/jquery.jeditable.masked.js',
'dist/jquery.jeditable.time.min.js': 'src/jquery.jeditable.time.js',
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify-es');
grunt.registerTask('default', 'uglify');
};