Skip to content

Commit

Permalink
Add some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chadhietala committed Jul 31, 2015
1 parent 5ad7273 commit 58c1125
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/all-dependencies.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var Package = require('./models/package');
var debug = require('debug')('pre-packager');
var debug = require('debug')('pre-packager:all-dependencies');
var graphlib = require('graphlib');
var Graph = graphlib.Graph;
var difference = require('lodash-node/modern/array/difference');
Expand Down
5 changes: 5 additions & 0 deletions lib/utils/sync-forward-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ var fs = require('fs-extra');
var path = require('path');
var symlinkOrCopySync = require('symlink-or-copy').sync;
var AllDependencies = require('../all-dependencies');
var bytes = require('bytes');
var debug = require('debug')('Linker:sync');

function link(source, destination) {
fs.mkdirsSync(path.dirname(destination));
Expand Down Expand Up @@ -53,6 +55,9 @@ module.exports = function(syncOptions) {
meta.source = source;
meta.destination = destination;
meta.syncedToDisk = true;

debug('Linking: ' + tail + ' ' + bytes(fs.statSync(source).size));

AllDependencies.sync(tail, heads, meta);
}
}
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"babel-core": "^5.8.3",
"broccoli-plugin": "^1.0.0",
"browserify": "^9.0.3",
"bytes": "^2.1.0",
"chalk": "^1.1.0",
"core-object": "^1.1.0",
"debug": "^2.1.3",
"ember-cli-tree-descriptor": "0.0.2",
Expand Down

0 comments on commit 58c1125

Please sign in to comment.