From nobody Tue Jan 11 18:52:33 2022 X-Original-To: dev-commits-ports-all@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 74521194C5CB; Tue, 11 Jan 2022 18:52:34 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JYKZ96Lzhz4fDQ; Tue, 11 Jan 2022 18:52:33 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 B0A0D1E825; Tue, 11 Jan 2022 18:52:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20BIqXLO060287; Tue, 11 Jan 2022 18:52:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20BIqX4W060286; Tue, 11 Jan 2022 18:52:33 GMT (envelope-from git) Date: Tue, 11 Jan 2022 18:52:33 GMT Message-Id: <202201111852.20BIqX4W060286@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: 2c7fd167ef29 - main - www/rubygem-importmap-rails: Add rubygem-importmap-rails 1.0.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 2c7fd167ef29eb66efbfd8d7ff7894e1aea268d6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641927153; 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=YO3Y8wGBR+tUNQOg30lif+0uvYskUKkLYp4E54jCn7k=; b=yhhO/v5l+f5X25bfFiC2qvgZWiKADkVhPKNE1JrDzFMZAkug+98wfRR8AULT0sRu8pAgk5 iqllh4995HfUofpMHCGymDfh/8rp0VlFbF9uoJSTujwkfBE/QwuTTyEpNixKFFlh0eOZzH 8nFl6vjcm4YRrUtczBVWSWjguM4y1xejSRJKilYDxx99hE4o8ucGEp13y6H+ET7tDH3UfC /1nTJjhHGuz4IfOrkykVeqvpLbdsFG2Tll398A/NregL04osrmEgpgT7jQu9Fepgqp5uFt 2oV0sEf20PV7oSNumzNt53xGUII91+O+LPyKm83kWw68tF/d2R+ANMDJOunWbw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641927153; a=rsa-sha256; cv=none; b=bBFnD++kv4nvVcwnBna0S/O9l7QT3n8IX4s/bwo+Mju1r/3S+tbMUulGPjU1wS9JDa5h0j FslVyGzMC76mtXgNrHzjioDwmX2N8Tid2HJzSXNdDh6oDSs5XRcKlOkJk4e1hAjHnOUbAQ +iU6o3HJ+NmL8jQsd1pCD3zc/qDBPst1/X73BIxqcXbN6BVji+RUo79/jI8zfB9ePAI0FV BjLkgsvE7QFJdIqtVVJO8CAfi9Sqy9MNMwri8SS1ocR71vtPyH8sd9fN6q4sbQ8yxcZQeL WWFNNLSmg8XuEzCrjeKyHqEQWFvvLsU+0arXE2r0SCCxbeS9DJJVjiKhuu0aHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=2c7fd167ef29eb66efbfd8d7ff7894e1aea268d6 commit 2c7fd167ef29eb66efbfd8d7ff7894e1aea268d6 Author: Po-Chuan Hsieh AuthorDate: 2022-01-11 16:56:21 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-01-11 18:43:48 +0000 www/rubygem-importmap-rails: Add rubygem-importmap-rails 1.0.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: https://github.com/rails/importmap-rails --- www/Makefile | 1 + www/rubygem-importmap-rails/Makefile | 24 ++++++++++++++++++++++++ www/rubygem-importmap-rails/distinfo | 3 +++ www/rubygem-importmap-rails/pkg-descr | 19 +++++++++++++++++++ 4 files changed, 47 insertions(+) diff --git a/www/Makefile b/www/Makefile index e9afa9734687..fb4cf69e9a57 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1952,6 +1952,7 @@ SUBDIR += rubygem-httpclient SUBDIR += rubygem-httpi SUBDIR += rubygem-hurley + SUBDIR += rubygem-importmap-rails SUBDIR += rubygem-innate SUBDIR += rubygem-jekyll SUBDIR += rubygem-jekyll-sanity diff --git a/www/rubygem-importmap-rails/Makefile b/www/rubygem-importmap-rails/Makefile new file mode 100644 index 000000000000..f87196b3d706 --- /dev/null +++ b/www/rubygem-importmap-rails/Makefile @@ -0,0 +1,24 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= importmap-rails +PORTVERSION= 1.0.1 +CATEGORIES= www rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/MIT-LICENSE + +BROKEN_RUBY26= yes + +RUN_DEPENDS= rubygem-actionpack70>=6.0.0:www/rubygem-actionpack70 \ + rubygem-railties70>=6.0.0:www/rubygem-railties70 + +USES= gem +USE_RUBY= yes + +NO_ARCH= yes + +.include diff --git a/www/rubygem-importmap-rails/distinfo b/www/rubygem-importmap-rails/distinfo new file mode 100644 index 000000000000..9895cbc36eb9 --- /dev/null +++ b/www/rubygem-importmap-rails/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1641045742 +SHA256 (rubygem/importmap-rails-1.0.1.gem) = ddbf08621a8db64e7680d1dd39ad3d1be4082377c48448782c3419cb545884f0 +SIZE (rubygem/importmap-rails-1.0.1.gem) = 67072 diff --git a/www/rubygem-importmap-rails/pkg-descr b/www/rubygem-importmap-rails/pkg-descr new file mode 100644 index 000000000000..3845b7c48373 --- /dev/null +++ b/www/rubygem-importmap-rails/pkg-descr @@ -0,0 +1,19 @@ +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: https://github.com/rails/importmap-rails