The script buildfresh.sh
installs dependencies, performs cleanup, and compiles the base SCSS and JS.
Runs: composer install
Runs: yarn
Moves: /app/core/wp-content/
to /app/lib/wp-content/
Runs: npm run dev
In a terminal, from your project root, enter the PHP container's shell by running: docker exec -ti COMPOSE_PROJECT_NAME-php bash
From /var/www/html
run ./buildfresh.sh
Windows Note
Open ./buildfresh.sh
Uncomment the line rm -rf vendor/ node_modules/ app/core/ /composer.lock /yarn.lock -v &&
and save.
Run ./buildfresh.sh
Windows Users: if you encounter an error while running the buildfresh script:
Open buildfresh.sh
in your text editor
Set the line endings to LF
Re-run buildfresh.sh
IF the error persists:
From the PHP container at /var/www/html
run chmod + x ./buildfresh.sh
Re-run ./buildfresh.sh