-
Notifications
You must be signed in to change notification settings - Fork 33
/
Gruntfile.js
53 lines (44 loc) · 1.48 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
'use strict';
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-beep');
// Define the configuration for all the tasks
grunt.initConfig({
uglify: {
my_target: {
files: {
'Assets/build/contactclient.min.js': ['Assets/js/libraries/*.js', 'Assets/js/libraries/jquery-ui/*.js', 'Assets/js/*.js']
}
}
},
cssmin: {
options: {
mergeIntoShorthands: false,
roundingPrecision: -1,
sourceMap: true,
root: 'Assets/build/'
},
target: {
files: {
'Assets/build/contactclient.min.css': ['Assets/css/libraries/*.css', 'Assets/css/libraries/jquery-ui/*.css', 'Assets/css/*.css']
}
}
},
watch: {
js: {
files: ['Assets/js/libraries/*.js', 'Assets/js/*.js'],
tasks: ['uglify', 'beep']
},
css: {
files: ['Assets/css/libraries/*.css', 'Assets/css/*.css'],
tasks: ['cssmin', 'beep']
}
}
});
grunt.registerTask('default', ['uglify', 'cssmin']);
};