Skip to content

Commit

Permalink
replaced unix-based commands with node-based alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
neocotic committed Mar 27, 2013
1 parent daae623 commit 8c395e1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
22 changes: 16 additions & 6 deletions docco.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 9 additions & 10 deletions docco.litcoffee
Expand Up @@ -80,14 +80,14 @@ out in an HTML template.
document = (options = {}, callback) ->
configure options
fs.mkdirp config.output, ->
fs.mkdirs config.output, ->
callback or= (error) -> throw error if error
complete = ->
async.parallel [
(done) -> fs.copy config.css, config.output, done
, (done) ->
if fs.existsSync config.public then fs.copyRecursive config.public, config.output, done
if fs.existsSync config.public then fs.copy config.public, config.output, done
else done()
], callback
Expand Down Expand Up @@ -225,14 +225,13 @@ Helpers & Initial Setup

Require our external dependencies.

_ = require 'underscore'
fs = require 'fs.extra'
path = require 'path'
async = require 'async'
marked = require 'marked'
commander = require 'commander'
{highlight} = require 'highlight.js'
{spawn, exec} = require 'child_process'
_ = require 'underscore'
fs = require 'fs-extra'
path = require 'path'
async = require 'async'
marked = require 'marked'
commander = require 'commander'
{highlight} = require 'highlight.js'
Languages are stored in JSON in the file `resources/languages.json`.
Each item maps the file extension to the name of the language and the
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -15,7 +15,7 @@
"async": ">= 0.2.6",
"commander": ">= 0.5.2",
"marked": ">= 0.2.7",
"fs.extra": ">= 1.2.0",
"fs-extra": ">= 0.6.0",
"underscore": ">= 1.0.0",
"highlight.js": ">= 7.3.0"
},
Expand Down

0 comments on commit 8c395e1

Please sign in to comment.