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

Đang mở
#9 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@devarshishimpi đang làm issue này rồi.

Từ ngày 4/10/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
JavaScript
Star
10
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của devarshishimpi/staticstorm

Tất cả issue của devarshishimpi/staticstorm

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.