Bowerを用いたフロントエンドパッケージ管理についてお聞きしたくて質問しました。
BowerでGruntやGruntプラグインパッケージ(ex:grunt-contrib-connect)を以下のようにインストールした場合、Gruntfile.jsをプロジェクトのルートディレクトリに用意してもgruntタスクを実行できません。
cd [プロジェクトのルートディレクトリ] bower init bower install grunt --save-dev bower install grunt-contrib-connect --save-dev vim Gruntfile.js (npm管理で動く設定) grunt connect:server
コマンドを実行しようとすると以下のメッセージが出力されます...
====================== メッセージ =======================
grunt-cli: The grunt command line interface. (v0.1.13)
If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:
http://gruntjs.com/getting-started
======================================================
そもそもGruntfileの内容自体を修正すべきだとは思うのですが、
検索してもなかなかそれらしい情報はなく、どうすればいいか分からない状態です。
そもそもBowerによってGrunt関連のパッケージは管理するべきではないのでしょうか?
どうぞよろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2014/11/03 04:15