From nobody Wed Sep 18 06:18:48 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X7pPh6M5tz5W03L; Wed, 18 Sep 2024 06:18:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X7pPh28LJz4F01; Wed, 18 Sep 2024 06:18:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726640328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xOucRg7n7fws4PXUJ34hSg+uZw/2Z92nyIDCH91k+dQ=; b=WBCM9IxWjJcAr7SvqbeQ/kSBzUFtO2VEaFgGlSJgGw4um6HaUblFP+1sFEMKlOc/W/reDF uK91KSfcC2IbnfjkvTHLnwiSe0JroDfM3bMDpO5GkG8kWlHWX0ShaemvdpHOMCV6ARqlqw DQtqeFclNCNwy4WDMd/ysiv5zyGiXvp57aOx4uVTQ3vfLy85Yj1sm7aor3NQg/v3Jowb3J lIrtBv/gMuIxXMOLVNHDqyf+s/gjtDkolcZ4mnPXk0E0piRGYEDMNzkKshM3TzMAKGOKy/ ZFcLFW43+/EAnZmkXa14C1hupwcRHH55W7aFyam+1tEo+VqNgtDamtT2X/WeoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726640328; a=rsa-sha256; cv=none; b=rD1n05BMksuawQ2yFwWdrCCEgoehUMwPGAMIn42Y7h0v+Ajxkwoa9RlQiFPlpMUZL1k4Dq vRLwSDwICKcCKf5Z4Z9UrUZeeUinEtzK8kR1OyLrkGGGQ5PfR8GUuEg8H2+A6tJNw69VUQ giZGnG+2iMzzrxgyCsEKUpajRj0MRXRTWrbZhjD+rI89c+hB7T5NoiUpWLiykzXoqJz2e3 A7AhYb48BYBP1V4PV43+zm5sfKvZz/1UTZlOwWRqNyJLEN/n/JZi7dkMvHGRsVI/t9pYAE GY8CkBCWlrYyiY0Jx4I2SYmMavZtAY6KBfBQ0BA5wSwX7x0qnBVRq7m9wFeHag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726640328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xOucRg7n7fws4PXUJ34hSg+uZw/2Z92nyIDCH91k+dQ=; b=Kprb/xvUXnkmChfM+nv6Y32TO7YFNt8Zn/E4zHf+pyopm1t8dxQHtsUIlLDmOX9FWljV9W 7IrPdNnT8kulK0dpSqY3TH2qaNh3zdtosyOPtPcvz42/pUsDea7cGu95kZlgWAmM2ANW6e tnIfZTC2WC68Elqn9QTf/HYdHeZxRqETUFiB2GA9AOXR6yLjOTIMHldl7mUgC+MuXKJeSo qM+TIGgFA2Hqg1XIQ1ujzyvbzALxfWqjBnspiw3EF2VnnsQMbBf3xn3+YwVQ6GU9epqt7S 5LaAhobOWwzuo10PXftIdL0OMb0iZtGTuprk1wCNWrTGyZi7r64LYRVXyKpjkQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X7pPh0v0jz1915; Wed, 18 Sep 2024 06:18:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48I6ImWj032062; Wed, 18 Sep 2024 06:18:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48I6Imhp032059; Wed, 18 Sep 2024 06:18:48 GMT (envelope-from git) Date: Wed, 18 Sep 2024 06:18:48 GMT Message-Id: <202409180618.48I6Imhp032059@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: a7ba0c40b595 - main - www/rubygem-jsbundling-rails-rails71: Add rubygem-jsbundling-rails-rails71 1.3.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a7ba0c40b595a14c5f6a6593b5e76e95a42e722a Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a7ba0c40b595a14c5f6a6593b5e76e95a42e722a commit a7ba0c40b595a14c5f6a6593b5e76e95a42e722a Author: Po-Chuan Hsieh AuthorDate: 2024-09-18 05:51:47 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-09-18 06:13:06 +0000 www/rubygem-jsbundling-rails-rails71: Add rubygem-jsbundling-rails-rails71 1.3.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. --- www/Makefile | 1 + www/rubygem-jsbundling-rails-rails71/Makefile | 20 ++++++++++++++++++++ www/rubygem-jsbundling-rails-rails71/distinfo | 3 +++ www/rubygem-jsbundling-rails-rails71/pkg-descr | 12 ++++++++++++ 4 files changed, 36 insertions(+) diff --git a/www/Makefile b/www/Makefile index 0d6e1a732396..f768d75e2d82 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2101,6 +2101,7 @@ SUBDIR += rubygem-jruby-rack SUBDIR += rubygem-jsbundling-rails SUBDIR += rubygem-jsbundling-rails-rails70 + SUBDIR += rubygem-jsbundling-rails-rails71 SUBDIR += rubygem-jsobfu SUBDIR += rubygem-json-jwt SUBDIR += rubygem-jsonb_accessor diff --git a/www/rubygem-jsbundling-rails-rails71/Makefile b/www/rubygem-jsbundling-rails-rails71/Makefile new file mode 100644 index 000000000000..938a442d6ea3 --- /dev/null +++ b/www/rubygem-jsbundling-rails-rails71/Makefile @@ -0,0 +1,20 @@ +PORTNAME= jsbundling-rails +PORTVERSION= 1.3.1 +CATEGORIES= www rubygems +MASTER_SITES= RG +PKGNAMESUFFIX= -rails71 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack +WWW= https://github.com/rails/jsbundling-rails + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/MIT-LICENSE + +RUN_DEPENDS= rubygem-railties71>=6.0.0:www/rubygem-railties71 + +USES= gem + +NO_ARCH= yes + +.include diff --git a/www/rubygem-jsbundling-rails-rails71/distinfo b/www/rubygem-jsbundling-rails-rails71/distinfo new file mode 100644 index 000000000000..525427ce99d0 --- /dev/null +++ b/www/rubygem-jsbundling-rails-rails71/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722711339 +SHA256 (rubygem/jsbundling-rails-1.3.1.gem) = 0fa03f6d051c694cbf55a022d8be53399879f2c4cf38b2968f86379c62b1c2ca +SIZE (rubygem/jsbundling-rails-1.3.1.gem) = 10752 diff --git a/www/rubygem-jsbundling-rails-rails71/pkg-descr b/www/rubygem-jsbundling-rails-rails71/pkg-descr new file mode 100644 index 000000000000..a9cca1c01efb --- /dev/null +++ b/www/rubygem-jsbundling-rails-rails71/pkg-descr @@ -0,0 +1,12 @@ +Use esbuild, rollup.js, or Webpack to bundle your JavaScript, then deliver it +via the asset pipeline in Rails. This gem provides installers to get you going +with the bundler of your choice in a new Rails application, and a convention to +use app/assets/builds to hold your bundled output as artifacts that are not +checked into source control (the installer adds this directory to .gitignore by +default). + +You develop using this approach by running the bundler in watch mode in a +terminal with yarn build --watch (and your Rails server in another, if you're +not using something like puma-dev). You can also use ./bin/dev, which will start +both the Rails server and the JS build watcher (along with a CSS build watcher, +if you're also using cssbundling-rails).