-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4bd2bca
commit b4e2db9
Showing
3 changed files
with
2 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,22 +1,16 @@ | ||
const welcome = require('cli-welcome'); | ||
const checkNode = require('cli-check-node'); | ||
const pkgJSON = require('./../package.json'); | ||
const updateNotifier = require('update-notifier'); | ||
const unhandledError = require('cli-handle-unhandled'); | ||
|
||
module.exports = async () => { | ||
unhandledError(); | ||
checkNode(`12`); | ||
checkNode(`10`); | ||
welcome(`ramadan-cli`, `by Awais.dev\n${pkgJSON.description}`, { | ||
bgColor: `#81EF96`, | ||
color: `#FFFFFF`, | ||
bold: true, | ||
clear: true, | ||
version: `v${pkgJSON.version}` | ||
}); | ||
updateNotifier({ | ||
pkg: pkgJSON, | ||
shouldNotifyInNpmScript: true, | ||
updateCheckInterval: 1000 * 60 * 60 * 24 * 7 // 1 week. | ||
}).notify({isGlobal: true}); | ||
}; |