devrix/scaffold
最新稳定版本:1.0.2
Composer 安装命令:
composer require devrix/scaffold
包简介
DevriX: Scaffold
关键字:
README 文档
README
This is a CLI tool to scaffold a new plugin based on the DevriX plugin boilerplate.
Installation
composer global require devrix/scaffold
Note: Make sure to place the
~/.composer/vendor/bindirectory (or the equivalent directory for your OS) in your PATH so thedx-scaffoldexecutable can be located by your system.
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
Usage
After installing the composer package cd to the wp-content/plugins directory.
Then run the following command to start the interactive CLI:
dx-scaffold plugin new
You can predefine the plugin attributes by specifying them as arguments:
name=""- The name of the plugin.slug=""- The slug of the plugin.class=""- The main class of the plugin.namespace=""- The namespace of the plugin.abbr=""- The abbreviation to use for global variables.
Example usage:
dx-scaffold name="DevriX" slug="devrix" class="Devrix" namespace="DX" abbr="DX"
You can also skip parts of the interactive CLI by specifying a --skip flag.
--skip-clone- Skips the git clone step.--skip-rename- Skips the renaming/search-replace step.--skip-npm- Skipsnpm installandnpm run prod.
License
MIT DevriX
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-27