forked from fulup-bzh/DatePicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
56 lines (52 loc) · 1.15 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
54
55
56
/*globals module, require, process */
/*jslint vars:true */
module.exports = function (grunt) {
'use strict';
// Default task.
grunt.registerTask('build', ['sass','uglify']);
grunt.registerTask('default', ['build','watch']);
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// SASS plugin is used for CSS
sass: {
dist: {
options: {
outputStyle: 'compressed'
},
files: {
'dist/bzm-date-picker.css': ['src/scss/app.scss']
}
}
},
uglify: {
options: {
compress: {
drop_console: true
}
},
target: {
files: {
'dist/bzm-date-picker.min.js': ['src/js/*.js']
}
}
},
watch: {
grunt: {
files: ['Gruntfile.js'],
task: ['build']
},
sass: {
files: ['src/scss/*.scss'],
tasks: ['sass']
},
uglify: {
files: ['src/js/*.js'],
tasks: ['uglify']
}
}
});
};