-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
executable file
·80 lines (69 loc) · 2.34 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
module.exports = function(grunt) {
grunt.initConfig({
//AÇÕES
uglify: {
'build/js/scripts.js' : ['src/js/drLib.js','src/js/drHexagramModule.js','src/js/decksModule.js','src/js/drApp.js']
},
// concat: {
// dist: {
// src: ['src/js/drLib.js','src/js/drHexagramModule.js','src/js/decksModule.js','src/js/drApp.js'],
// dest: "build/js/scripts.js"
// }
// },
sass : {
'build/css/estilo.css' : 'src/css/main.scss'
},
cssmin : {
'build/css/estilo.css' : 'build/css/estilo.css'
},
htmlmin: {
dist: {
options: {
removeComments: true,
collapseWhitespace: true
},
files: {
'build/index.php' : 'src/index.php',
'build/header.php' : 'src/header.php',
'build/footer.php' : 'src/footer.php',
'build/read-decks.php' : 'src/read-decks.php',
'build/edit-deck.php' : 'src/edit-deck.php',
'build/delete.php' : 'src/delete.php',
'build/edit-card.php' : 'src/edit-card.php',
'build/end-game.php' : 'src/end-game.php',
'build/game-history.php' : 'src/game-history.php',
'build/game.php' : 'src/game.php',
'build/pause-game.php' : 'src/pause-game.php',
'build/edit-read-cards.php' : 'src/edit-read-cards.php',
'build/read-decks.php' : 'src/read-decks.php',
'build/read-profile.php' : 'src/read-profile.php',
'build/select-level.php' : 'src/select-level.php',
'build/trash.php' : 'src/trash.php',
'build/Lib.php' : 'src/Lib.php',
}
}
},
watch : {
dist : {
files : [
'src/*',
'src/**/*',
'src/js/**/*',
'src/css/**/*'
],
tasks : [ 'uglify' , 'sass' , 'htmlmin' , 'cssmin' ]
}
}
//fim - ACOES
});
// Plugins
//grunt.loadNpmTasks( 'grunt-contrib-concat' );
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
grunt.loadNpmTasks( 'grunt-contrib-sass' );
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
grunt.loadNpmTasks( 'grunt-contrib-htmlmin' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
// Tarefas
grunt.registerTask( 'default', [ 'concat' , 'uglify' , 'sass' , 'htmlmin' , 'cssmin' ] );
grunt.registerTask( 'w', [ 'watch' ] );
};