
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
A fast and simple asset bundling extension for Capistrano 3.x
A common requirement is to split your css / js into modules organised by folder, so for instance you may have a setup like this:
public/
stylesheets/
resets/
fonts.css
typography.css
main.css
core/
headers.css
colors.css
navigation.css
blog/
styles.css
news/
styles.css
This capistrano bundle deployer, splits your assets up into modules based on the top-level directory, giving you combined builds of each. The above setup would yield the following build files:
public/
stylesheets/
build/
resets_combined.css
core_combined.css
blog_combined.css
news_combined.css
A similar principle works for Javascript assest too.
You'll need to add the gem to your Gemfile.
gem 'capistrano-bundle'
Then add this to your Capfle:
require 'capistrano/bundle'
The defaults are configure the above behaviour, but are completely customisable.
set :bundle_build_path, fetch(:deploy_to)
set :bundle_dirs, [
["public/stylesheets/*/", "**/*.css", "public/stylesheets/build/"],
["public/javascripts/*/", "**/*.js", "public/javascripts/build/"]
]
set :bundle_build_suffix, "_combined"
This is a very early example of the functionality quite a few features and options are so-far unavailable. If there's something you'd lke to see open an issue.
FAQs
Unknown package
We found that capistrano-bundle 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.