Skip to content

Commit

Permalink
!cra added (#407)
Browse files Browse the repository at this point in the history
* !cra added

* Update src/features/commands.ts

Co-authored-by: Carl Vitullo <[email protected]>

* Update src/features/commands.ts

Co-authored-by: Carl Vitullo <[email protected]>

---------

Co-authored-by: Carl Vitullo <[email protected]>

Co-authored-by: Kristers Duģels <[email protected]>
  • Loading branch information
barrybtw and kristersd authored Aug 21, 2024
1 parent 3807912 commit 5089b72
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/features/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,25 @@ Authentication is a critical part of most web applications. Here are some resour
});
},
},
{
words: ["!cra", "!create-react-app"],
help: "Provides alternatives to Create React App, which is no longer recommended.",
category: "Web",
handleMessage: (msg) => {
msg.channel.send({
embeds: [
{
title: "create-react-app is deprecated",
type: EmbedType.Rich,
description: `
create-react-app is deprecated and no longer recommended for use. It is not maintained and has a large number of security vulnerabilities. Please use [Vite](https://vitejs.dev/) or [Next.js](https://nextjs.org/) instead. The [React docs](https://react.dev/learn/start-a-new-react-project#can-i-use-react-without-a-framework) has more to say about using React without the use of a framework like Next or Remix.
`,
color: EMBED_COLOR,
},
],
});
},
},
];

const createCommandsMessage = () => {
Expand Down

0 comments on commit 5089b72

Please sign in to comment.