Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cakefile install uses local npm

  • Loading branch information...
commit fd443fc9ce8bb368737aa0d9f1ba3462ad9c6900 1 parent 55fad05
@lmaccherone authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 Cakefile
View
10 Cakefile
@@ -11,13 +11,7 @@ task 'build', 'continually build the coffeedoc library with --watch', ->
coffee = spawn 'coffee', ['-cw', '-o', 'lib', 'src']
coffee.stdout.on 'data', (data) -> console.log data.toString().trim()
-task 'install', 'install the `coffeedoc` command into /usr/local (or --prefix)', (options) ->
- base = options.prefix or '/usr/local'
- lib = base + '/lib/coffeedoc'
- exec([
- 'mkdir -p ' + lib
- 'cp -rf bin README.md resources lib ' + lib
- 'ln -sf ' + lib + '/bin/coffeedoc ' + base + '/bin/coffeedoc'
- ].join(' && '), (err, stdout, stderr) ->
+task 'install', 'install `coffeedoc` globally but from this source using npm', (options) ->
+ exec('npm install -g .', (err, stdout, stderr) ->
if err then console.error stderr
)

0 comments on commit fd443fc

Please sign in to comment.
Something went wrong with that request. Please try again.