LoginSignup
2
2

More than 5 years have passed since last update.

gulpのタスクをコマンドラインで確認したい

Posted at

やりたいこと

  • タイトル通り、ピンポイントのメモです...。
    • gulpfileに定義したタスクに、どんなもどがあるか確認したい(忘れちゃったので)

こうします

grunt -T, rake -T と同じで、-T で出力できます。

% gulp -T
[14:38:12] Using gulpfile ~/workdir/gulpfile.js
[14:38:12] Tasks for ~/workdir/gulpfile.js
[14:38:12] ├── partials
[14:38:12] ├─┬ html
[14:38:12] │ ├── inject
[14:38:12] │ ├── partials
[14:38:12] │ └── optimizeImage
[14:38:12] ├── clean
[14:38:12] ├─┬ build
[14:38:12] │ ├── html
[14:38:12] │ ├── fonts
[14:38:12] │ └── other
[14:38:12] ├─┬ protractor
[14:38:12] │ └── protractor:src
[14:38:12] ├─┬ protractor:src
[14:38:12] │ ├── serve:e2e
[14:38:12] │ └── webdriver-update
[14:38:12] ├─┬ protractor:dist
[14:38:12] │ ├── serve:e2e-dist
[14:38:12] │ └── webdriver-update

--- [ 以下略 ] ---

GUIの助けを借りる場合

IDEやエディタでもプラグイン利用でgulpのタスクの一覧表示 -> 実行ができます。
わたしの場合は、Backets や RubyMine を利用しています。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2