tasks/joosy.coffee in joosy-1.2.0.alpha.30 vs tasks/joosy.coffee in joosy-1.2.0.alpha.31

- old
+ new

@@ -24,14 +24,14 @@ stylus.define '$environment', environment stylus.define '$config', grunt.config.get('joosy.config') || {} stylus.use require('nib')() assets = new Mincer.Environment(process.cwd()) - assets.appendPath 'source', - assets.appendPath 'stylesheets', - assets.appendPath 'components' + assets.appendPath 'source' + assets.appendPath 'stylesheets' assets.appendPath 'vendor' + assets.appendPath 'components' assets.appendPath 'node_modules/joosy/src' assets compile: (environment, map, callbacks) -> @@ -97,11 +97,11 @@ paths = entry.path paths = [paths] unless Object.isArray(paths) for path in paths server.use path, (req, res, next) -> - if req.url == path + if req.url == '/' res.end grunt.joosy.haml.compile("source/"+entry.src) console.log "Served #{path} (#{entry.src})" else next() console.log "=> Serving #{entry.src} from #{paths.join(', ')}" @@ -155,10 +155,10 @@ grunt.registerTask 'joosy:assets', -> complete = @async() assets = grunt.joosy.helpers.list(@, 'joosy.assets', @args[0]) grunt.joosy.assets.compile 'production', assets, - error: (msg) -> grunt.fail.fatal msg + error: (asset, msg) -> grunt.fail.fatal msg compiled: (asset, dest) -> grunt.log.ok "Compiled #{dest}" success: complete grunt.registerTask 'joosy:haml', -> for _, entry of grunt.joosy.helpers.list(@, 'joosy.haml', @args[0]) \ No newline at end of file