Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
broccoli-template-compiler
Advanced tools
An opinionated filter for Broccoli that compiles handlebars templates for ember.js
npm install --save-dev broccoli-template-compiler
module.exports = function (broccoli) {
var templateCompiler = require('broccoli-template-compiler')
var pickFiles = require('broccoli-static-compiler')
function preprocess (tree) {
tree = templateCompiler(tree);
return tree
}
var sourceTree = broccoli.makeTree('js');
var templates = pickFiles(sourceTree, {
srcDir: '/templates',
destDir: '/templates'
})
var appTemplates = preprocess(templates);
return [appTemplates];
}
It's opinionated so you get both .hbs and .handlebars extensions out of the box
It requires the destination directory name be templates (as shown in the above example)
FAQs
ember.js precompiler for projects that use broccoli
The npm package broccoli-template-compiler receives a total of 0 weekly downloads. As such, broccoli-template-compiler popularity was classified as not popular.
We found that broccoli-template-compiler 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
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.