leonstafford / wp2static
通过静态网站发布实现安全性和性能。
Requires
- php: >=7.4
- ext-mbstring: *
- ext-simplexml: *
- lib-libxml: *
- leonstafford/wp2staticguzzle: ^7.2.0
- symfony/polyfill-php80: ^1.27.0
- wa72/url: ^0.7.1
Requires (Dev)
- 10up/wp_mock: ^0.5
- dealerdirect/phpcodesniffer-composer-installer: *
- mikey179/vfsstream: ^1.6
- php-parallel-lint/php-parallel-lint: *
- phpcompatibility/php-compatibility: *
- phpunit/phpunit: 9.5.24
- squizlabs/php_codesniffer: *
- szepeviktor/phpstan-wordpress: *
- thecodingmachine/phpstan-strict-rules: *
- wp-coding-standards/wpcs: *
Replaces
- dev-develop
- 7.2
- 7.1.7
- 7.1.6
- 7.1.5
- 7.1.4
- 7.1.2
- dev-feature/STR-9526_promote-strattic-benefits
- dev-feature/STR-9652_general_promotion_notice
- dev-feature/STR-STR-9651_update-plugin-screen-links
- dev-feature/STR-9650_add-strattic-link-in-sidebar
- dev-feature/fix-typing
- dev-feature/fix-code-quality-issues
- dev-feature/bump-deps
- dev-feature/bump-deps-fix-deprecations
- dev-feature/test-instructions
- dev-fix/ignore-external-reqs-unit-tests-on-ci
- dev-feature/bump-dependencies
- dev-fix/crawl-redirect-errors
- dev-master
- dev-feature/generation-vs-crawling
- dev-curl_to_guzzle
- dev-less-detection-more-discovery
This package is auto-updated.
Last update: 2024-09-14 16:50:24 UTC
README
WordPress 静态网站生成和部署插件。
最新: WP2Static 加入 Strattic,领先的 WordPress 到无头和静态网站端到端发布平台!
Strattic 慷慨地让 WP2Static 插件对开源用户可用并维护!
安装选项
- 从源代码
git clone https://github.com/wp2static/wp2static.git
(之后运行composer install
) - 通过 Composer
composer require wp2static/wp2static
- 从 wp2static.com 获取安装程序压缩包
- 从源代码编译自己的安装程序压缩包
文档
支持论坛
贡献
测试
WP2Static 包含多种类型的代码质量和工作功能测试。
测试定义为 composer.json
文件内的 Composer 脚本。
composer run-script test
将运行主要的 linting、静态分析和单元测试。默认情况下,它不会运行代码覆盖率。要运行代码覆盖率,请使用 composer run-script coverage
,这将需要安装 XDebug。
composer run-script test-integration
将运行端到端测试。这需要您拥有来自 NixOS 的 nix-shell
命令。有关集成测试的更多信息,请参阅 integration-tests
目录内的 README。
您可以通过指定 composer.json
内定义的任何脚本以命令如 composer run-script phpunit
运行单独的测试阶段。您可以传递参数,例如跳过缓慢的外部请求制作 phpunit 测试,运行 composer run-script phpunit -- --exclude-group ExternalRequests
。
持续集成由 GitHub Actions 提供,它运行代码质量、单元和端到端测试。