Grunt

詳細情報

タイトル Grunt
URL http://gruntjs.com/
バージョン ver 1.6.2
更新日 2026/04/15
追加日 2016/04/08
種別 フリーソフト
説明 Web制作に関係した様々なタスクを自動化するためのツール。

レビュー

概要

GruntはBen Almanが2012年に開発したJavaScriptベースのタスクランナーです。フロントエンド開発においてファイルの圧縮・コンパイル・テスト・Lintチェックといった繰り返し作業を自動化するために作られました。Gruntfileと呼ばれる設定ファイルにタスクを定義することで、複雑なビルドプロセスを宣言的に管理できます。2015年11月にjQuery Foundationに加入し、組織的なサポート体制のもとで開発が継続されています。Adobe・Twitter・Mozilla・Bootstrap・WordPressなど多数の大企業やオープンソースプロジェクトで採用実績があり、npmで配布される6,000以上のプラグインエコシステムを持ちます。現在のバージョンは1.6.2(2026年4月時点)です。

主要な特徴・機能

  • タスク自動化: ファイル圧縮(Minification)・コンパイル・ユニットテスト・Lintチェック・ファイル監視など開発の繰り返し作業を自動化
  • Gruntfile設定: JavaScript/JSONでタスクを宣言的に定義。プロジェクトごとのビルドプロセスを一元管理
  • 豊富なプラグインエコシステム: npmで6,000以上のプラグインが利用可能。CoffeeScript・Sass・JSHint・Jade等の主要ツールに対応
  • 独自プラグイン開発: カスタムタスクを作成してnpmに公開できる拡張性
  • ファイル監視と自動ビルド: ファイルの変更を監視して自動的にタスクを再実行
  • シンボリックリンク対応: v1.5.0以降、ファイルコピー時のシンボリックリンク処理に対応
  • npmインストール: npm install grunt-cli -g で簡単にセットアップ可能

対象ユーザー

  • フロントエンド開発のビルドプロセスを自動化したいWebエンジニア
  • CSS/JSの圧縮・コンパイル・テストを繰り返し行う開発チーム
  • Adobe・Bootstrap・WordPressなど大規模プロジェクトと同様のビルド環境を構築したい開発者
  • Node.js/npmエコシステムを活用してワークフローを効率化したいエンジニア

ライセンス情報

MIT License のオープンソースソフトウェアです。Node.js 16以上が必要です。npmでインストール可能(npm install grunt-cli -g)。公式サイト(https://gruntjs.com/)よりドキュメントを参照できます。

スクリーンショット

スクリーンショットはありません。

更新グラフ

バージョン履歴

v1.6.2
date: 2026-04-14
changes:
- Update minimatch to 3.1.5.
(PR: https://github.com/gruntjs/grunt/pull/1796)
- Update nopt to 5.0.0.
(PR: https://github.com/gruntjs/grunt/pull/1778)
v1.6.1
date: 2023-01-31
changes:
- Downgrades to glob 7 for Windows compatability
- Removes mkdirp and rimraf in favour of node.js APIs.
v1.6.0
date: 2023-01-28
changes:
- Requires node.js 16+.
- template.date now uses dateformat ~4.6.2.
- other dependency updates such as glob, rimraf, etc.
v1.5.3
date: 2022-04-23
changes:
- Patch up race condition in symlink copying.
v1.5.2
date: 2022-04-12
changes:
- Unlink symlinks when copy destination is a symlink.
v1.5.1
date: 2022-04-11
changes:
- Fixed symlink destination handling.
v1.5.0
date: 2022-04-10
changes:
- Updated dependencies.
- Add symlink handling for copying files.
v1.4.1
date: 2021-05-24
changes:
- Fix --preload option to be a known option
- Switch to GitHub Actions
- Liftup/Liftoff upgrade breaking change. Update your scripts to use --preload instead of --require. Ref: https://github.com/js-cli/js-liftoff/commit/e7a969d6706e730d90abb4e24d3cb4d3bce06ddb.
v1.4.0
date: 2021-04-21
changes:
- Security fixes in production and dev dependencies
v1.3.0
date: 2020-08-18
changes:
- Switch to use `safeLoad` for loading YML files via `file.readYAML`.
- Upgrade legacy-log to ~3.0.0.
- Upgrade legacy-util to ~2.0.0.
v1.2.1
date: 2020-07-07
changes:
- Remove path-is-absolute dependency.
(PR: https://github.com/gruntjs/grunt/pull/1715)
v1.2.0
date: 2020-07-03
changes:
- Allow usage of grunt plugins that are located in any location that
is visible to Node.js and NPM, instead of node_modules directly
inside package that have a dev dependency to these plugins.
(PR: https://github.com/gruntjs/grunt/pull/1677)
- Removed coffeescript from dependencies. To ease transition, if
coffeescript is still around, Grunt will attempt to load it.
If it is not, and the user loads a CoffeeScript file,
Grunt will print a useful error indicating that the
coffeescript package should be installed as a dev dependency.
This is considerably more user-friendly than dropping the require entirely,
but doing so is feasible with the latest grunt-cli as users
may simply use grunt --require coffeescript/register.
(PR: https://github.com/gruntjs/grunt/pull/1675)
- Exposes Grunt Option keys for ease of use.
(PR: https://github.com/gruntjs/grunt/pull/1570)
- Avoiding infinite loop on very long command names.
(PR: https://github.com/gruntjs/grunt/pull/1697)