gulp-vapor
Gulp task suite for Vapor web framework.
Use gulp-vapor
to hot-reaload your Vapor project (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 = ;var vapor = ; gulp;gulp; gulp; gulp;
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.
Configuration
If your project requires special configuration during
var vapor = ; vaporconfigcommandsbuild = 'swift build --some-flag';vaporconfigcommandsstart = '.build/debug/gulp-vapor' 'serve' '--port=80';
Compatiblity
-
v1.1.x - 2016/09/10:
gulp-vapor
is compatible with Vapor 1.0.x. -
v1.0.6 - 2016/05/22:
gulp-vapor
is compatible with Vapor 0.8.x.