Skip to content
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

存在しないタスクを実行しようとしたら警告を出してほしい #13

Open
FujiHaruka opened this issue Jun 9, 2017 · 0 comments

Comments

@FujiHaruka
Copy link

タスクを配列で指定し、配列の要素に文字列を与えた場合、文字列で定義されたタスクが存在しない時の警告がほしい。つまり、次のような場合に警告を出してほしいです。

const pon = require('pon')

module.exports = pon({
  a: [ 'notExistTask', () => {} ]
})
$ pon a
[a] Task started...
[a] ...done! (11ms)

なお、以下のやつならちゃんと警告が出る

const pon = require('pon')

module.exports = pon({
  a: [ 'notExistTask' ]
})
$ pon a
No task found for name: "a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants