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
|
## 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
|
git clone git@github.com:UltimateHackingKeyboard/agent.git
|
||||||
cd agent
|
cd agent
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
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
|
## Contribute
|
||||||
|
|
||||||
|
|||||||
11
gulpfile.js
11
gulpfile.js
@@ -1,5 +1,4 @@
|
|||||||
var gulp = require('gulp');
|
var gulp = require('gulp');
|
||||||
var browserSync = require('browser-sync').create();
|
|
||||||
var args = require('yargs').argv;
|
var args = require('yargs').argv;
|
||||||
var gulpif = require('gulp-if');
|
var gulpif = require('gulp-if');
|
||||||
var sass = require('gulp-sass');
|
var sass = require('gulp-sass');
|
||||||
@@ -11,16 +10,6 @@ var paths = {
|
|||||||
cssDest: 'css'
|
cssDest: 'css'
|
||||||
}
|
}
|
||||||
|
|
||||||
gulp.task('serve', function () {
|
|
||||||
browserSync.init({
|
|
||||||
server: {
|
|
||||||
baseDir: "./"
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.watch(['*.html', '*.css', '*.js']).on('change', browserSync.reload);
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.task('sass', function () {
|
gulp.task('sass', function () {
|
||||||
return gulp.src(paths.sassAll)
|
return gulp.src(paths.sassAll)
|
||||||
.pipe(gulpif(args.debug, sourcemaps.init()))
|
.pipe(gulpif(args.debug, sourcemaps.init()))
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
},
|
},
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.13.0",
|
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-if": "^2.0.1",
|
"gulp-if": "^2.0.1",
|
||||||
"gulp-sass": "^2.3.2",
|
"gulp-sass": "^2.3.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user