2013-09-24 12:02:48 +02:00
|
|
|
module.exports = (grunt)->
|
|
|
|
SRC_DIR = "less"
|
|
|
|
TARGET_DIR = "css"
|
|
|
|
|
|
|
|
grunt.initConfig
|
|
|
|
less:
|
|
|
|
app_css:
|
2013-09-27 03:30:36 +02:00
|
|
|
src: "#{SRC_DIR}/flag-icon.less"
|
|
|
|
dest: "#{TARGET_DIR}/flag-icon.css"
|
2013-09-24 12:02:48 +02:00
|
|
|
|
2013-09-24 12:25:39 +02:00
|
|
|
cssmin:
|
|
|
|
app_css:
|
2013-09-27 03:30:36 +02:00
|
|
|
src: "#{TARGET_DIR}/flag-icon.css"
|
|
|
|
dest: "#{TARGET_DIR}/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
|
2013-09-25 22:18:01 +02:00
|
|
|
files: "#{SRC_DIR}/*.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
|
|
|
|
|
|
|
grunt.loadNpmTasks("grunt-contrib-less")
|
|
|
|
grunt.loadNpmTasks("grunt-contrib-cssmin")
|
|
|
|
grunt.loadNpmTasks("grunt-contrib-watch")
|
2013-09-25 22:00:00 +02:00
|
|
|
grunt.loadNpmTasks('grunt-contrib-connect')
|
2013-09-24 12:02:48 +02:00
|
|
|
|
2013-09-24 12:25:39 +02:00
|
|
|
grunt.registerTask("default", ["build", "watch"])
|
2013-09-25 22:18:01 +02:00
|
|
|
grunt.registerTask("build", ["less", "cssmin"])
|