💡 [FEATURE] - Build a single script in the home directory for development and production run

Aperta
#9 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@devarshishimpi ci sta già lavorando.

Dal 4/10/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement good first issue hacktoberfest hacktoberfest-accepted hacktoberfest2023 help wanted
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: <the command> and use chalk package to color the BACKEND word.
for the output of the backend ( logs ), add BACKEND: <the terminal output> 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

Lingua principale
JavaScript
Stelle
10
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di devarshishimpi/staticstorm

Tutte le issue di devarshishimpi/staticstorm

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.