Skip to content
Browse files

v2.0.0. Initial working release.

- v2.0.0 March 7, 2013
	- Initial working release
  • Loading branch information...
1 parent 29c6b12 commit 57248dc79bf2537714e88eaa5a107f728031635c @balupton balupton committed Mar 7, 2013
Showing with 12 additions and 11 deletions.
  1. +2 −1 History.md
  2. +3 −6 package.json
  3. +7 −4 src/ghpages.plugin.coffee
View
3 History.md
@@ -1,3 +1,4 @@
# History
-None yet
+- v2.0.0 March 7, 2013
+ - Initial working release
View
9 package.json
@@ -28,16 +28,13 @@
},
"engines" : {
"node": ">=0.4",
- "docpad": ">=6.21 <7"
+ "docpad": ">=6.24 <7"
},
"dependencies": {
- "bal-util": "~1.16.5"
+ "bal-util": "~1.16.8"
},
"devDependencies": {
"coffee-script": "~1.4.0"
},
- "main": "./out/ghpages.plugin.js",
- "scripts": {
- "test": "node ./out/ghpages.test.js"
- }
+ "main": "./out/ghpages.plugin.js"
}
View
11 src/ghpages.plugin.coffee
@@ -5,14 +5,17 @@ pathUtil = require('path')
# Export
module.exports = (BasePlugin) ->
# Define
- class GitHubPagesPlugin extends BasePlugin
+ class GhpagesPlugin extends BasePlugin
# Name
name: 'ghpages'
# Config
config:
deployBranch: 'gh-pages'
environment: 'static'
+ environments:
+ static:
+ asd: 'asd'
# =============================
# Events
@@ -21,12 +24,12 @@ module.exports = (BasePlugin) ->
consoleSetup: (opts) ->
# Prepare
{consoleInterface,commander} = opts
+ me = @
config = @config
docpad = @docpad
- # because it does not seem to adopt the environment correctly
- docpad.config.env = config.environment;
- commander.env = config.environment;
+ # Let's try this way
+ docpad.setInstanceConfig({env:config.environment})
# Deploy command
commander

0 comments on commit 57248dc

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