Last active
August 29, 2015 14:06
-
-
Save cognitom/9c75e1a841c557e0b084 to your computer and use it in GitHub Desktop.
gulpfileを粛々とデバッグする方法 ref: http://qiita.com/cognitom/items/c186ef02e3b878433ddb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('DEBUG:ここがあやしい'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm install -g node-inspector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require('coffee-script/register'); // Coffeeで書いている場合は有効に | |
require('./gulpfile'); // gulpfileの読み込み | |
var gulp = require('gulp'); | |
gulp.start('default'); // タスクの実行 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ node-debug gulpdebug.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm list > dependencies.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
├─┬ 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 | |
...略 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gulp script --gulpfile task-script.coffee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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