forked from lando/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bootstrap): Add bootstrap event handling and fix lando is not ye…
…t setup errors
- Loading branch information
1 parent
a21b7d0
commit 8fb8545
Showing
8 changed files
with
64 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
|
||
module.exports = async (app, lando) => { | ||
if (!_.isEmpty(_.get(app, 'config.tooling', {}))) { | ||
app.log.verbose('additional tooling detected'); | ||
|
||
// Add the _init tasks for the bootstrap event! | ||
// TODO(flo): They are duplicated through "app-add-tooling" but I do not care for now! | ||
_.forEach(require('../utils/get-tooling-tasks')(app.config.tooling, app), task => { | ||
if (task.service !== '_init') { | ||
return; | ||
} | ||
|
||
app.log.debug('adding app cli task %s', task.name); | ||
const injectable = _.has(app, 'engine') ? app : lando; | ||
app.tasks.push(require('../utils/build-tooling-task')(task, injectable)); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters