 #                , expand: true
 #                , cwd: "build/"
                 sourceMap: 
-                  (path) -> path.replace(/.js/, ".js.map")
+                    (path) -> path.replace(/.js/, ".js.map")
                 sourceMappingURL: 
-                  (path) -> path.replace(/^build\//, "") + ".map"
+                    (path) -> path.replace(/^build\//, "") + ".map"
 #                  , sourceMapIn: function(path) { return path.replace(/^build\//, "")}
 #                  , sourceMapRoot: "/" //function(path) { return path.replace(/^build\//, "")}
                 sourceMapPrefix: 1 # strip 'build/' from paths

            options:
                stripBanners: true
            src: [
              "<%= meta.banner %>"
              "src/jquery.fancytree.js"
              "src/jquery.fancytree.columnview.js"
              "src/jquery.fancytree.dnd.js"
              "src/jquery.fancytree.filter.js"
              "src/jquery.fancytree.menu.js"
              "src/jquery.fancytree.persist.js"
              "src/jquery.fancytree.table.js"
              "src/jquery.fancytree.themeroller.js"
              ]
            dest: "build/<%= pkg.name %>-all.js"

    connect:
        demo:
            options:
                port: 8080
                base: "./"
                keepalive: true

    copy:
        build:

        all: ["demo/**/*.html", "doc/**/*.html", "test/**/*.html"]

    jsdoc:
        build:
            src: ["src/*.js", "doc/README.md"]
            # http://usejsdoc.org/about-configuring-jsdoc.html#example
            options:
                destination: "doc/jsdoc_grunt"
#                template: "bin/jsdoc3-moogle",
                verbose: true

    jshint:
        options:
            # Linting according to http://contribute.jquery.org/style-guide/js/
            jshintrc: ".jshintrc"
        beforeConcat: [
            "Gruntfile.js"
            "src/*.js"
            "3rd-party/**/jquery.fancytree.*.js"
            "test/unit/*.js"
            ]
        afterConcat: [
            "<%= concat.core.dest %>"
            "<%= concat.all.dest %>"
            ]

    less:
        development:
            options:
#               paths: ["src/"]
#               report: "min"
                compress: false
                yuicompress: false
#               optimization: 10
            files: [
                {expand: true, cwd: "src/", src: "**/ui.fancytree.less", dest: "src/", ext: ".fancytree.css"}
            ]
