1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-24 17:11:55 +01:00

added node server via gulp serve task

This commit is contained in:
Kyle Spearrin 2016-11-30 23:30:08 -05:00
parent fb26425f17
commit a5b8e703fc
2 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,7 @@ var gulp = require('gulp'),
uglify = require('gulp-uglify'),
ghPages = require('gulp-gh-pages'),
less = require('gulp-less'),
connect = require('gulp-connect'),
ngAnnotate = require('gulp-ng-annotate'),
preprocess = require('gulp-preprocess'),
runSequence = require('run-sequence'),
@ -324,3 +325,10 @@ gulp.task('deploy', ['dist'], function () {
return gulp.src(paths.dist + '**/*')
.pipe(ghPages({ cacheDir: paths.dist + '.publish' }));
});
gulp.task('serve', function () {
connect.server({
port: 4001,
root: ['wwwroot']
});
});

View File

@ -14,6 +14,7 @@
"gulp-preprocess": "2.0.0",
"gulp-ng-annotate": "2.0.0",
"gulp-ng-config": "1.3.1",
"gulp-connect": "5.0.0",
"jshint": "2.9.2",
"gulp-jshint": "2.0.1",
"rimraf": "2.5.2",