Skip to content

wemakecustom/wp-skeleton-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress Skeleton Installer

Will be installed with wp-skeleton.

What it does

Install WordPress and dependencies:

Add all default folders and files needed:

  • create plugins, mu-plugins, themes folders into /htdocs/wp-content/
  • add the default .gitignore for wordpress.
  • executed scripts before and after each update/install with composer to ensure a stable environement.

Installation

$ git clone [email protected]:wemakecustom/wp-skeleton-installer.git <project>
$ cd <project>
$ composer install

You will see prompt messages to set default database information, wordpress language and debug parameters.

ScriptHandler manage the installation:

  • install must-use plugins;
  • move and create symlink to WordPress files and folders;
  • manage config's files (database and basics configuration needed for WordPress);
  • set SALT keys for encryption of information stored in the user's cookies

By default, at the end, you will get WordPress and all configs files installed in <project>/test/ subfolder. To configure another subfolder, please see section configuration bellow.

Configuration

The following section in composer.json allow you to change the folder where WordPress and the config files are installed. For an example to see how to change this section, please see wp-skeleton.

{
    "extra": {
        "wordpress-install-dir": "vendor/wordpress/wordpress",
        "confs-dir": "test/confs",
        "web-dir": "test/htdocs",
        "installer-paths": {
            "test/htdocs/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
            "test/htdocs/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
            "test/htdocs/wp-content/themes/composer/{$name}/": ["type:wordpress-theme"]
        }
    }
}

So, you can change:

  • wordpress-install-dir to specify where you want to install WordPress core.
  • confs-dir to define where you install config's files (ie database).
  • web-dir to set the subfolder for WordPress, where core symlinks, themes and plugins will be installed. You will work in this subfolder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published