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
├─┬ bower@1.3.9
│ ├── abbrev@1.0.5
│ ├── archy@0.0.2
│ ├─┬ bower-config@0.5.2
│ │ ├── graceful-fs@2.0.3
│ │ ├─┬ optimist@0.6.1
│ │ │ ├── minimist@0.0.10
│ │ │ └── wordwrap@0.0.2
│ │ └── osenv@0.0.3
│ ├── bower-endpoint-parser@0.2.2
...略
$ 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