Remove browser-sync and update README.md about setup.
This commit is contained in:
@@ -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 <br/>
|
||||
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
|
||||
|
||||
|
||||
11
gulpfile.js
11
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()))
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user