-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
36 lines (32 loc) · 1.09 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
module.exports = function(grunt){
// loadnpmTasksで使用したいタスクを読み込んでおく
grunt.loadNpmTasks("grunt-contrib-uglify");
// initConfigで基本設定
grunt.initConfig({
uglify : {
min : {
files: {
"public/javascripts/oddsSystem/ugly.min.js" : [
"public/javascripts/oddsSystem/socket_event.js",
"public/javascripts/oddsSystem/video.js",
"public/javascripts/oddsSystem/video_layer.js",
"public/javascripts/oddsSystem/tableinfo_layer.js",
"public/javascripts/oddsSystem/settings.js",
"public/javascripts/oddsSystem/card_selector.js"
],
"public/javascripts/qrCodeReader/ugly.min.js" : [
"public/javascripts/qrCodeReader/video.js",
"public/javascripts/qrCodeReader/client.js"
],
"public/javascripts/forDealer/ugly.min.js" : [
"public/javascripts/forDealer/socket_event.js",
"public/javascripts/forDealer/forDealer.js"
]
}
}
}
});
// registerTask でタスクに名前をつける
// defaultでデフォルトのタスクを設定
grunt.registerTask("default", ["uglify"]);
};