-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2022-02-22のJS: Deno 1.19、Next.js 12.1、Monorepo Toolsまとめ #962
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Deno 1.19がリリースされました。
deno vendor
という外部モジュールをリポジトリ管理するためのコマンドが追加されています。deno vendor
は外部モジュールをローカルにインポートし、Import mapsでマッピングして利用できます。deno vendor
· Issue #13346 · denoland/denoDeno.File
をDeno.FsFile
にリネームし、Deno.File
をdeprecatedに変更されています。Deno.File
は次のメジャーアップデートで削除される予定です。Deno.FsFile
やDeno.Conn
などがWeb Streamsに対応、CompressionStream
/DecompressionStream
のサポート、console.log
が循環参照の表示に対応、Deno.listen
がUnix socketsといった変更も含まれています。また、unstableなAPIとして、
Deno.getUid
、Deno.networkInterfaces
の追加なども行われています。Next.js 12.1がリリースされました。
APIサーバで
unstable_revalidate
を使ってISRのページをrevalidateできるように、next/jest
の追加、SWCの改善とMinifyの対応が追加されています。また、試験的な機能として
outputStandalone
オプションでNext.jsをサーバで動かすのに必要なファイルのみを出力できるように、React 18の対応が改善されています。Monorepo Explainedというサイトではmonorepoと関連するツールについて紹介されています。
Bazel/Gradle/Lage/Lerna/Nx/Rush/Turborepoについてキャッシュや分散タスクなどの各機能について比較しています。
サイトはNarwhal(Nx)の人が中心に作成されています。
また、State of JS 2021からMonorepo Toolsについての項目も増えているので、合わせて見てみるとよいかもしれません。
また、現在メンテナンスが止まっているLernaの
version
/publish
/run
コマンドだけを取り出したlerna-liteというツールが公開されたりしています。元々はLernaがWorkspace管理(依存関係の管理)、タスク管理(パッケージの依存を見てタスクを実行)、Publish管理(バージョンの更新やCHANGELOGの作成、公開)などの機能を持ったツールとしてスタートしています。
Workspace管理は、npm 7+/Yarn/pnpmなどのパッケージマネージャーがworkspaces機能としてサポートし始めました。
タスク管理は、TurborepoやNx(Nxは全部入り)などがより効率的に実行できるツールとして誕生しています。
Publish管理は、まだ成熟したツールは少ないですがchangesetsやlerna-lite、パッケージマネージャー自体が持っていることがあります。
アプリケーションとライブラリどちらの場合もMonorepoが広く使われるようになってきたので、
Monorepoに関するツール周りが活発になっています。