gturpin/oowprise

本包最新版本(0.1.4)没有提供许可证信息。

OOWPrise 是一个重度采用面向对象编程技术的 WordPress 入门主题。

安装: 7

依赖项: 0

建议者: 0

安全性: 0

星标: 5

关注者: 1

分支: 0

开放问题: 6

类型:wordpress-theme

0.1.4 2023-03-23 10:16 UTC

This package is auto-updated.

Last update: 2024-09-15 16:14:53 UTC


README

OOWPrise 是一个重度采用面向对象编程技术和现代 WordPress 工具的 WordPress 入门主题。

文档可以在以下链接找到 https://gturpin-dev.github.io/OOWPrise

Packagist Packagist

OOWPrise Logo

安装

您可以使用以下方法安装 OOWPrise

composer create-project gturpin/oowprise

之后,您必须安装主题的依赖项

composer install
npm install

# Or with the provided Makefile
make init

使用方法

您有一个内置的开发环境,可以用来开发主题而无需安装 WP。

这需要在您的机器上安装 Dockerwp-env

您可以使用以下命令

wp-env start # Start the development environment
wp-env stop # Stop the development environment

# Or with the provided Makefile
make server:start
make server:stop

文档

构建资源

要构建资源,您可以使用以下命令

npm run watch:theme # Watch CSS/JS assets for development
npm run build:theme # Build CSS/JS assets for production

# Or with the provided Makefile
make watch:theme
make build:theme

Gutenberg 块

OOWPrise 内置了一个简单的块系统,允许您以简单的方式创建块。

您可以使用以下命令创建一个新的块

make create-block

# Or with slug parameter to skip the prompt
make create-block slug=your-block-slug

此命令将在 resources/blocks 目录中创建一个新的块。有关更多信息,请参阅 @wordpres/create-block 文档

要构建您的块,您可以使用以下命令

npm run watch:blocks # Watch blocks for development
npm run build:blocks # Build blocks for production

# Or with the provided Makefile
make watch:blocks
make build:blocks

部署

您可以使用以下命令部署您的主题

npm run theme-zip

# Or with the provided Makefile
make zip

此命令将创建一个可以上传到 WordPress 安装的压缩包。

贡献

TODO: 编写贡献指南

鸣谢

TODO: 编写鸣谢

许可证

OOWPrise 入门主题是开源软件,许可协议为 MIT 许可协议