devsync
Synchronize your NodeJS application with your browser
Last updated a year ago by arypbatista .
Apache-2.0 · Repository · Bugs · Original npm · Tarball
$ cnpm install devsync 
SYNC missed versions from official npm registry.

DevSync - Synchronize your development

last-release npm-version npm-license Build Status codecov.io npm-downloads

Synchronize your NodeJS application with your browser.

Installation

$ npm install devsync --save

Usage

As a command

Install DevSync as a global module using npm install -g devsync and then you will be able to execute:

$ devsync ./app.js

In your GulpFile.js

Add a task for synching

const devsync = require('devsync');

gulp.task('sync', devsync(/* options */));

And run gulp sync

Setup your application

DevSync will export an APP_PORT environment variable with the port where the application is expected to run.

You may want to use this environment variable to ensure DevSync will work with your application.

Express example:

const express = require('express');
const app     = express();

/* Configure express */

app.port(process.env.APP_PORT || 3000);

Tests

Running all the tests:

$ npm test

Running a specific test:

$ mocha -g '<test name>'

License

This library is licensed under Apache 2.0. Full license text is available in COPYING.

Contributing

See CONTRIBUTING.

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (8)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |