discuz 插件开发脚手架,快速开发插件
<br /><br /><strong>discuz-cli</strong><font style="font-size:16px"><font color="#000000">经常接到一些插件开发兼职,为了方便开发花点时间写了脚手架。支持 php5.6欢迎 pr</font></font><font color="#000000"><font style="font-size:16px">地址: </font></font>https://github.com/MaZhaolin/discuz-cli<font color="#333333"><font style="font-size:16px">discuz-cli 是一个用于创建 Discuz 插件的脚手架工具。通过该工具,你可以快速生成 Discuz 插件的基础结构,从而专注于插件的具体功能开发。</font></font><strong>特性</strong><ul><li>快速生成 Discuz 插件项目结构<li>简化插件开发流程<li>提供标准化的项目模板<br /></ul><strong>安装</strong><strong><font style="color:rgb(51, 51, 51)"><font style="font-size:16px">你可以通过 npm 全局安装 </font></font><strong>discuz</strong><font style="color:rgb(51, 51, 51)"><font style="font-size:16px">-cli:</font></font></strong><ol><li>npm install -g discuz-cli</ol><ol><li>discuz-cli create my-plugin</ol><br /><font style="color:rgb(51, 51, 51)"><font style="font-size:16px">该命令将会在当前目录下创建一个名为 my-plugin 的文件夹,并在其中生成插件的基本结构。</font></font>打包npm run build<font style="color:rgb(51, 51, 51)"><font style="font-size:16px">将会将插件打包到 dist 文件夹 ,打包后的插件可以直接导入到 Discuz 中。<br />打包目录可在 build/config.json 中配置</font></font><strong>模板仓库</strong><font style="color:rgb(51, 51, 51)"><font style="font-size:16px">dz-cli 使用 <font style="color:rgb(0, 136, 204)">discuz-plugin-template</font> 作为项目模板。你可以根据需要修改该模板仓库来定制生成的项目结构。<br />目前支持的模板:</font></font><ul><li>simple 基础模板<li>react-admin 支持 react 开发打包后台前台页面<br /></ul>贡献<font style="color:rgb(51, 51, 51)"><font style="font-size:16px">欢迎提交 issue 和 pull request 来帮助我们改进该项目。如果你有任何问题或建议,请在 GitHub 仓库中提出。</font></font>许可证<font style="color:rgb(51, 51, 51)"><font style="font-size:16px">该项目遵循 MIT 许可证。</font></font><br />插件<em>, </em>16px<em>, </em>left 支持一下
頁:
[1]