Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

A generator to kickstart your WordPress project in a few seconds! ⚡

License

Notifications You must be signed in to change notification settings

studiometa/create-wordpress-project

Repository files navigation

Create WordPress Project

NPM Version Dependency Status devDependency Status

A generator to kickstart your WordPress project in a few seconds! ⚡

Usage

Install

Run the following command to bootstrap a WordPress project using Studio Meta's tools and workflows:

npx @studiometa/create-wordpress-project project-name

Follow the prompt steps to complete the project creation.

To get started

  • Go to your project folder
  • Create a .env file based on .env.example
  • Generate the salts bin/get-wp-salts.sh and put them in the .env file
  • Install composer dependencies composer install
  • Create a database with WPCLI ./vendor/bin/wp db create (this command is using the variables filled in .env file)
  • Install WordPress with WPCLI ./vendor/bin/wp core install --url="<PROJECT_URL>" --admin_user="<ADMIN_USER>" --admin_email="<ADMIN_EMAIL>" --title="<SITE_TITLE>
  • Install NPM dependencies npm i
  • Have fun !

Documentation

This tool will generate a WordPress project managed by Composer and Webpack. See the readme.md file in the template folder for a more detailed documentation.

Contributing

This project's branches are managed with Git Flow, every feature branch must be merged into develop via a pull request.

TODO

  • Test if Wordpress loads plugins in a subfolder of wp-content/plugins/
  • Test if Wordpress loads mu-plugins in a subfolder of wp-content/mu-plugins/
  • Test if Wordpress loads themes in a subfolder of wp-content/themes/
  • Use a child theme