-
Notifications
You must be signed in to change notification settings - Fork 34
/
Gruntfile.js
50 lines (44 loc) · 1.3 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
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
// watch our project for changes
watch: {
less: {
files: ['public/assets/less/**/*'],
tasks: ['less']
},
livereload: {
options: { livereload: true },
files: ['public/assets/**/*', 'admin/assets/**/*', '**/*.html', '**/*.php', 'public/assets/img/**/*.{png,jpg,jpeg,gif,webp,svg}']
}
},
// less compiling
less: {
publicLess: {
options: {
paths: ["public/assets/less/**/*"],
cleancss:true
},
files: {
"public/assets/css/idea-factory.css": "public/assets/less/master.less"
}
}
},
// concatenation and minification all in one
uglify: {
publicscripts: {
files: {
'public/assets/js/idea-factory.js': [
'public/assets/js/transition.js',
'public/assets/js/modal.js',
'public/assets/js/load-posts.js',
'public/assets/js/general.js'
]
}
}
},
});
// register task
grunt.registerTask('default', ['watch']);
};