Skip to content

Commit

Permalink
Added default context support
Browse files Browse the repository at this point in the history
  • Loading branch information
moonpyk committed Nov 4, 2014
1 parent 1342ed9 commit 0066142
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .npmignore
@@ -1,5 +1,5 @@
*.map
*.sublime-project
*.sublime-*
*.ts
.idea/
typings/
5 changes: 5 additions & 0 deletions lib/app.ts
Expand Up @@ -151,6 +151,11 @@ class App {
pretend = _.isBoolean(program['pretend']) && program['pretend'],
projectMode = _.isArray(program.args) && program.args.length > 0;

// No provided cmd context, trying the default one
if (_.isEmpty(context) && !_.isEmpty(cnf.Configuration.defaults.default_context)) {
context = cnf.Configuration.defaults.default_context;
}

// For each projects, we create of list of tasks, depending
// on each project configuration. Each project is a task of tasks.
var projectsTasks = _(conf.projects()).map((pConf:cnf.IProjectConfiguration, pKey:string) => {
Expand Down

0 comments on commit 0066142

Please sign in to comment.