summaryrefslogtreecommitdiff
path: root/www/rubygem-importmap-rails-rails80
diff options
context:
space:
mode:
Diffstat (limited to 'www/rubygem-importmap-rails-rails80')
-rw-r--r--www/rubygem-importmap-rails-rails80/Makefile22
-rw-r--r--www/rubygem-importmap-rails-rails80/distinfo3
-rw-r--r--www/rubygem-importmap-rails-rails80/pkg-descr17
3 files changed, 42 insertions, 0 deletions
diff --git a/www/rubygem-importmap-rails-rails80/Makefile b/www/rubygem-importmap-rails-rails80/Makefile
new file mode 100644
index 000000000000..d6f015e9a4a2
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails80/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= importmap-rails
+PORTVERSION= 2.2.2
+CATEGORIES= www rubygems
+MASTER_SITES= RG
+PKGNAMESUFFIX= -rails80
+
+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-actionpack80>=6.0.0:www/rubygem-actionpack80 \
+ rubygem-activesupport80>=6.0.0:devel/rubygem-activesupport80 \
+ rubygem-railties80>=6.0.0:www/rubygem-railties80
+
+USES= gem
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-importmap-rails-rails80/distinfo b/www/rubygem-importmap-rails-rails80/distinfo
new file mode 100644
index 000000000000..1d82f88590a8
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails80/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1757121890
+SHA256 (rubygem/importmap-rails-2.2.2.gem) = 729f5b1092f832780829ade1d0b46c7e53d91c556f06da7254da2977e93fe614
+SIZE (rubygem/importmap-rails-2.2.2.gem) = 20992
diff --git a/www/rubygem-importmap-rails-rails80/pkg-descr b/www/rubygem-importmap-rails-rails80/pkg-descr
new file mode 100644
index 000000000000..184d7013fa42
--- /dev/null
+++ b/www/rubygem-importmap-rails-rails80/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.