-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
35 lines (33 loc) · 1.18 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
dist: {
files: {
'build/CommonVariable.min.js': ['src/CommonVariable.js'],
'build/TainanBus.min.js': ['src/TainanBus.js'],
'build/TainanBusDiv.min.js': ['src/TainanBusDiv.js'],
'build/TainanBusRender.min.js': ['src/TainanBusRender.js']
}
}
},
cssmin: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
add_banner: {
files: {
'build/Tbus.min.css': ['src/TBus.css'],
'build/TDivbus.min.css': ['src/TDivBus.css']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', ['uglify','cssmin']);
};