mirror of
https://github.com/lipis/flag-icons.git
synced 2024-11-24 19:36:55 +01:00
45 lines
950 B
CoffeeScript
45 lines
950 B
CoffeeScript
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']
|