新しい grunt-plugin モジュールをプロジェクトにロードする方法。
ディレクトリ構造の例:
|-- abc-project
| |-- ...
| |-- app.js
| |-- Gruntfile.js --> `grunt.loadNpmTasks('my-grunt-plugin');`
| \-- package.json
|
\-- my-grunt-plugin
|-- grunt-tasks
| |-- task-a.js --> `grunt.registerTask('task-a', 'running task a', function() { ... });`
| \-- task-b.js
\-- ...
- dir
npm link
内でコマンドを実行します。my-grunt-plugin
- dir
npm link my-grunt-plugin
内でコマンドを実行して、ローカルの grunt プラグイン モジュールをリンクします。abc-project
grunt task-a
コマンドを実行すると、ログが記録されますLocal Npm module "my-grunt-plugin" not found. Is it installed?