Skip to content

Commit

Permalink
Fixed bugs; added interactive SMTP SSL configuration; added screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
artus9033 committed May 12, 2021
1 parent 52e8501 commit b65d7b4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
# Daily Reporter

This utility helps to create standardized daily reports by automatically filling parts of the email such as the contents, including date, greeting customized to match the time of day when writing, or the signature of the email.
A utility that helps to create standardized daily reports by automatically filling parts of the email such as the contents, including date, greeting customized to match the time of day when writing, or the signature of the email.

The reporter interactively asks You for it's config on the first run & for the tasks You want to include in a daily report each time it is run.

Settings (`config.json`) & recipients (`recipients.json`) are automatically checked & sanitized if needed.

## Contents

- [Daily Reporter](#daily-reporter)
- [Contents](#contents)
- [Scripts](#scripts)
- [Screenshots](#screenshots)
- [Binary download](#binary-download)

## Scripts

The utility can either be run in development mode, watching for source file changes with `npm run dev` / `npm run start` (they are equivalent), or it can be packaged to an executable file with `npm run package`.

Also, `npm run build` is available, which transpiles TypeScript code from `src/` to JavaScript in `build/`. This command is called by `npm run package` before the actual binary packaging process.

## Screenshots

<figure>
<img src="promo/screenshotConfig.jpg" alt="First time configuration">
<figcaption>First time configuration</figcaption>
</figure>

<figure>
<img src="promo/screenshotRunning.jpg" alt="Utility running">
<figcaption>Utility running</figcaption>
</figure>

## Binary download

This repository utilizes Github workflows to automatically transpile, package & release a binary distribution of the tool. You can find the newest version on the [releases page](https://github.com/artus9033/daily-reporter/releases).
Binary file added promo/screenshotConfig.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added promo/screenshotRunning.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async function main() {
fs.writeFileSync(configPath, JSON.stringify(config, null, 4));
}

signale.log(chalk.greenBright(`Successfully loaded configuration!`));
signale.success(chalk.greenBright(`Successfully loaded configuration!`));
} catch (err) {
signale.error(chalk.redBright("Invalid config.json file: "), err);
}
Expand Down Expand Up @@ -301,7 +301,7 @@ async function main() {
signale.error(chalk.redBright("Error connecting to SMTP server!"), error);
process.exit(-1);
} else {
signale.log(chalk.greenBright("Connected with SMTP server!"));
signale.success(chalk.greenBright("Connected with SMTP server!"));

inquirer
.prompt([
Expand Down Expand Up @@ -415,7 +415,7 @@ async function main() {
text: mailText,
});

signale.log(
signale.success(
chalk.greenBright("Mail successfully sent: %s"),
info.messageId
);
Expand Down

0 comments on commit b65d7b4

Please sign in to comment.