From f8724172e2150bd43038c216f0105043c89dfffc Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 16 Oct 2016 00:41:56 +0200 Subject: [PATCH] update url --- .gitignore | 1 + gulpfile.js | 27 ++++++++++++++++++++------- package.json | 3 ++- public/index.html | 12 ++++++------ 4 files changed, 29 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 5945d61..f3bd517 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules key.json +yarn.lock diff --git a/gulpfile.js b/gulpfile.js index 96ee204..7a9609b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,14 +1,27 @@ -'use strict'; +'use strict' -var gulp = require('gulp'), - gs = require('gulp-gcloud-publish') +var gulp = require('gulp'), + gs = require('gulp-gcloud-publish'), + browser = require('browser-sync') // paths -var DIST = './public/'; +var DIST = './public/' // deployment var BUCKET = 'hello.git.berlin', - PROJECTID = 'git-berlin'; + PROJECTID = 'git-berlin' + + +// +// Dev Server +// +gulp.task('server', function() { + browser.init({ + server: DIST, + port: 1337, + reloadDebounce: 2000 + }) +}) // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -24,5 +37,5 @@ gulp.task('deploy', function() { projectId: PROJECTID, base: '/', public: true - })); -}); + })) +}) diff --git a/package.json b/package.json index 9376ec7..643c013 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "homepage": "https://www.git.berlin", "main": "gulpfile.js", "devDependencies": { - "gulp": ">=1.0.0", + "browser-sync": "^2.17.3", + "gulp": "^3.9.1", "gulp-awspublish": ">=3.0.0", "gulp-gcloud-publish": "^1.2.1" }, diff --git a/public/index.html b/public/index.html index 6913c5d..96adf40 100644 --- a/public/index.html +++ b/public/index.html @@ -6,7 +6,7 @@ - +