Browser Sync integration into SourceJS
npm install sourcejs-contrib-browser-syncBrowser Sync integration into SourceJS
===============
Run browser-sync together with SourceJS. Get instant web-page updates after changing Spec file or JS, CSS assets.
___
To install, run npm in sourcejs/user folder:
```
npm install sourcejs-contrib-browser-sync --save
Then restart SourceJS, plugin will be enabled on next engine start.
In user/options.js use plugins.browserSync object. Available options:
`
{
enabled: true,
forceEnabled: false,
browserSync: {
files: [
'specs/**/index.+(src|src.html)',
'specs/*/.css',
'specs/*/.js'
],
logSnippet: false,
codeSync: false,
open: false
}
}
`
* forceEnabled - by default plugin is activated only for development environment, if you want to force run it in other modes, set this option to truebrowserSync
* - contains configuration passed to BrowserSync directlybrowserSync.files
* - paths to watch, relative to sourcejs/user` folder
* Check the path of changed files and update only specific Spec URL
* Add SourceJS DSS plugin support (refresh spec on CSS with docs change)
___
Compatible with SourceJS v0.5.1+.