0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-28 17:32:12 +01:00
flags/Gruntfile.coffee

45 lines
950 B
CoffeeScript
Raw Normal View History

2013-09-24 12:02:48 +02:00
module.exports = (grunt)->
2015-12-23 23:45:33 +01:00
less = 'less'
TARGET_DIR = 'css'
2013-09-24 12:02:48 +02:00
grunt.initConfig
less:
2015-12-23 23:45:33 +01:00
flag:
src: 'less/flag-icon.less'
dest: 'css/flag-icon.css'
docs:
src: 'assets/docs.less'
dest: 'assets/docs.css'
2013-09-24 12:02:48 +02:00
2013-09-24 12:25:39 +02:00
cssmin:
2015-12-23 23:45:33 +01:00
flag:
src: 'css/flag-icon.css'
dest: 'css/flag-icon.min.css'
2013-09-24 12:25:39 +02:00
2013-09-24 12:02:48 +02:00
watch:
css:
options:
livereload: true
2015-12-23 23:45:33 +01:00
files: '**/*.less'
tasks: ['build']
2013-09-24 13:58:56 +02:00
2013-09-25 22:18:01 +02:00
assets:
2013-09-24 12:02:48 +02:00
options:
livereload: true
2013-09-25 22:18:01 +02:00
files: ['index.html', 'assets/*']
2013-09-24 12:02:48 +02:00
2013-09-25 22:00:00 +02:00
connect:
server:
options:
port: 8000
keepalive: true
2013-09-24 12:02:48 +02:00
2015-12-23 23:45:33 +01:00
grunt.loadNpmTasks 'grunt-contrib-less'
grunt.loadNpmTasks 'grunt-contrib-cssmin'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-connect'
2013-09-24 12:02:48 +02:00
2015-12-23 23:45:33 +01:00
grunt.registerTask 'build', ['less', 'cssmin']
grunt.registerTask 'default', ['build', 'watch']