Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

v6.59.3. Bugfix.

- v6.59.3 December 20, 2013
	- Fixed uninstalled dev dependency plugins (e.g. livereload), from
being reinstalled on the next install
		- Thanks to [Alan Languirand](https://github.com/alanguir), [Eduán
Lávaque](https://github.com/Greduan) for [issue
#744](#744)
  • Loading branch information...
commit 82646032d81737904769e6f5eb6b64d8a1df9c9c 1 parent b9754fd
@balupton balupton authored
Showing with 23 additions and 11 deletions.
  1. +4 −0 HISTORY.md
  2. +1 −1  package.json
  3. +18 −10 src/lib/docpad.coffee
View
4 HISTORY.md
@@ -1,5 +1,9 @@
# History
+- v6.59.3 December 20, 2013
+ - Fixed uninstalled dev dependency plugins (e.g. livereload), from being reinstalled on the next install
+ - Thanks to [Alan Languirand](https://github.com/alanguir), [Eduán Lávaque](https://github.com/Greduan) for [issue #744](https://github.com/bevry/docpad/issues/744)
+
- v6.59.2 December 19, 2013
- More reliable delay of requests while the initial generation is still performing
- Removed the deprecated `writeSource` meta data header, `writeSource` is now only available via the API usage
View
2  package.json
@@ -1,7 +1,7 @@
{
"title": "DocPad. Streamlined web development.",
"name": "docpad",
- "version": "6.59.2",
+ "version": "6.59.3",
"description": "DocPad is a next generation web architecture that lets you create fast static websites with dynamic abilities and powerful abstractions. Write your website as files on your computer, entries in a database, or even RSS feeds and DocPad will import it, generate & render it, then output a static website for deployment anywhere or a dynamic node website for advanced server-side functionality. Use it as a module or standalone. It's purely awesome. Check it out.",
"homepage": "http://docpad.org",
"installUrl": "http://docpad.org/install",
View
28 src/lib/docpad.coffee
@@ -2032,10 +2032,14 @@ class DocPad extends EventEmitterGrouped
opts.cwd ?= config.rootPath
opts.output ?= docpad.getDebugging()
opts.args ?= []
+
opts.global ?= false
- opts.global = '--global' if opts.global is true
+ opts.global = ['--global'] if opts.global is true
+ opts.global = [opts.global] if opts.global and Array.isArray(opts.global) is false
+
opts.save ?= !opts.global
- opts.save = '--save' if opts.save is true
+ opts.save = ['--save', '--save-dev'] if opts.save is true
+ opts.save = [opts.save] if opts.save and Array.isArray(opts.save) is false
# Command
command = ['npm', 'install']
@@ -2054,10 +2058,10 @@ class DocPad extends EventEmitterGrouped
# Arguments
command.push(opts.args...)
- command.push('--force') if config.force
- command.push('--no-registry') if config.offline
- command.push(opts.save) if opts.save
- command.push(opts.global) if opts.global
+ command.push('--force') if config.force
+ command.push('--no-registry') if config.offline
+ command.push(opts.save...) if opts.save
+ command.push(opts.global...) if opts.global
# Log
docpad.log('info', command.join(' ')) if opts.output
@@ -2080,10 +2084,14 @@ class DocPad extends EventEmitterGrouped
opts.cwd ?= config.rootPath
opts.output ?= docpad.getDebugging()
opts.args ?= []
+
opts.global ?= false
- opts.global = '--global' if opts.global is true
+ opts.global = ['--global'] if opts.global is true
+ opts.global = [opts.global] if opts.global and Array.isArray(opts.global) is false
+
opts.save ?= !opts.global
- opts.save = '--save' if opts.save is true
+ opts.save = ['--save', '--save-dev'] if opts.save is true
+ opts.save = [opts.save] if opts.save and Array.isArray(opts.save) is false
# Command
command = ['npm', 'uninstall']
@@ -2094,8 +2102,8 @@ class DocPad extends EventEmitterGrouped
# Arguments
command.push(opts.args...)
- command.push(opts.save) if opts.save
- command.push(opts.global) if opts.global
+ command.push(opts.save...) if opts.save
+ command.push(opts.global...) if opts.global
# Log
docpad.log('info', command.join(' ')) if opts.output
Please sign in to comment.
Something went wrong with that request. Please try again.