github.com/mckomo/gulp-vapor

Gulp task suite for Vapor web framework.


License
MIT

Documentation

gulp-vapor

Build Status

Gulp task suite for Vapor web framework.

Use gulp-vapor to automate project recompilation after source code change (see Usage).

Installation

Install gulp-vapor via npm:

$ npm install gulp-vapor

or:

$ npm install --save-dev gulp-vapor

if you already have package.json file.

Usage

Reload project when a source code changes

Modify your gulpfile.js to include following parts:

'use strict';

var gulp = require('gulp');
var vapor = require('gulp-vapor');

gulp.task('vapor:start', vapor.start);
gulp.task('vapor:reload', vapor.reload);

gulp.task('watch', function() {
   gulp.watch('./App/**/*', ['vapor:reload']);
});


gulp.task('default', ['vapor:start', 'watch']);

then just run gulp and enjoy automated project recompilation.

$ gulp

By now, you should be able to see you project running in a browser at http://localhost:8080. From now on, If you change something in your App folder, project will reload automatically.