Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungBroadcom erschwert den VMware-Ausstieg(22.09.2026 um 10:36 Uhr)
Sichere ProgrammierungWhat Did You Deliberately Leave Out of Your MVP?(22.09.2026 um 11:21 Uhr)
Sichere ProgrammierungThe Most Useful AI Feature Might Be a Better Question(22.09.2026 um 11:23 Uhr)
Sichere ProgrammierungBroadcom erschwert den VMware-Ausstieg(22.09.2026 um 10:36 Uhr)
Sichere ProgrammierungWhat Did You Deliberately Leave Out of Your MVP?(22.09.2026 um 11:21 Uhr)
Sichere ProgrammierungThe Most Useful AI Feature Might Be a Better Question(22.09.2026 um 11:23 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

🚀 Automating React Project Setup with Vite, TypeScript, and Panda CSS Using a Shell Script 🐼

As developers, we often find ourselves spending too much time repeatedly setting up new projects. While the steps to initialize a project may be simple, automating them can significantly speed up the process, allowing us to focus on what…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

As developers, we often find ourselves spending too much time repeatedly setting up new projects. While the steps to initialize a project may be simple, automating them can significantly speed up the process, allowing us to focus on what we love—coding! In this post, I’ll share a shell script I wrote to automate the setup of a React project with Vite, TypeScript, SWC, and Panda CSS.






Why Automate? ⚙️



Manually setting up new projects each time can be tedious, especially when you’re working with multiple technologies like React, TypeScript, and Panda CSS. To streamline this process, I wrote a script called friday.sh, which automates the entire setup for a new React app. 🎉 The script allows you to quickly initialize a new React project, install dependencies like Axios and React Router DOM, and configure Panda CSS—all with a single command.






What Does the Script Do? 📝



Here’s what friday.sh takes care of:



• 🖥️ Initializes a React project using Vite with TypeScript and SWC.

• 🐼 Installs Panda CSS, Axios, and React Router DOM.

• ✨ Updates the CSS file with layers for Panda CSS.

• 🔧 Configures package.json and panda.config.ts files.

• 🔄 Provides options to use your preferred package manager (pnpm, npm, or yarn).





Features 🌟



• Automatic Setup: 🚀 The script handles the full setup of your React project, from creating the project to installing all necessary dependencies.

• Package Manager Choice: You can choose between pnpm, npm, and yarn. By default, it uses pnpm, but you can specify a different one if needed.

• Panda CSS Integration: 🐼 Panda CSS is installed and integrated into the project. It even updates your index.css file to include Panda’s base CSS layers.





How to Use 🚀



Run the script with the following syntax:




./friday.sh -d <directory> [-p <package-manager>] [-h]







  • -d : 📁 The directory where the React project will be created.

  • -p : (Optional) The package manager to use (pnpm, npm, or yarn). Defaults to pnpm.

  • -h: (Optional) Prints the help message and exits.






Example Usage 💡




  1. To initialize a React project in a specified directory using the default package manager (pnpm):




./friday.sh -d /path/to/project-directory







  1. To initialize a React project using a specific package manager (e.g., npm):




./friday.sh -d /path/to/project-directory -p npm







  1. To display the help message:




./friday.sh -h






Script Breakdown 🛠️



Here’s a step-by-step breakdown of what the script does:




  1. Directory Check: ✅ Ensures that the target directory is specified and created if it doesn’t exist.

  2. Package Manager Verification: 🔍 Checks whether the specified package manager is installed on your system.

  3. Project Initialization: 🖥️ Creates a new React project using Vite with TypeScript and SWC.

  4. Dependency Installation: 📦 Installs Panda CSS, Axios, and React Router DOM.

  5. CSS Configuration: 🎨 Updates the index.css file to import Panda CSS layers.

  6. Package JSON Update: 📝 Adds a script to package.json for Panda CSS code generation.

  7. Panda CSS Configuration: 🐼 Updates panda.config.ts to include jsxFramework: "react".

  8. Final Setup: 🏁 Prints instructions to run the project.






Link to Github 🔗



Github : friday.sh






Conclusion 🎉



This script has saved me a significant amount of time when setting up new React projects, especially when integrating multiple technologies like Panda CSS. I encourage you to try it out and customise it for your own needs!



Feel free to share the feedback or leave a start on Github.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten 🚀 Automating React Project Setup with Vite, TypeScript, and Panda CSS Using a Shell Script 🐼

Thematisch verwandte Begriffe: Automating, React, Project, Setup · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94426 | A vulnerability was determined in xuxueli xxl-job up to 3.5.0. The impac…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick