forked from lipis/flag-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
44 lines (36 loc) · 950 Bytes
/
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
module.exports = (grunt)->
less = 'less'
TARGET_DIR = 'css'
grunt.initConfig
less:
flag:
src: 'less/flag-icon.less'
dest: 'css/flag-icon.css'
docs:
src: 'assets/docs.less'
dest: 'assets/docs.css'
cssmin:
flag:
src: 'css/flag-icon.css'
dest: 'css/flag-icon.min.css'
watch:
css:
options:
livereload: true
files: '**/*.less'
tasks: ['build']
assets:
options:
livereload: true
files: ['index.html', 'assets/*']
connect:
server:
options:
port: 8000
keepalive: true
grunt.loadNpmTasks 'grunt-contrib-less'
grunt.loadNpmTasks 'grunt-contrib-cssmin'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-connect'
grunt.registerTask 'build', ['less', 'cssmin']
grunt.registerTask 'default', ['build', 'watch']