Port details |
- rubygem-importmap-rails-rails71 Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling
- 2.0.3 www =0 2.0.1Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2024-09-18 06:22:19
- Last Update: 2024-10-14 05:26:21
- Commit Hash: 27ea279
- Also Listed In: rubygems
- License: MIT
- WWW:
- https://github.com/rails/importmap-rails
- Description:
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- rubygem-importmap-rails-rails71>0:www/rubygem-importmap-rails-rails71
- To install the port:
- cd /usr/ports/www/rubygem-importmap-rails-rails71/ && make install clean
- To add the package, run one of these commands:
- pkg install www/rubygem-importmap-rails-rails71
- pkg install rubygem-importmap-rails-rails71
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: rubygem-importmap-rails-rails71
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1728632744
SHA256 (rubygem/importmap-rails-2.0.3.gem) = c56764941f9b637791fb87123b38f206f27cc55ef03cb19894f1994184e98cc8
SIZE (rubygem/importmap-rails-2.0.3.gem) = 16896
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-actionpack71>=6.0.0 : www/rubygem-actionpack71
- rubygem-activesupport71>=6.0.0 : devel/rubygem-activesupport71
- 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-importmap-rails-rails71
- USES:
- gem
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Number of commits found: 2
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
2.0.3 14 Oct 2024 05:26:21 |
Po-Chuan Hsieh (sunpoet) |
www/rubygem-importmap-rails-rails71: Update to 2.0.3
Changes: https://github.com/rails/importmap-rails/releases |
2.0.1 18 Sep 2024 06:13:05 |
Po-Chuan Hsieh (sunpoet) |
rubygem-importmap-rails-rails71: Add rubygem-importmap-rails-rails71 2.0.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: 2
|