Skip to content

Commit

Permalink
trying out a new README format
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Feb 28, 2013
1 parent c7de871 commit 1d2c675
Show file tree
Hide file tree
Showing 2 changed files with 454 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Cakefile
@@ -1,8 +1,16 @@
{spawn} = require 'child_process'
fs = require 'fs'

task "build", "watch and build the Journo source", ->
compiler = spawn 'coffee', ['-cw', '.']
compiler.stdout.on 'data', (data) -> console.log data.toString().trim()
compiler.stderr.on 'data', (data) -> console.error data.toString().trim()

# Until GitHub has proper Literate CoffeeScript highlighting support, let's
# manually futz the README ourselves.
task "readme", "rebuild the readme file", ->
source = fs.readFileSync('journo.litcoffee').toString()
source = source.replace /\n\n ([\s\S]*?)\n\n(?! )/mg, '\n```coffeescript\n $1\n```\n'
fs.writeFileSync 'README.md', source


1 change: 0 additions & 1 deletion README.md

This file was deleted.

0 comments on commit 1d2c675

Please sign in to comment.