Skip to content

Commit

Permalink
chore(tools): Improve logging with tildify (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludohenin authored and mgechev committed Apr 14, 2016
1 parent eded9d6 commit d2d7b30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"stylelint": "^5.3.0",
"stylelint-config-standard": "^5.0.0",
"systemjs-builder": "^0.15.14",
"tildify": "^1.2.0",
"tiny-lr": "^0.2.1",
"traceur": "^0.0.91",
"ts-node": "^0.7.1",
Expand Down
5 changes: 5 additions & 0 deletions tools/manual_typings/seed/tildify.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module 'tildify' {
function tildify(path: string): string;
module tildify {}
export = tildify;
}
3 changes: 2 additions & 1 deletion tools/utils/seed/tasks_tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as gulp from 'gulp';
import * as util from 'gulp-util';
import * as chalk from 'chalk';
import * as isstream from 'isstream';
import * as tildify from 'tildify';
import {readdirSync, existsSync, lstatSync} from 'fs';
import {join} from 'path';

Expand All @@ -13,7 +14,7 @@ export function loadTasks(path: string): void {

function registerTask(taskname: string, path: string): void {
const TASK = join(path, taskname);
util.log('Registering task', chalk.yellow(TASK));
util.log('Registering task', chalk.yellow(tildify(TASK)));

gulp.task(taskname, (done: any) => {
const task = require(TASK);
Expand Down

0 comments on commit d2d7b30

Please sign in to comment.