Port details |
- rubygem-jsbundling-rails-rails71 Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack
- 1.3.1 www =0 1.3.1Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2024-09-18 06:22:21
- Last Update: 2024-09-18 06:13:06
- Commit Hash: a7ba0c4
- Also Listed In: rubygems
- License: MIT
- WWW:
- https://github.com/rails/jsbundling-rails
- Description:
- Use esbuild, rollup.js, or Webpack to bundle your JavaScript, then deliver it
via the asset pipeline in Rails. This gem provides installers to get you going
with the bundler of your choice in a new Rails application, and a convention to
use app/assets/builds to hold your bundled output as artifacts that are not
checked into source control (the installer adds this directory to .gitignore by
default).
You develop using this approach by running the bundler in watch mode in a
terminal with yarn build --watch (and your Rails server in another, if you're
not using something like puma-dev). You can also use ./bin/dev, which will start
both the Rails server and the JS build watcher (along with a CSS build watcher,
if you're also using cssbundling-rails).
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- rubygem-jsbundling-rails-rails71>0:www/rubygem-jsbundling-rails-rails71
- To install the port:
- cd /usr/ports/www/rubygem-jsbundling-rails-rails71/ && make install clean
- To add the package, run one of these commands:
- pkg install www/rubygem-jsbundling-rails-rails71
- pkg install rubygem-jsbundling-rails-rails71
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: rubygem-jsbundling-rails-rails71
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1722711339
SHA256 (rubygem/jsbundling-rails-1.3.1.gem) = 0fa03f6d051c694cbf55a022d8be53399879f2c4cf38b2968f86379c62b1c2ca
SIZE (rubygem/jsbundling-rails-1.3.1.gem) = 10752
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- ruby32 : lang/ruby32
- gem : devel/ruby-gems
- Runtime dependencies:
-
- rubygem-railties71>=6.0.0 : www/rubygem-railties71
- ruby32 : lang/ruby32
- gem : devel/ruby-gems
- Patch dependencies:
-
- ruby32 : lang/ruby32
- gem : devel/ruby-gems
-
- This port is required by:
- for Run
-
- www/rubygem-rails71
Configuration Options:
- No options to configure
- Options name:
- www_rubygem-jsbundling-rails-rails71
- USES:
- gem
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Number of commits found: 1
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
1.3.1 18 Sep 2024 06:13:06 |
Po-Chuan Hsieh (sunpoet) |
www/rubygem-jsbundling-rails-rails71: Add rubygem-jsbundling-rails-rails71 1.3.1
Import maps let you import JavaScript modules using logical names that map to
versioned/digested files -- directly from the browser. So you can build modern
JavaScript applications using JavaScript libraries made for ESM without the need
for transpiling or bundling.This frees you from needing Webpack, Yarn, npm, or
any other part of the JavaScript toolchain. All you need is the asset pipeline
that's already included in Rails.
With this approach you'll ship many small JavaScript files instead of one big
JavaScript file. Thanks to HTTP/2 that no longer carries a material performance
penalty during the initial transport, and in fact offers substantial benefits
over the long run due to better caching dynamics. Whereas before any change to
any JavaScript file included in your big bundle would invalidate the cache for
the the whole bundle, now only the cache for that single file is invalidated.
There's native support for import maps in Chrome/Edge 89+, and a shim available
for any browser with basic ESM support. So your app will be able to work with
all the evergreen browsers. |
Number of commits found: 1
|