Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
broccoli-browser-sync-bv
Advanced tools
BrowserSync for Broccoli.js - upgraded to the new plugin model
BrowserSync support for Broccolijs
Right now usage is still a bit suboptimal, but you already get all the beauty of BrowserSync including live css injection as well as livereload.
var browserSync = new BrowserSync(inputTrees, options);
to pass in any browsersync options:
var options = {
browserSync: {
browser: 'Firefox'
}
}
A fairly complex example:
var fastBrowserify = require('broccoli-fast-browserify');
var babelify = require('babelify');
var mergeTrees = require('broccoli-merge-trees');
var compileSass = require('broccoli-sass-source-maps');
var funnel = require('broccoli-funnel');
var BrowserSync = require('broccoli-browser-sync');
var proxy = require('http-proxy-middleware');
var optionalTransforms = [
'regenerator'
// 'minification.deadCodeElimination',
// 'minification.inlineExpressions'
];
var babelOptions = {stage: 0, optional: optionalTransforms, compact: true};
// var browserifyOpts = {deps: true, entries: files, noParse: noParse, ignoreMissing: true};
var transformedBabelify = fastBrowserify('app', {
browserify: {
extensions: [".js"]
},
bundles: {
'js/app.js': {
entryPoints: ['app.js'],
transform: {
tr: babelify,
options: {
stage: 0
}
}
}
}
});
var appCss = compileSass(['piggy/frontend/app'], 'main.scss', 'css/app.css');
var staticFiles = funnel('frontend', {
srcDir: 'static'
});
// browsersync options
var bsOptions = {
browserSync: {
open: false,
middleware: [
proxy('/api/**', {
target: 'http://localhost:8080/',
pathRewrite: {
'^/api': ''
}
}),
proxy('/live', {
target: 'http://localhost:8080/',
pathRewrite: {
'^/live': ''
},
ws: true})
]
}
};
var browserSync = new BrowserSync([staticFiles, transformedBabelify, appCss], bsOptions);
module.exports = mergeTrees([staticFiles, transformedBabelify, appCss, browserSync]);
v1.0.0 (2015-07-28)
Merged pull requests:
* This Change Log was automatically generated by github_changelog_generator
FAQs
BrowserSync for Broccoli.js - upgraded to the new plugin model
The npm package broccoli-browser-sync-bv receives a total of 4 weekly downloads. As such, broccoli-browser-sync-bv popularity was classified as not popular.
We found that broccoli-browser-sync-bv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.