Skip to content

luiza/communityCallMessage #415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ export async function generate(
`%cthe manifest has been generated.`,
"color: blue; font-weight: bold",
);

await Deno.writeTextFile(manifestPath, manifestStr);
console.log(
`%c🚀 Don't miss out! Join our Community Call on deco.cx/discord every Friday at 2 p.m.
Get tips and network with fellow devs from our community, and turbocharge your projects! 🛠️`,
"color: #02F67C; font-weight: bold",
);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be nice to show this message only at fridays? I think it is a bit annoying to have this message being shown every time I run deno task start

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you, instead, verify if the current day is thursday/friday and only then show the message? Also: I think you can show it only once, per week


export const siteJSON = "site.json";
Expand Down