-
Notifications
You must be signed in to change notification settings - Fork 0
/
inception.txt
24 lines (17 loc) · 2.67 KB
/
inception.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
digraph Dependencies
{
graph [rankdir="LR",tooltip=" "]
"compile" [fillcolor="#FEDA3E",style="filled",tooltip="function () { return gulp.src('index.ts') .pipe(tsc({ tmpdir: 'tmp', target: 'ES5', })) .pipe(gulp.dest('.')); }"]
"compile-tests" [fillcolor="#FEDA3E",shape="tab",style="filled",tooltip="function () { return gulp.src('tests.ts') .pipe(tsc({ out: 'tests.js', tmpdir: 'tmp', target: 'ES5', })) .pipe(gulp.dest('.')); }"]
"compile-tests" -> "compile"
"default" [fillcolor="white",shape="doublecircle",style="filled",tooltip="function () {}"]
"default" -> "compile"
"inception" [fillcolor="white",style="filled",tooltip="function () { var myGraphViz = require('./index.js')(); fs.writeFileSync('inception.txt', myGraphViz); console.log('Wrote my own dependencies as a graphviz document to inception.txt. I am about to try running dot over this file, if dot is not in the path this will fail'); return gulp.src('inception.txt') .pipe(shell('dot inception.txt -O -Tpng -Tsvg')); }"]
"inception" -> "compile"
"suppress-errors" [fillcolor="white",style="filled",tooltip="function () { function monkeyPatchPipe(o) { while (!o.hasOwnProperty('pipe')) { o = Object.getPrototypeOf(o); if (!o) { return; } } var originalPipe = o.pipe; var newPipe = function() { var result = originalPipe.apply(this, arguments); if (!result.pipe['monkey patched for suppress-errors']) { monkeyPatchPipe(result); } return result.on('error', function(err) { console.log(err); this.emit('end'); }); }; newPipe['monkey patched for suppress-errors'] = true; o.pipe = newPipe; } monkeyPatchPipe(gulp.src('')); }"]
"test" [fillcolor="#B29259",shape="tab",style="filled",tooltip="function () { return gulp.src('tests.js', { read: false }) .pipe(mocha()); }"]
"test" -> "compile-tests"
"watch-test" [fillcolor="#B29259",shape="rarrow",style="filled",tooltip="function () { return gulp.watch(['index.ts', 'tests.ts'], { debounceDelay: 2000 }, ['test']); }"]
"watch-test" -> "suppress-errors"
"watch-test" -> "test" [color="#999999",style="dashed"]
}