forked from w8tcha/CKEditor-AutoSave-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
51 lines (43 loc) · 1002 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Build process for CKEditor AutoSave Plugin
* This file contributed by Timm Stokke <[email protected]>
*
* Don't know where to start?
* Try: http://24ways.org/2013/grunt-is-not-weird-and-hard/
*/
module.exports = function(grunt) {
// CONFIGURATION
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Minimize JS
min: {
options: {
report: false
},
difflib: {
src: [
'autosave/js/difflib.js',
'autosave/js/diffview.js',
'autosave/js/jsdiff.js',
'autosave/js/moment.js',
'autosave/js/lz-string-1.3.3.js'
],
dest: 'autosave/js/extensions.min.js',
}
},
// CSS Minify
cssmin: {
combine: {
files: {
'autosave/css/autosave.min.css': ['autosave/css/autosave.css']
}
}
},
});
// PLUGINS
grunt.loadNpmTasks('grunt-yui-compressor');
grunt.registerTask('default', [
'min',
'cssmin'
]);
};