
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A Sweet.js DSL for Broccoli, the best frontend asset pipeline.
$ npm install --save-dev sweet.js sweetbuild broccoli broccoli-merge-trees
Put the following in Brocfile.js:
require('sweet.js').loadMacro('sweetbuild');
module.exports = require('./Brocfile.sjs');
Put your build script in Brocfile.sjs (or whatever you required in Brocfile.js) and use Broccoli like you normally do.
A shorthand for require.
Requires some_thing from broccoli-some-thing.
brequire source_map; // requires broccoli-source-map as source_map
Operators that merge trees using broccoli-merge-trees.
They are left-associative.
+!+ is the {overwrite: true} version.
You can use both single trees and lists of trees at both sides.
var scripts = 'src' +++ 'vendor/src';
var styles = ['normalize', 'formalize'].map(function(x) {return 'bower_components/' + x}) +++ ['stylesheets', 'ie-stylesheets'] +!+ 'vendor/stylesheets';
The chain operator. Like the UNIX pipe for plugin calls. Best understood by example:
var scripts = 'src/main/coffee' -> coffee({bare: true}) -> uglify_js;
// same as:
var scripts = uglify_js(coffee('src/main/coffee', {bare: true}));
brequire coffee;
brequire uglify_js;
brequire sass;
brequire manifest;
var scripts = 'vendor/js' +++ ('cs' -> coffee)
-> uglify_js;
var styles = 'vendor/css' +++ ('vendor/sass' +++ 'sass'
-> sass('main.scss', 'main.css'));
var assets = scripts +++ styles;
module.exports = assets +++ manifest(assets);
Copyright © 2014 myfreeweb This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.
FAQs
A collection of Broccoli macros for Sweet.js
We found that sweetbuild 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.