pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/ruby-importmap-rails
Module Name:    pkgsrc
Committed By:   taca
Date:           Mon Nov  3 06:04:31 UTC 2025
Added Files:
        pkgsrc/www/ruby-importmap-rails: DESCR Makefile PLIST distinfo
Log Message:
www/ruby-importmap-rails: add version 2.2.2
This package is required by forthcoming ruby-redmin61 package.
# Importmap for Rails
[Import maps](https://github.com/WICG/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 ES modules (ESM) without the need for
transpiling or
bundling](https://world.hey.com/dhh/modern-web-apps-without-javascript-bundling-or-transpiling-a20f2755).
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 whole bundle, now only the cache for that
single file is invalidated.
[Import maps are supported natively in all major, modern
browsers](https://caniuse.com/?search=importmap).  If you need to work with
legacy browsers without native support, you can explore using [the shim
available](https://github.com/guybedford/es-module-shims).
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/www/ruby-importmap-rails/DESCR \
    pkgsrc/www/ruby-importmap-rails/Makefile \
    pkgsrc/www/ruby-importmap-rails/PLIST \
    pkgsrc/www/ruby-importmap-rails/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/www/ruby-importmap-rails/DESCR
diff -u /dev/null pkgsrc/www/ruby-importmap-rails/DESCR:1.1
--- /dev/null   Mon Nov  3 06:04:31 2025
+++ pkgsrc/www/ruby-importmap-rails/DESCR       Mon Nov  3 06:04:31 2025
@@ -0,0 +1,24 @@
+# Importmap for Rails
+
+[Import maps](https://github.com/WICG/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 ES modules (ESM) without the need for
+transpiling or
+bundling](https://world.hey.com/dhh/modern-web-apps-without-javascript-bundling-or-transpiling-a20f2755).
+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 whole bundle, now only the cache for that
+single file is invalidated.
+
+[Import maps are supported natively in all major, modern
+browsers](https://caniuse.com/?search=importmap).  If you need to work with
+legacy browsers without native support, you can explore using [the shim
+available](https://github.com/guybedford/es-module-shims).
Index: pkgsrc/www/ruby-importmap-rails/Makefile
diff -u /dev/null pkgsrc/www/ruby-importmap-rails/Makefile:1.1
--- /dev/null   Mon Nov  3 06:04:31 2025
+++ pkgsrc/www/ruby-importmap-rails/Makefile    Mon Nov  3 06:04:31 2025
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2025/11/03 06:04:31 taca Exp $
+
+DISTNAME=      importmap-rails-2.2.2
+CATEGORIES=    www
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/rails/importmap-rails
+COMMENT=       Use ESM with importmap to manage modern JavaScript in Rails
+LICENSE=       mit
+
+#DEPENDS+=     ${RUBY_ACTIVESUPPORT_DEPENDS}
+#DEPENDS+=     ${RUBY_ACTIONPACK_DEPENDS}
+DEPENDS+=      ${RUBY_RAILTIES_DEPENDS}
+
+#
+# This pacakge is for redmine61
+#
+RUBY_RAILS_ACCEPTED=   72
+
+USE_LANGUAGES= # none
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/ruby-importmap-rails/PLIST
diff -u /dev/null pkgsrc/www/ruby-importmap-rails/PLIST:1.1
--- /dev/null   Mon Nov  3 06:04:31 2025
+++ pkgsrc/www/ruby-importmap-rails/PLIST       Mon Nov  3 06:04:31 2025
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1 2025/11/03 06:04:31 taca Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/MIT-LICENSE
+${GEM_LIBDIR}/README.md
+${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/app/controllers/importmap/freshness.rb
+${GEM_LIBDIR}/app/helpers/importmap/importmap_tags_helper.rb
+${GEM_LIBDIR}/lib/importmap-rails.rb
+${GEM_LIBDIR}/lib/importmap/commands.rb
+${GEM_LIBDIR}/lib/importmap/engine.rb
+${GEM_LIBDIR}/lib/importmap/map.rb
+${GEM_LIBDIR}/lib/importmap/npm.rb
+${GEM_LIBDIR}/lib/importmap/packager.rb
+${GEM_LIBDIR}/lib/importmap/reloader.rb
+${GEM_LIBDIR}/lib/importmap/version.rb
+${GEM_LIBDIR}/lib/install/bin/importmap
+${GEM_LIBDIR}/lib/install/config/importmap.rb
+${GEM_LIBDIR}/lib/install/install.rb
+${GEM_LIBDIR}/lib/tasks/importmap_tasks.rake
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
Index: pkgsrc/www/ruby-importmap-rails/distinfo
diff -u /dev/null pkgsrc/www/ruby-importmap-rails/distinfo:1.1
--- /dev/null   Mon Nov  3 06:04:31 2025
+++ pkgsrc/www/ruby-importmap-rails/distinfo    Mon Nov  3 06:04:31 2025
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2025/11/03 06:04:31 taca Exp $
+
+BLAKE2s (importmap-rails-2.2.2.gem) = 6103fdce3879ab00ed0c44f15ad3934ac0230766f628321464ea8714011fa1c2
+SHA512 (importmap-rails-2.2.2.gem) = 7087211e49aa0e0da657f1f49494e23fb75abab72be4d66f7aac2607defe6c7c09c0088254984c8c7fcf550ba7ab08dacf6e53f0b15c5308e7ce7913e883782c
+Size (importmap-rails-2.2.2.gem) = 20992 bytes
Home |
Main Index |
Thread Index |
Old Index