Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:projmate/projmate-core into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario L Gutierrez committed Mar 17, 2013
2 parents 6ee3170 + e828d8e commit 6f32729
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/lib/run/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ Runner = (function() {
return cb("PM_SILENT");
}
}
task.log.info("BEGIN dependencies");
task.log.info("BEGIN T." + task.name + " deps");
return that.executeTasks(task.dependencies, function(err) {
if (err) {
return cb(err);
} else {
if (task.dependencies) {
task.log.info("END dependencies");
task.log.info("END T." + task.name + " deps");
}
return task.execute(cb);
}
Expand Down
3 changes: 3 additions & 0 deletions dist/lib/run/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ Task = (function() {
for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
name = _ref1[_i];
pipeline = config[name];
if (!pipeline) {
continue;
}
if (Array.isArray(pipeline)) {
if (load) {
if (!(pipeline[0] instanceof this.filters.loadFiles)) {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/run/runner.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ class Runner
task.log.error "Invalid dependency: #{name}"
return cb("PM_SILENT")

task.log.info "BEGIN dependencies"
task.log.info "BEGIN T.#{task.name} deps"

that.executeTasks task.dependencies, (err) ->
if err
cb err
else
task.log.info("END dependencies") if task.dependencies
task.log.info("END T.#{task.name} deps") if task.dependencies
task.execute cb
else
task.execute cb
Expand Down
3 changes: 3 additions & 0 deletions src/lib/run/task.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class Task
for name in config.environments
# The pipeline can either be an array of filters, OR a function.
pipeline = config[name]
continue unless pipeline

if Array.isArray(pipeline)
# Each pipeline starts by loading files or just the filenames.
Expand All @@ -114,6 +115,8 @@ class Task

@pipelines[name] = { pipeline, ran: false }

# TODO find pipeline via hierarchy


# Watch files in `files.watch` or `files.include` and execute this
# tasks whenever any matching files changes.
Expand Down

0 comments on commit 6f32729

Please sign in to comment.