Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2023 07:59:25 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: d414bf7c3780 - main - www/rubygem-importmap-rails-rails70: Add rubygem-importmap-rails-rails70 1.2.1 (copied from rubygem-importmap-rails)
Message-ID:  <202311010759.3A17xP0F045643@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=d414bf7c3780b74c1a38875db9b21db233763206

commit d414bf7c3780b74c1a38875db9b21db233763206
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-01 07:56:33 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-01 07:56:33 +0000

    www/rubygem-importmap-rails-rails70: Add rubygem-importmap-rails-rails70 1.2.1 (copied from rubygem-importmap-rails)
---
 www/Makefile                                  |  1 +
 www/rubygem-importmap-rails-rails70/Makefile  | 21 +++++++++++++++++++++
 www/rubygem-importmap-rails-rails70/distinfo  |  3 +++
 www/rubygem-importmap-rails-rails70/pkg-descr | 17 +++++++++++++++++
 4 files changed, 42 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 358665580871..ec5ec35737bf 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2062,6 +2062,7 @@
     SUBDIR += rubygem-httpi
     SUBDIR += rubygem-hurley
     SUBDIR += rubygem-importmap-rails
+    SUBDIR += rubygem-importmap-rails-rails70
     SUBDIR += rubygem-innate
     SUBDIR += rubygem-jekyll
     SUBDIR += rubygem-jekyll-sanity
diff --git a/www/rubygem-importmap-rails-rails70/Makefile b/www/rubygem-importmap-rails-rails70/Makefile
new file mode 100644
index 000000000000..bc358ed9773b
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails70/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	importmap-rails
+PORTVERSION=	1.2.1
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	-rails70
+
+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-actionpack70>=6.0.0:www/rubygem-actionpack70 \
+		rubygem-railties70>=6.0.0:www/rubygem-railties70
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-importmap-rails-rails70/distinfo b/www/rubygem-importmap-rails-rails70/distinfo
new file mode 100644
index 000000000000..ba8b42df80c0
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails70/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1697330196
+SHA256 (rubygem/importmap-rails-1.2.1.gem) = 197251346584835422e48ba479aa02b47be955d9204548ac0d3b3531cd90b3ea
+SIZE (rubygem/importmap-rails-1.2.1.gem) = 77824
diff --git a/www/rubygem-importmap-rails-rails70/pkg-descr b/www/rubygem-importmap-rails-rails70/pkg-descr
new file mode 100644
index 000000000000..184d7013fa42
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails70/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?202311010759.3A17xP0F045643>