Permalink
Browse files

replaced unix-based commands with node-based alternatives

  • Loading branch information...
neocotic committed Mar 27, 2013
1 parent daae623 commit 8c395e15261a66342e3ccdd51e6391c7dbb501bd
Showing with 26 additions and 17 deletions.
  1. +16 −6 docco.js
  2. +9 −10 docco.litcoffee
  3. +1 −1 package.json
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -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
@@ -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
View
@@ -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"
},

0 comments on commit 8c395e1

Please sign in to comment.