Open moshebeeri opened 2 weeks ago
We are expecting a single command (./dev/rush_buld.sh
) that wraps all the individual Rush commands described in the README. Here's a possible solution: creating a bash script rush_build.sh
that will execute all of these commands in sequence.
Create the rush_build.sh
file:
./dev/
directory.rush_build.sh
with the following command:touch rush_build.sh
Edit the rush_build.sh
file:
rush_build.sh
script might look like:#!/bin/bash
# This script will run the rush build process
cd ./dev/
# Build all the required packages
rush build
# Rebuild to omit cache (optional, uncomment if needed)
# rush rebuild
# Prepare bundles
rush bundle
# Build webpack packages
rush package
# Validate TypeScript and generate .d.ts files
rush validate
# Optional: validate svelte files using svelte-check
rush svelte-check
# Build Docker containers for all applications
rush docker:build
# Set up all containers
rush docker:up
# Navigate back to the original directory
cd ..
Make the script executable:
chmod +x rush_build.sh
Run the script:
./dev/rush_build.sh
rush rebuild
step, depending on whether you want to omit the build cache).
Description of the issue
As I look readme file I see cd ./dev/ rush build # Will build all the required packages.
rush rebuild # could be used to omit build cache.
rush bundle # Will prepare bundles. rush package # Will build all webpack packages. rush validate # Will validate all sources with typescript and generate d.ts files required for ts-node execution. rush svelte-check # Optional. svelte files validation using svelte-check. rush docker:build # Will build Docker containers for all applications in the local Docker environment. rush docker:up # Will set up all the containers
I would expect one command ./dev/rush_buld.sh
Your environment
Steps to reproduce
See readme.md
Expected behaviour
Tell us what should happen.
Actual behaviour
Tell us what happens instead (include screenshots or logs). ./dev/rush_buld.sh
Possible solutions
./dev/rush_buld.sh
/bin/bash
cd ./dev/ rush build # Will build all the required packages.
rush rebuild # could be used to omit build cache.
rush bundle # Will prepare bundles. rush package # Will build all webpack packages. rush validate # Will validate all sources with typescript and generate d.ts files required for ts-node execution. rush svelte-check # Optional. svelte files validation using svelte-check. rush docker:build # Will build Docker containers for all applications in the local Docker environment. rush docker:up # Will set up all the containers cd .. If you know how to fix the bug, please describe your solution here.