devarshishimpi / devarshishimpi/staticstorm
💡 [FEATURE] - Build a single script in the home directory for development and production run
- Dominant language
- JavaScript
- Stars
- 10
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
### Start Date
_No response_
### Implementation PR
_No response_
### Reference Issues
_No response_
### Summary
There is package.json file with prettier in the home directory which runs on `npm run format` and `npm run format:fix`
Similarly, create 2 files in the home directory called as `dev.js` and `prod.js`
and then add the command in package.json to run them with `npm run dev` and `npm run build` respectively
Those files respectively should build all the installation steps with **node child process** to run it and also log in the terminal of all the output. Also, add relevant error handling.
Make use of only one terminal window.
For eg: For the dev environment, once you add `npm run dev`
it should run those commands, and where you need to run both the backend and frontend.
For every backend command, add `BACKEND: ` and use **chalk package** to color the BACKEND word.
for the output of the backend ( logs ), add `BACKEND: ` and similarly use **chalk package** with different color.
Similarly for the frontend as well, with 2 more chalk colors.
### Basic Example
-
### Drawbacks
-
### Unresolved questions
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.