From a09bc3cccc1a6d70379efd7ba96afefb5072b645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Farkas=20J=C3=B3zsef?= Date: Wed, 3 Aug 2016 22:05:56 +0200 Subject: [PATCH] Remove browser-sync and update README.md about setup. --- README.md | 6 +++++- gulpfile.js | 11 ----------- package.json | 1 - 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 9d6d9fec..d8c35021 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,18 @@ Agent is in a preliminary state. You can click around, and most interactions wil ## Set up instructions +Prerequisite: Install Node.js
+Verify that you are running at least node v4.x.x and npm 3.x.x by running node -v and npm -v in a terminal/console window. Older versions produce errors. + ``` git clone git@github.com:UltimateHackingKeyboard/agent.git cd agent npm install npm run build +npm run webpack-dev-server ``` -In the repository you can find a `gulpfile.js` for running [browsersync](https://www.browsersync.io/), which speeds up the development process. You can fire it up with `gulp serve`. +The agent will be hosted on `localhost:8080`. ## Contribute diff --git a/gulpfile.js b/gulpfile.js index 819846a7..2aca3378 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,5 +1,4 @@ var gulp = require('gulp'); -var browserSync = require('browser-sync').create(); var args = require('yargs').argv; var gulpif = require('gulp-if'); var sass = require('gulp-sass'); @@ -11,16 +10,6 @@ var paths = { cssDest: 'css' } -gulp.task('serve', function () { - browserSync.init({ - server: { - baseDir: "./" - }, - }); - - gulp.watch(['*.html', '*.css', '*.js']).on('change', browserSync.reload); -}); - gulp.task('sass', function () { return gulp.src(paths.sassAll) .pipe(gulpif(args.debug, sourcemaps.init())) diff --git a/package.json b/package.json index 3923576d..574a267b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ }, "license": "GPL-3.0", "devDependencies": { - "browser-sync": "^2.13.0", "gulp": "^3.9.1", "gulp-if": "^2.0.1", "gulp-sass": "^2.3.2",