Skip to content

Commit

Permalink
#14 adding yeoman updater
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckJonas committed Dec 20, 2019
1 parent 4513749 commit 3191b04
Show file tree
Hide file tree
Showing 4 changed files with 550 additions and 1 deletion.
5 changes: 5 additions & 0 deletions generators/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import yosay from "yosay";
import path from "path";
import {EOL} from 'os';
import merge from "deepmerge";
import updateNotifier from 'update-notifier';
import pkg from '../../package.json';

module.exports = class extends Generator {
private props: {};
Expand All @@ -15,6 +17,9 @@ module.exports = class extends Generator {
// Have Yeoman greet the user.
this.log(yosay(`Callaway Cloud SFDX Project`));

const notifier = updateNotifier({pkg});
notifier.notify();

const prompts = [];

return this.prompt(prompts).then(props => {
Expand Down
Loading

0 comments on commit 3191b04

Please sign in to comment.