Date: Thu, 2 Jan 2025 16:30:39 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 80a89eea5235 - main - www/rubygem-importmap-rails-rails72: Add rubygem-importmap-rails-rails72 2.1.0 (copied from rubygem-importmap-rails) Message-ID: <202501021630.502GUdx1049254@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=80a89eea52356d8f9aea30e5e4ac591b2f1ed7b3 commit 80a89eea52356d8f9aea30e5e4ac591b2f1ed7b3 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2025-01-02 16:28:51 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2025-01-02 16:28:51 +0000 www/rubygem-importmap-rails-rails72: Add rubygem-importmap-rails-rails72 2.1.0 (copied from rubygem-importmap-rails) --- www/Makefile | 1 + www/rubygem-importmap-rails-rails72/Makefile | 22 ++++++++++++++++++++++ www/rubygem-importmap-rails-rails72/distinfo | 3 +++ www/rubygem-importmap-rails-rails72/pkg-descr | 17 +++++++++++++++++ 4 files changed, 43 insertions(+) diff --git a/www/Makefile b/www/Makefile index 77cda9762866..9fc122afe1f1 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2127,6 +2127,7 @@ SUBDIR += rubygem-importmap-rails SUBDIR += rubygem-importmap-rails-rails70 SUBDIR += rubygem-importmap-rails-rails71 + SUBDIR += rubygem-importmap-rails-rails72 SUBDIR += rubygem-innate SUBDIR += rubygem-jekyll SUBDIR += rubygem-jekyll-sanity diff --git a/www/rubygem-importmap-rails-rails72/Makefile b/www/rubygem-importmap-rails-rails72/Makefile new file mode 100644 index 000000000000..39c19f7cad29 --- /dev/null +++ b/www/rubygem-importmap-rails-rails72/Makefile @@ -0,0 +1,22 @@ +PORTNAME= importmap-rails +PORTVERSION= 2.1.0 +CATEGORIES= www rubygems +MASTER_SITES= RG +PKGNAMESUFFIX= -rails72 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling +WWW= https://github.com/rails/importmap-rails + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/MIT-LICENSE + +RUN_DEPENDS= rubygem-actionpack72>=6.0.0:www/rubygem-actionpack72 \ + rubygem-activesupport72>=6.0.0:devel/rubygem-activesupport72 \ + rubygem-railties72>=6.0.0:www/rubygem-railties72 + +USES= gem + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/www/rubygem-importmap-rails-rails72/distinfo b/www/rubygem-importmap-rails-rails72/distinfo new file mode 100644 index 000000000000..ad4b88292088 --- /dev/null +++ b/www/rubygem-importmap-rails-rails72/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1735228188 +SHA256 (rubygem/importmap-rails-2.1.0.gem) = 9f10c67d60651a547579f448100d033df311c5d5db578301374aeb774faae741 +SIZE (rubygem/importmap-rails-2.1.0.gem) = 17408 diff --git a/www/rubygem-importmap-rails-rails72/pkg-descr b/www/rubygem-importmap-rails-rails72/pkg-descr new file mode 100644 index 000000000000..184d7013fa42 --- /dev/null +++ b/www/rubygem-importmap-rails-rails72/pkg-descr @@ -0,0 +1,17 @@ +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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501021630.502GUdx1049254>