-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
81 lines (79 loc) · 2.47 KB
/
Gruntfile.js
File metadata and controls
81 lines (79 loc) · 2.47 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//Gruntfile
module.exports = function(grunt) {
//Initializing the configuration object
grunt.initConfig({
less: {
development: {
options: {
compress: false
},
files: {
"tmpl_pason/css/template.css":"tmpl_pason/less/template.less"
}
}
},
watch: {
js_frontend: {
files: [
'media/jui/js/jquery.js',
'media/jui/js/html5.js',
],
tasks: ['concat']
},
less: {
files: ['templates/tmpl_pason/less/*.less'], //watched files
tasks: ['less'], //tasks to run
options: {
// livereload: true //reloads the browser
}
}
},
concat: {
options: {
separator: ';'
},
js_frontend: {
src: [
'media/jui/js/jquery.js',
'media/jui/js/html5.js',
],
dest: 'templates/tmpl_restonic/js/frontend.js'
},
home: {
src: [
'templates/tmpl_restonic/js/jquery.flexslider.js',
'templates/tmpl_restonic/js/main.js',
],
dest: 'templates/tmpl_restonic/js/home.js'
}
},
uglify: {
options: {
mangle: false // Use if you want the names of your functions and variables unchanged
},
frontend: {
files: {
'media/pinit/restonicpins.prod.js': 'media/pinit/restonicpins.js'
}
}
},
compress: {
main: {
options: {
archive: 'companytmpl.zip'
},
files: [
{expand: true, cwd: 'templates/companytmpl/', src: ['**'], dest: 'companytmpl/'}
]
}
}
});
// Plugin loading
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
// grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-uglify');
// Task definition
grunt.registerTask('default', ['watch']);
};