browser-sync
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -9,6 +9,6 @@ | ||
var options = { | ||
// server: { | ||
// baseDir: ["test/fixtures"] | ||
// }, | ||
proxy: "meandem.dev", | ||
server: { | ||
baseDir: ["test/fixtures"] | ||
}, | ||
// proxy: "swoon.static/store-home.php", | ||
ghostMode: { | ||
@@ -20,3 +20,3 @@ forms: { | ||
files: files, | ||
tunnel: true, | ||
// tunnel: true, | ||
port: 8080, | ||
@@ -23,0 +23,0 @@ open: true, |
@@ -32,4 +32,5 @@ "use strict"; | ||
this.events.setMaxListeners(20); | ||
this.plugins = {}; | ||
this.config = config; | ||
this.plugins = {}; | ||
this.active = false; | ||
this.config = config; | ||
this.clientEvents = [ | ||
@@ -206,2 +207,5 @@ "scroll", | ||
utils.log("info", data.msg, options); | ||
}, | ||
"init": function () { | ||
this.active = true; | ||
} | ||
@@ -208,0 +212,0 @@ }; |
module.exports = { | ||
active: false, | ||
debugInfo: true, | ||
@@ -3,0 +4,0 @@ files: false, |
@@ -46,3 +46,15 @@ #! /usr/bin/env node | ||
/** | ||
* Handle External API usage. | ||
* @param {Object} [config] | ||
* @param {Function} [cb] | ||
* @returns {BrowserSync} | ||
*/ | ||
var publicInit = require("./public/init")(exports.start); | ||
module.exports = publicInit; | ||
module.exports.init = publicInit; // backwards compat | ||
/** | ||
* Exposed helper method for triggering reload | ||
@@ -55,2 +67,11 @@ * @param [arg] | ||
/** | ||
* Active flag for checking state of BS | ||
*/ | ||
Object.defineProperty(module.exports, "active", { | ||
get: function () { | ||
return browserSync.active; | ||
} | ||
}); | ||
/** | ||
* Exposed helper method for browser notifications | ||
@@ -62,10 +83,2 @@ * @param {String} msg | ||
/** | ||
* Handle External API usage. | ||
* @param {Object} [config] | ||
* @param {Function} [cb] | ||
* @returns {BrowserSync} | ||
*/ | ||
module.exports.init = require("./public/init")(exports.start); | ||
/** | ||
* Allow plugins to be registered/overridden | ||
@@ -76,5 +89,3 @@ * @param {String} name | ||
*/ | ||
module.exports.use = function (name, func, cb) { | ||
browserSync.registerPlugin(name, func, cb); | ||
}; | ||
module.exports.use = browserSync.registerPlugin; | ||
@@ -81,0 +92,0 @@ /** |
@@ -57,3 +57,3 @@ "use strict"; | ||
if (Array.isArray(baseDir)) { | ||
_.each(baseDir, addBase); | ||
baseDir.forEach(addBase); | ||
} else { | ||
@@ -60,0 +60,0 @@ addBase(baseDir); |
{ | ||
"name": "browser-sync", | ||
"description": "Live CSS Reload & Browser Syncing", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "https://github.com/shakyshane/browser-sync", | ||
@@ -44,3 +44,3 @@ "author": { | ||
"opn": "^0.1.1", | ||
"foxy": "0.1.4", | ||
"foxy": "0.1.5", | ||
"localtunnel": "^1.3.0", | ||
@@ -47,0 +47,0 @@ "opt-merger": "0.1.2" |
@@ -12,3 +12,3 @@ # browser-sync [![Build Status](https://travis-ci.org/shakyShane/browser-sync.png?branch=master)](https://travis-ci.org/shakyShane/browser-sync) [![NPM version](https://badge.fury.io/js/browser-sync.png)](http://badge.fury.io/js/browser-sync) | ||
2. **Forms** - You fill out a form in one browser, I'll copy the data to all the others. | ||
3. **Links** - I'll watch your clicks & and make all the other browsers follow you. | ||
3. **Links** - I'll watch your clicks and make all the other browsers follow you. | ||
4. **CSS injecting** - I can even watch your CSS files & inject them when they change. | ||
@@ -15,0 +15,0 @@ 5. **Live Reload** - I can also watch files like HTML and PHP & when they change I can reload all browsers for you. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2740
355961
59
+ Addedfoxy@0.1.5(transitive)
- Removedfoxy@0.1.4(transitive)
Updatedfoxy@0.1.5