Commit ec75cd1e authored by Panayiotis Lipiridis's avatar Panayiotis Lipiridis
Browse files

Added minified and updated Gruntfile

parent bb62d451
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -3,19 +3,20 @@ module.exports = (grunt)->
  TARGET_DIR = "css"

  grunt.initConfig
    pkg: grunt.file.readJSON('package.json')
    clean:
      main:
        src: TARGET_DIR

    less:
      app_css:
        src: "#{SRC_DIR}/country-flag-icons.less"
        dest: "#{TARGET_DIR}/country-flag-icons.css"
        src: "#{SRC_DIR}/<%= pkg.name %>.less"
        dest: "#{TARGET_DIR}/<%= pkg.name %>.css"

    cssmin:
      app_css:
        src: "#{TARGET_DIR}/country-flag-icons.css"
        dest: "#{TARGET_DIR}/country-flag-icons.min.css"
        src: "#{TARGET_DIR}/<%= pkg.name %>.css"
        dest: "#{TARGET_DIR}/<%= pkg.name %>.min.css"

    watch:
      build:
@@ -27,7 +28,7 @@ module.exports = (grunt)->
      css:
        options:
          livereload: true
        files: "#{TARGET_DIR}/country-flag-icons.css"
        files: "#{TARGET_DIR}/<%= pkg.name %>.css"
      html_templates:
        options:
          livereload: true
+1 −0

File added.

Preview size limit exceeded, changes collapsed.

+5 −5
Original line number Diff line number Diff line
@@ -2,10 +2,10 @@
  "name": "country-flag-icons",
  "version": "0.1.0",
  "devDependencies": {
    "grunt": "~0.4.1",
    "grunt-contrib-clean":"0.4.0",
    "grunt-contrib-less":"0.6.4",
    "grunt-contrib-cssmin":"0.5.0",
    "grunt-contrib-watch": "0.5.1"
    "grunt": "~0.4",
    "grunt-contrib-clean": ~"0.4",
    "grunt-contrib-less": ~"0.6",
    "grunt-contrib-cssmin": ~"0.5",
    "grunt-contrib-watch": ~"0.5"
  }
}