0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-22 11:27:29 +01:00
flags/Gruntfile.coffee
Panayiotis Lipiridis 2a0ad630c6 Simplified Gruntfile
2013-09-25 22:18:01 +02:00

43 lines
1000 B
CoffeeScript

module.exports = (grunt)->
SRC_DIR = "less"
TARGET_DIR = "css"
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
less:
app_css:
src: "#{SRC_DIR}/<%= pkg.name %>.less"
dest: "#{TARGET_DIR}/<%= pkg.name %>.css"
cssmin:
app_css:
src: "#{TARGET_DIR}/<%= pkg.name %>.css"
dest: "#{TARGET_DIR}/<%= pkg.name %>.min.css"
watch:
css:
options:
livereload: true
files: "#{SRC_DIR}/*.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("default", ["build", "watch"])
grunt.registerTask("build", ["less", "cssmin"])