|
@@ -1,6 +1,6 @@
|
|
|
// Import Dependencies.
|
|
|
var gulp = require("gulp");
|
|
|
-var webserver = require("gulp-webserver");
|
|
|
+var connect = require("gulp-connect");
|
|
|
var minimist = require("minimist");
|
|
|
|
|
|
// Comand line parsing.
|
|
@@ -13,14 +13,14 @@ var commandLineOptions = minimist(process.argv.slice(2), {
|
|
|
*/
|
|
|
gulp.task("webserver", function() {
|
|
|
var options = {
|
|
|
+ root: "../../.",
|
|
|
port: 1338,
|
|
|
- livereload: false,
|
|
|
-
|
|
|
+ livereload: false
|
|
|
};
|
|
|
|
|
|
if (commandLineOptions.public) {
|
|
|
options.host = "0.0.0.0";
|
|
|
}
|
|
|
|
|
|
- return gulp.src("../../.").pipe(webserver(options));
|
|
|
+ connect.server(options);
|
|
|
});
|