Skip to content

Commit

Permalink
📚 Install Ember-Inspector with Ember-Electron
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrieseberg committed Feb 15, 2016
1 parent ec41a58 commit b0ca8a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions blueprints/ember-electron/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ module.exports = {
packages.push({name: 'electron-packager'});
}

if (!dependencies['electron-packager']) {
packages.push({name: 'ember-inspector'});
}

if (packages.length > 0) {
return this.addPackagesToProject(packages);
}
Expand Down
4 changes: 3 additions & 1 deletion lib/helpers/debug-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ var inspectorSocket = null;
// Server static files for the inspector

if (!inspectorPath) {
console.error('Ember Inspector not found!');
console.log(chalk.bold.red('Ember Inspector not found!'));
console.log(chalk.red('You can fix this issue by running "npm i ember-inspector --save-dev".'));
process.exit(1);
}

remoteDebugger.use('/', express.static(inspectorPath, {
Expand Down

0 comments on commit b0ca8a8

Please sign in to comment.