This is a simple plug-n-play skeleton of a git-friendly Wordpress composer installation
To get started using it, use the create-project
composer command:
composer create-project athaller/wordpress-composer-template
WordPress is a PHP/MySQL-based project. We have a basic development environment that you can quickly get up and running with a few commands. First off, you will need to download and install Docker, if you don't have it already. After that, there are a few commands to run:
Running these commands will start the development environment:
npm install
npm run build:dev
npm run env:start
npm run env:install
Additionally, npm run env:stop
will stop the environment.
npm run env:cli
runs the WP-CLI tool. WP-CLI has a lot of useful commands you can use to work on your WordPress site. Where the documentation mentions running wp
, run npm run env:cli
instead. For example, npm run env:cli help
.
That's it!
Additionally, you can initialize git repository and configure it as you wish (existing .gitignore provides a good starting point).