diff --git a/lib/activityManager.js b/lib/activityManager.js index e27cb61..e21d1d7 100755 --- a/lib/activityManager.js +++ b/lib/activityManager.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/anvil.js b/lib/anvil.js index 58ef21b..bc1299b 100755 --- a/lib/anvil.js +++ b/lib/anvil.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed @@ -104,6 +104,9 @@ var anvilFactory = function( _, scheduler, fs, Monologue, bus ) { if( this.commander.host || this.config.host ) { this.config.host = true; try { + if( !this.httpPaths[ "/" ] ) { + this.httpPaths[ "/" ] = this.config.output; + } this.http.init(); } catch ( err ) { console.log( err.stack ); diff --git a/lib/api.js b/lib/api.js index 4bcb37a..5b5f8ab 100755 --- a/lib/api.js +++ b/lib/api.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/bus.js b/lib/bus.js index 5c00e6c..58b97b7 100755 --- a/lib/bus.js +++ b/lib/bus.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/cli.js b/lib/cli.js index e72ac67..8fa3d19 100755 --- a/lib/cli.js +++ b/lib/cli.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/command.js b/lib/command.js index 571a062..79878e3 100755 --- a/lib/command.js +++ b/lib/command.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/config.js b/lib/config.js index 36d273e..4ff19ee 100755 --- a/lib/config.js +++ b/lib/config.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed @@ -62,7 +62,7 @@ var configFactory = function( _, commander, path, anvil ) { }; Config.prototype.createCommand = function() { - commander.version("0.9.1", "-v, --version" ); + commander.version("0.9.2", "-v, --version" ); if( this.args[ 2 ] && this.args[ 2 ].match( /^([-]v$|[-]{2}version)$/ ) ) { commander.parse( this.args ); } else { diff --git a/lib/consoleLogger.js b/lib/consoleLogger.js index f13c9de..4d19ef1 100755 --- a/lib/consoleLogger.js +++ b/lib/consoleLogger.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/extensionContainer.js b/lib/extensionContainer.js index babcf15..99ae8b9 100755 --- a/lib/extensionContainer.js +++ b/lib/extensionContainer.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed @@ -15,7 +15,7 @@ var extensionContainerFactory = function( _, extManager, anvil ) { this.commandOptions = [ [ "-b, --build [build file]", "Use a custom build file", "./build.json" ], [ "-q, --quiet", "Only print completion and error messages" ], - [ "-h, --host", "Activate anvil's HTTP and process hosting" ], + [ "--host", "Activate anvil's HTTP and process hosting" ], [ "--browser", "opens tab in your default browser" ], [ "--verbose", "Include debug and warning messages in log" ], [ "--write [build file]", "Create a new build file based on default config" ] diff --git a/lib/extensionManager.js b/lib/extensionManager.js index dbeb4a3..ad238ba 100755 --- a/lib/extensionManager.js +++ b/lib/extensionManager.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/fileCrawler.js b/lib/fileCrawler.js index d7fbeaa..ac53c71 100755 --- a/lib/fileCrawler.js +++ b/lib/fileCrawler.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/fileSystem.js b/lib/fileSystem.js index 1ab3647..c513bf2 100755 --- a/lib/fileSystem.js +++ b/lib/fileSystem.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/fs.mock.js b/lib/fs.mock.js index 6f06346..8b8115a 100755 --- a/lib/fs.mock.js +++ b/lib/fs.mock.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/host.js b/lib/host.js index 7fbe731..58fdb44 100755 --- a/lib/host.js +++ b/lib/host.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/log.js b/lib/log.js index 3e308d5..e6c3979 100755 --- a/lib/log.js +++ b/lib/log.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/plugin.js b/lib/plugin.js index d8154a8..4498a76 100755 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/pluginHarness.js b/lib/pluginHarness.js index ee76b0e..403272c 100755 --- a/lib/pluginHarness.js +++ b/lib/pluginHarness.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/processHost.js b/lib/processHost.js index ae45262..2fbebf0 100755 --- a/lib/processHost.js +++ b/lib/processHost.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/scaffold.js b/lib/scaffold.js index 0ccaffe..cb066b2 100755 --- a/lib/scaffold.js +++ b/lib/scaffold.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/scheduler.js b/lib/scheduler.js index 9d8e186..e17a443 100755 --- a/lib/scheduler.js +++ b/lib/scheduler.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/task.js b/lib/task.js index a6a7291..c3f33a1 100755 --- a/lib/task.js +++ b/lib/task.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/utility.js b/lib/utility.js index e80e5d2..ef829cc 100755 --- a/lib/utility.js +++ b/lib/utility.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/lib/widget.js b/lib/widget.js index 2219b9b..9e5ad2e 100755 --- a/lib/widget.js +++ b/lib/widget.js @@ -1,6 +1,6 @@ /* anvil.js - an extensible build system - version: 0.9.1 + version: 0.9.2 author: Alex Robson (http://sharplearningcurve.com) copyright: 2011 - 2012 license: Dual licensed diff --git a/package.json b/package.json index 091c310..9ad2d24 100755 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Alex Robson (http://sharplearningcurve.com)", "name": "anvil.js", "description": "an extensible build system", - "version": "0.9.1", + "version": "0.9.2", "repository": { "type": "git", "url": "git://github.com/appendto/anvil.js.git" diff --git a/src/anvil.js b/src/anvil.js index 9514435..07779c0 100755 --- a/src/anvil.js +++ b/src/anvil.js @@ -95,6 +95,9 @@ var anvilFactory = function( _, scheduler, fs, Monologue, bus ) { if( this.commander.host || this.config.host ) { this.config.host = true; try { + if( !this.httpPaths[ "/" ] ) { + this.httpPaths[ "/" ] = this.config.output; + } this.http.init(); } catch ( err ) { console.log( err.stack ); diff --git a/src/extensionContainer.js b/src/extensionContainer.js index d04ec49..1825a0a 100755 --- a/src/extensionContainer.js +++ b/src/extensionContainer.js @@ -6,7 +6,7 @@ var extensionContainerFactory = function( _, extManager, anvil ) { this.commandOptions = [ [ "-b, --build [build file]", "Use a custom build file", "./build.json" ], [ "-q, --quiet", "Only print completion and error messages" ], - [ "-h, --host", "Activate anvil's HTTP and process hosting" ], + [ "--host", "Activate anvil's HTTP and process hosting" ], [ "--browser", "opens tab in your default browser" ], [ "--verbose", "Include debug and warning messages in log" ], [ "--write [build file]", "Create a new build file based on default config" ]