0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-22 11:27:29 +01:00
flags/Gruntfile.coffee
2013-09-24 12:02:48 +02:00

46 lines
1.1 KiB
CoffeeScript

module.exports = (grunt)->
SRC_DIR = "less"
TARGET_DIR = "css"
grunt.initConfig
clean:
main:
src: TARGET_DIR
less:
app_css:
src: "#{SRC_DIR}/country-flag-icons.less"
dest: "#{TARGET_DIR}/country-flag-icons.css"
# dev only
watch:
build:
options:
base: SRC_DIR
keepalive: true
files: ["#{SRC_DIR}/**/*.less"]
tasks: ["less"]
css:
options:
livereload: true
files: "#{TARGET_DIR}/country-flag-icons.css"
html_templates:
options:
livereload: true
files: 'index.html'
cssmin:
app_css:
src: "#{TARGET_DIR}/country-flag-icons.css"
dest: "#{TARGET_DIR}/country-flag-icons.css"
grunt.loadNpmTasks("grunt-contrib-clean")
grunt.loadNpmTasks("grunt-contrib-less")
grunt.loadNpmTasks("grunt-contrib-cssmin")
grunt.loadNpmTasks("grunt-contrib-watch")
grunt.registerTask("default", ["clean", "build"])
grunt.registerTask("build", ["less", "watch"])
grunt.registerTask("dist", ["clean", "less", "cssmin"])