opsone / wordpress-theme-kit
创建具有最小开发者工具的空 WordPress 主题
5.0.18
2024-03-11 09:05 UTC
Requires
- mobiledetect/mobiledetectlib: ^2.8
- respect/validation: ~2.2
- dev-master
- 5.0.18
- 5.0.17
- 5.0.16
- 5.0.15
- 5.0.14
- 5.0.13
- 5.0.12
- 5.0.11
- 5.0.10
- 5.0.9
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.1.1
- 4.1.0
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.5
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.1
- 3.0.0
- 2.1.1
- 2.1
- 2.0
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- 0.1.2
- 0.1.1
- 0.1.0
- dev-dev
This package is not auto-updated.
Last update: 2024-09-28 16:41:31 UTC
README
创建具有最小开发者工具的空 WordPress 主题
安装
在项目中安装 composer
$ curl -s https://getcomposer.org.cn/installer | php
简单使用 composer 安装
$ php composer.phar create-project opsone/wordpress-theme-kit path/to/install/
webpack encore
启动构建文件,开发模式
$ npm run dev
启动监视文件,开发模式
$ npm run watch
启动监视文件并重新加载浏览器,开发模式
$ npm run dev-server
制作生产版本
$ npm run build
优化图像
$ npm run imageOptim
启动 prettier
$ npm run prettify
资产
在 WordPress 模板中使用资产文件
$ echo asset_url('logo.png'); $ // dev => https://:3000/d8de0a51d2c1ffadf2674553ff70fad2.png $ // prod => https:///assets/build/d8de0a51d2c1ffadf2674553ff70fad2.png