whitespace-se/wordpress-boilerplate-standard
Composer 安装命令:
composer create-project whitespace-se/wordpress-boilerplate-standard
包简介
Boilerplate for a standard setup of Wordpress
README 文档
README
Boilerplate for a standard setup of Wordpress
How to install
- Create project with Composer
composer create-project whitespace-se/wordpress-boilerplate-standard <folder>
- Update package name, author and description in composer.json and package.json.
- Duplicate all example files in /config and update them to match your setup.
- Create your empty database.
- Run
valet link. - Run
valet openand then the Wordpress install wizard.
Install and activate ACF Pro
- Create a .env file and add your ACF Pro key.
- Install ACF Pro:
composer require "advanced-custom-fields/advanced-custom-fields-pro":"*"
- Activate the ACF Pro plugin:
wp plugin activate advanced-custom-fields-pro
Final steps
- Set
phpVersioninside .prettierrc.yml to the lowest version of PHP required by your environments.
Format code using Prettier
- Run
yarn installto install Prettier. - Run
yarn formatto format all applicable files. - Install a sutiable Prettier plugin for you aditor to format files automatically on save.
- Also install the Editorconfig for your editor to format files not supported by Prettier.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-03