Skip to content

The one with DX improvements

Compare
Choose a tag to compare
@shakyShane shakyShane released this 07 Jan 21:55
· 94 commits to master since this release

More useful wf2 up

wf2 up will no longer attach to the docker-compose stream. That was mostly
done to aid debugging in the early days.

Because of this, we can now show a nice message when up is complete (see below),
but if you really want or need the old behaviour, simply provide -a.

# will no-longer stream docker-compose logs
wf2 up

# if you want the old behaviour
wf2 -a

image

NEW automatic clone of env.php.dist

When you run wf2 up on any M2 project, it will now check if env.php is missing + there's a env.php.dist, then it will copy env.php.dist -> env.php without needing any user input.

This, combined with the new requirement that all M2 projects contain a valid env.php.dist should mean
that getting setup on a project will be even smoother.

NEW sql command for M2

Added the sql command to the m2 recipe to allow queries to be directly executed
in the db service.

wf2 sql "select * from core_config_data"

NEW --clean flag for wf2 up

Added the --clean flag to up, it's just a safe convenience for stopping all previous containers
before starting new ones. This can be handy when switching between projects/playgrounds

# this...
wf2 up --clean

# is basically like doing
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
wf2 up

M2 is no longer the 'default' recipe

Since wf2 now has some global commands, it doesn't make sense to always select a recipe... so
it no longer does. This opens the door for more/bigger global commands & features.

NEW --recipe flag

Added the --recipe flag to allow you to explore what wf2 can do, without being in a folder
with a wf2.yml file. For example, you may just be curious and want to read the help screens
for different recipes. Well now you can

# See JUST M2 help, from anywhere
wf2 --recipe M2 --help

# See JUST Wp help
wf2 --recipe Wp --help

This is really useful for debugging how wf2/docker work, since you can combine --recipe with --dryrun.

# take a peak at how db-import works for M2, without even being in an M2 project
wf2 --recipe M2 --dryrun db-import shane.sql

NEW expose the RabbitMQ Management UI

This always existed, but the mapping was not setup in the Traefik config... But now is, and
when you run wf2 up you'll see the address to access it on.

NEW beta Wp recipe + Playground

Added a BETA Wp recipe - mostly for proving the whole 'recipe' concept and proving that all features
work & can be scoped to a recipe.

Right now the playground works well - it will setup Wordpress + Bedrock exactly how we use it at JH,
but further refinement is needed to ensure wf2 up on our existing WP sites works correctly.

wf2 wp-playground

CI changes/improvements

We have now fully migrated to GH Actions for build/linting/testing & releases.