並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 22 件 / 22件

新着順 人気順

huskyの検索結果1 - 22 件 / 22件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

huskyに関するエントリは22件あります。 gitToolsJavaScript などが関連タグです。 人気エントリには 『husky + lint-stagedの支配から解放されるLefthookという選択肢 - Qiita』などがあります。
  • husky + lint-stagedの支配から解放されるLefthookという選択肢 - Qiita

    HRBrain Advent Calendar 2023 25日目の記事です。 はじめに こんにちは。@yug1224(Yuji Yamaguchi)です。 これまで、pre-commit/pre-push時のLint実行にhusky+lint-stagedを使っていましたが、Monorepo環境だと設定が少し複雑になってしまうので、Lefthookを試してみることにしました。 Lefthookとは The fastest polyglot Git hooks manager out there A Git hooks manager for Node.js, Ruby and many other types of projects. Fast. It is written in Go. Can run commands in parallel. Powerful. It allows

      husky + lint-stagedの支配から解放されるLefthookという選択肢 - Qiita
    • husky v6 のインストール方法と使い方。lint-staged も導入して、品質を保とう | fwywd(フュード)powered by キカガク

      本記事では husky を導入し、コミットする前にステージングしたファイルに対して、Lint 系を実行し、コードの品質を保つようにします。またコミット前に、全体テストも実行。成果物は以下の通りです。

        husky v6 のインストール方法と使い方。lint-staged も導入して、品質を保とう | fwywd(フュード)powered by キカガク
      • Husky (v5) と lint-staged を使ってコミットする前に Prettier を実行する - 暇人じゃない

        Git でコミットする前に Prettier や ESLint を動かす方法を探すと、Husky (v4) + lint-staged の組み合わせがヒットする。 2021/02/26 時点では Husky が v5 になっていて、package.json に hook を記述するのではなく、.husky ディレクトリの hook ファイル (pre-commit など) にスクリプトを定義するやり方に変わっていたのでまとめておく。 What's new in husky 5 - DEV Community それぞれのツールについて整理すると、Husky は Git の hook を管理するツール。lint-staged は Git に stage されているファイル (コミット対象のファイル) に指定したスクリプトを実行するツール。コミット対象のファイルにのみ Lint などのスクリプト

        • Git Hooks without extra dependencies like Husky in Node.js project

          Git Hooks without extra dependencies like Husky in Node.js project Git 2.9+ supports core.hooksPath for local git hooks, so we do not need extra dependencies like husky. lint-staged recommented to use with husky. However, husky v5.0.0 is licesed under The Parity Public License. When will version 5 be MIT license again? · Issue #857 · typicode/husky We can use core.hooksPath instead of husky. 📝 hu

            Git Hooks without extra dependencies like Husky in Node.js project
          • Release v9.0.1 · typicode/husky

            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

              Release v9.0.1 · typicode/husky
            • Introducing Husky, Datadog's Third Generation Event Store

              This is the story of “Husky”, a new event storage system we built at Datadog. Building a new storage system is a fun and exciting undertaking—and one that shouldn’t be taken lightly. Most importantly, it does not happen in a vacuum. To understand the trade-offs that a new system makes, you need to understand the context: what came before it, and why we decided to build something new. From Metrics

                Introducing Husky, Datadog's Third Generation Event Store
              • Husky

                Modern native git hooks made easy Husky enhances your commits and more 🐶 woof! Automatically lint your commit messages, code, and run tests upon committing or pushing. Get started here. Check out the v9 changelog to discover all the new and improved features! 🚀 Features ​Just 2 kB (📦 gzipped) with no dependenciesExtremely fast (runs in ~1ms)Uses new Git feature (core.hooksPath)Supports: macOS,

                • husky(v4, v6) と simple-git-hooks どちらを使うべきか

                  husky v5 で使い方が変わっている(v6 でも変更後の使い方を継続している)。 husky v4 が deprecated した訳ではない (v5.0.0 リリース後にも v4 系のパッチリリースがある)。 The Parity Public License というのを初めて見ましたが、組み込んだソフトウェアも公開しないと行けないっぽい。つまり商用利用、実質不可。 ライブラリ毎の違いを確認する (CLI から) husky v4 (↓) husky v4 をインストールすると、 .git/hooks 配下に git-hooks 用の shell script が追加される。 $ git init husky-v4 $ cd husky-v4 $ npm init $ npm i husky@4 $ ls -1 .git/hooks | grep -v .sample applypat

                    husky(v4, v6) と simple-git-hooks どちらを使うべきか
                  • huskyのフックがGit GUIクライアントで有効にならない時の対処方法

                    背景husky と lint-staged を利用して pre-commit を行っている。 コマンドライン(CUI)でコミットをした際は問題なく pre-commit が走る。SourceTree などの Git GUI クライアントを利用してコミットを行うとフックがスキップされてしまう。(Fork という他の GUI アプリでも同様であった) 実行環境macOS: Mojave, Catalinahusky: 4.3.0SourceTree: 4.0.2原因husky の v3 系までは問題なかった。v4 系で run-node というモジュールが削除された事が原因のようであった。 v4 系からは、GUI アプリから node のパスが取れないことが問題のようだ(例えば bash の場合、SourceTree から.bash_profileを読み込まないので、node のパスを見つけら

                      huskyのフックがGit GUIクライアントで有効にならない時の対処方法
                    • Git で commit 前に 自動でコマンドを実行する #Node.js #husky | DevelopersIO

                      Git で commit 前に 自動でコマンドを実行する commit を hook して 自動でコマンドを実行して 開発の負担を減らす事が目的です git add my_file.js # ここのタイミングで自動でコマンド実行 git commit -m 'コミットメッセージ' 対象 Node.js を利用している環境 commit hook 系は各言語で あると思いますので 開発シーンにあったライブラリをご利用ください python はこちら - https://dev.classmethod.jp/tool/git/python-git-pre-commit/ 環境構築 npm install husky --save-dev package.json に追記 { "scripts": { "precommit": "npm test", }, "husky": { "hooks":

                        Git で commit 前に 自動でコマンドを実行する #Node.js #husky | DevelopersIO
                      • Typicode's blog - Husky 5

                        I’m happy to announce the release of husky 5 🎉 🐺 woof! During the past years, husky has grown in complexity. With this version, I wanted to go back to something simpler, more flexible and closer to the metal. You can use husky 5 in your Open Source projects today. Thanks for your support and feedback. I hope you’ll enjoy this release <3 https://github.com/typicode/husky Faster and smallerHusky 5

                        • create-react-app Lint構築よくばりパック(ESLint + TypeScript + airbnb + Prettier + lint-staged & husky + VSCode拡張) - Qiita

                          create-react-app Lint構築よくばりパック(ESLint + TypeScript + airbnb + Prettier + lint-staged & husky + VSCode拡張)TypeScriptReactESLintcreate-react-appprettier create-react-app はデフォルトでESLintおよび独自ルールが組み込まれており、何もしなくてもLintの恩恵を受けられる。しかし、そうであってもカスタマイズしたくなるのがエンジニアの悲しき性。多くの人がカスタマイズに手をだすことだろう。 本記事ではcreate-react-app 環境におけるLint構築で話題によく上がる、「ESLint + TypeScript + airbnb + Prettier + lint-staged & husky + VSCode拡張」の全てを一

                            create-react-app Lint構築よくばりパック(ESLint + TypeScript + airbnb + Prettier + lint-staged & husky + VSCode拡張) - Qiita
                          • Release v6.0.0 · typicode/husky

                            After being in early access for Open Source projects and Sponsors for a limited time, I'm happy to announce that husky 6 is MIT again and can be freely used in commercial projects! 🎉 Many thanks to the Open Source projects and Companies which have switched to/sponsored the new husky during this period! OSS is my full-time job, please consider sponsoring the development of husky on GitHub sponsors

                              Release v6.0.0 · typicode/husky
                            • Typicode's blog - Why husky doesn't autoinstall anymore

                              Another change with the new husky is that it doesn’t autoinstall Git hooks anymore. Instead, the new recommended way is to have a prepare* script in your package.json: { "prepare": "husky install" } Let’s see why. (*) There’s an exception for Yarn 2 though, see docs. Package managers best practicesFor years, package managers have discouraged the use of postinstall for anything else than compilatio

                              • husky(v7)でgit commit時にESLint/Prettier/commitlintを動かす

                                huskyのバージョンはv7を使います。もしv4を入れている場合は、手順が異なりますのでご注意ください。ちなみに、パッケージマネージャーはyarnを使います。 ESLint/Prettierの設定確認 ESLintやPrettierの導入は、本記事が冗長になるため割愛します。既にESLintやPrettierがインストール済みで、package.jsonが以下の設定になっていることが前提で書きます。 "scripts": { "lint": "eslint --fix src/**/*", "format": "prettier -w src/**/*", "fix": "yarn format && yarn lint" }

                                  husky(v7)でgit commit時にESLint/Prettier/commitlintを動かす
                                • husky v5 で消耗している人には simple-git-hooks がお薦め - Qiita

                                  Git の Hook を扱う husky というライブラリがあり、大変お世話になっていた。が、 v5 が登場してから、設定変更を余儀なくされた。 v4 とは大きく異なる設計思想のため、私達は今まで書いていた設定ファイルを変え、 .husky ディレクトリを作成し、 husky のコマンドドキュメントを読んで、確認した。 正直 husky v5 のこの変更には失望した。もちろん正当な理由が合ったのだとは思うが、このようなツールの設定変更に時間を取られたくないと思った。このようなツールにはドキュメントが存在しないくらいの方がちょうどいいと思った。なんでこんな大きなドキュメントがあるのか不思議に思った。 なんか同僚の PC で pre-commit フックが動いてないっぽい。そんでコードがフォーマットされてなくてイライラする。 OSS にプルリクくれる人にも申し訳ない。 しかも husky の変

                                    husky v5 で消耗している人には simple-git-hooks がお薦め - Qiita
                                  • Husky hooks skipped · Issue #639 · typicode/husky

                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                      Husky hooks skipped · Issue #639 · typicode/husky
                                    • モノレポ on husky戦略 - ゆるふわ技術日誌

                                      2020年は毎月2本技術的なアウトプットするぞ、と言いつつ1月から打ち破ってしまったので罪滅ぼしに最近業務でやったことについて備忘録的に書いておこうと思います。 モノレポを採用しているプロダクトにhuskyを導入したという話です。 ※前置きが長いので、いらない人は本題のところまで読み飛ばしてくださいませ。 モノレポ モノリシックレポジトリの略。 詳細な定義は知らないので、実際には違うかもしれないが(ていうか多分違う。)この記事におけるモノレポは「一つのGitリポジトリを用いて、一つのプロダクトのフロントエンド/バックエンド等のコードを管理するGit戦略」ということにして進めたいと思います。 husky github.com こいつのこと。これは一言で言うと、JS開発者間でGitフックの設定を揃えるための便利ツールとでも言えば良いのだろうか。 package.jsonに依存関係として定義して

                                        モノレポ on husky戦略 - ゆるふわ技術日誌
                                      • GitHub - ixartz/Next-js-Boilerplate: 🚀🎉📚 Boilerplate and Starter for Next.js 14+ with App Router and Page Router support, Tailwind CSS 3.4 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint + Prettier + Husky + Lint-S

                                        Developer experience first, extremely flexible code structure and only keep what you need: ⚡ Next.js with App Router support 🔥 Type checking TypeScript 💎 Integrate with Tailwind CSS ✅ Strict Mode for TypeScript and React 18 🔒 Authentication with Clerk: Sign up, Sign in, Sign out, Forgot password, Reset password, and more. 📦 Type-safe ORM with DrizzleORM, compatible with SQLite, PostgreSQL, and

                                          GitHub - ixartz/Next-js-Boilerplate: 🚀🎉📚 Boilerplate and Starter for Next.js 14+ with App Router and Page Router support, Tailwind CSS 3.4 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint + Prettier + Husky + Lint-S
                                        • ぼくの husky で設定した pre-commit が動かない。。。 - 7839

                                          今回は、エラー解決にかなり時間を要したので、備忘録として残しておく。 タイトルのとおり、新規プロジェクトを開始する際に、なぜか私の pre-commit が動かないという事態に遭遇した。pre-commit は複数人で開発を行っている際に、とても便利なのでその機能も含め、紹介する。 pre-commit とは husky と lint-staged の設定方法 インストール 設定 husky で設定した pre-commit が動かない問題 そもそも pre-commit が設定されているか確認する Git のバージョンを確認する 参照先が間違っていないか確認する Yarnのバージョンを確認する まとめ pre-commit とは Gitにも、特定のアクションが発生した時にカスタムスクリプトを叩く方法がある。(Gitフックという。)pre-commit もその一つで、コミットの実行前に実行

                                            ぼくの husky で設定した pre-commit が動かない。。。 - 7839
                                          • huskyとlint-stagedでコミット前に確実にLintを実行していく - Sweet Escape

                                            はじめに コミット前にlint系のチェックをしたいケースってあると思います。特にチーム開発とかの場合、全員がlintをちゃんと実行してほしいとかあるかと。そういったときのためにコミットのタイミングでlint系のコマンドを実行するための仕組みとしてhuskyとlint-stagedを組み合わせたものが定番かと思います。 新しいプロジェクトのリポジトリを作るたびにこの組み合わせのセットアップを行うのですが、毎回ググりながらやるのでいい加減に面倒になって自分用のメモを残しておきます。 huskyとlint-stagedそのものについては大雑把に説明すると、huskyがコミット前に何らかの処理を実行するためのツール、lint-stagedがGitでステージにあるファイルに対してlintを実行するためのツールです。 インストール yarn add husky lint-staged -D lint-

                                              huskyとlint-stagedでコミット前に確実にLintを実行していく - Sweet Escape
                                            • 200 IQ Husky Climbs Ladder To Board Boat

                                              200 IQ Husky Climbs Ladder To Board BoatTrain Your Dog https://bit.ly/3nL1Bil#wow #Viral #pets

                                                200 IQ Husky Climbs Ladder To Board Boat
                                              1

                                              新着記事