forked from VPNht/PopcornTime-VPN-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
73 lines (61 loc) · 1.93 KB
/
Gruntfile.coffee
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
module.exports = (grunt) ->
require('load-grunt-tasks')(grunt)
grunt.initConfig
useminPrepare:
html: "app/index.html"
options:
dest: "dist"
usemin:
html: ["dist/index.html"]
copy:
html:
src: 'app/index.html'
dest: "dist/index.html"
robots:
src: 'app/robots.txt'
dest: "dist/robots.txt"
app:
cwd: 'app/'
expand: true
src: ["img/**", "fonts/**"]
dest: "dist/"
misc:
cwd: 'misc/'
expand: true
src: ["linux","bin/*","config/*"]
dest: "dist/"
connect:
server:
options:
port: 8080
base: './dist'
watch:
coffee:
files: ['app/coffee/*']
tasks: ['build']
coffee:
compileBare:
options:
bare: true
files:
'app/js/app.js': ['app/coffee/app.coffee', 'app/coffee/_*.coffee']
filerev:
css:
src: "dist/css/app.css"
js:
src: "dist/js/app.js"
filerev_replace:
views:
options:
assets_root: '/'
src: 'dist/index.html'
htmlmin:
dist:
options:
removeComments: true
collapseWhitespace: true
files:
'dist/index.html': 'dist/index.html'
grunt.registerTask 'default', ['coffee']
grunt.registerTask 'develop', ['build', 'connect', 'watch']
grunt.registerTask 'build', ['default', 'useminPrepare', 'copy', 'concat', 'uglify', 'cssmin', 'filerev', 'filerev_replace','usemin','htmlmin']