Open IrwinJames-FS opened 11 hours ago
package.json
for Project AutomationTo streamline project setup, the objective is to avoid the interactive prompts of npm create vite@latest
by establishing a pre-configured boilerplate package.json
. This approach simplifies the process, enabling the project structure to be established by copying the package.json
and running npm install
, minimizing manual steps.
The root package.json
serves as the base, providing essential dependencies and scripts.
start
: Starts the project.build
: Builds the production version.test
: Runs project tests (if needed).eject
command for custom configuration setups.The client package includes the Vite setup with necessary dependencies for the frontend.
The server package includes the backend setup, with dependencies for API and backend functionality.
vite.config.js
for explicit JSX syntax parsing, addressing Vite's Rollup import issues.App.js
to App.jsx
for clear JSX parsing, addressing Vite’s import issues.This configuration and repository setup has been published on GitHub at BradleyMatera/devtest. Links to specific files and configurations are provided below:
This approach allows for a fast and consistent setup, enabling the project to be ready for development immediately, without requiring any interactive CLI steps. The repository structure provides a clear separation between client and server, which promotes organized and maintainable code.
We need a boiler plate package.json files ideally instead of running npm create vite@latest we might be able to just copy the package.json and run npm install.
Root package
Client package
Dependencies
Server package
Dependencies