Skip to content

Instantly share code, notes, and snippets.

@cognitom
Last active August 29, 2015 14:06
Show Gist options
  • Save cognitom/9c75e1a841c557e0b084 to your computer and use it in GitHub Desktop.
Save cognitom/9c75e1a841c557e0b084 to your computer and use it in GitHub Desktop.
gulpfileを粛々とデバッグする方法 ref: http://qiita.com/cognitom/items/c186ef02e3b878433ddb
$ npm install
console.log('DEBUG:ここがあやしい');
$ npm install -g node-inspector
// require('coffee-script/register'); // Coffeeで書いている場合は有効に
require('./gulpfile'); // gulpfileの読み込み
var gulp = require('gulp');
gulp.start('default'); // タスクの実行
$ node-debug gulpdebug.js
$ npm list > dependencies.txt
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
...略
$ gulp script --gulpfile task-script.coffee
$ gulp script --gulpfile task/script.coffee --cwd ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment