Skip to content

Instantly share code, notes, and snippets.

@ysmood
Created October 16, 2014 10:18
Show Gist options
  • Select an option

  • Save ysmood/b92ea0da4a4670c18de3 to your computer and use it in GitHub Desktop.

Select an option

Save ysmood/b92ea0da4a4670c18de3 to your computer and use it in GitHub Desktop.
nobone = require 'nobone'
{kit, renderer} = nobone { renderer: {} }
kit.watch_dir {
dir: '.'
pattern: ['*/', '*.styl']
handler: (type, path) ->
kit.log path
renderer.render(path, '.css', {}, false)
.then (css) ->
kit.outputFile path.replace(/styl$/, 'css'), css
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment