Skip to content

Commit

Permalink
Tildify the path outputs of the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 17, 2014
1 parent 1609334 commit 3357ebc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions bin/gulp.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var chalk = require('chalk');
var semver = require('semver');
var archy = require('archy');
var Liftoff = require('liftoff');
var tildify = require('tildify');
var taskTree = require('../lib/taskTree');

var cli = new Liftoff({
Expand Down Expand Up @@ -42,7 +43,7 @@ function handleArguments(env) {
}

if (!env.modulePath) {
gutil.log(chalk.red('No local gulp install found in'), chalk.magenta(env.cwd));
gutil.log(chalk.red('No local gulp install found in'), chalk.magenta(tildify(env.cwd)));
gutil.log(chalk.red('Try running: npm install gulp'));
process.exit(1);
}
Expand All @@ -60,14 +61,14 @@ function handleArguments(env) {
}

var gulpFile = require(env.configPath);
gutil.log('Using gulpfile', chalk.magenta(env.configPath));
gutil.log('Using gulpfile', chalk.magenta(tildify(env.configPath)));

var gulpInst = require(env.modulePath);
logEvents(gulpInst);

if (process.cwd() !== env.cwd) {
process.chdir(env.cwd);
gutil.log('Working directory changed to', chalk.magenta(env.cwd));
gutil.log('Working directory changed to', chalk.magenta(tildify(env.cwd)));
}

process.nextTick(function() {
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@
"gulp": "./bin/gulp.js"
},
"dependencies": {
"archy": "^0.0.2",
"chalk": "^0.4.0",
"deprecated": "^0.0.1",
"gulp-util": "^2.2.0",
"liftoff": "^0.9.3",
"orchestrator": "^0.3.0",
"pretty-hrtime": "^0.2.0",
"vinyl-fs": "^0.1.0",
"semver": "^2.2.1",
"archy": "^0.0.2",
"deprecated": "^0.0.1",
"liftoff": "^0.9.3",
"chalk": "^0.4.0"
"tildify": "^0.2.0",
"vinyl-fs": "^0.1.0"
},
"devDependencies": {
"mocha": "^1.17.0",
Expand Down

0 comments on commit 3357ebc

Please sign in to comment.