您可以使用wp scaffold plugin PLUGINNAME命令创建一个插件。它创建了一堆文件,包括.distignore、.editorconfig、.gitignore、.travis.yml。
以下是.distignore的内容:
# A set of files you probably don't want in your WordPress.org distribution
.distignore
.editorconfig
.git
.gitignore
.gitlab-ci.yml
.travis.yml
.DS_Store
Thumbs.db
behat.yml
bin
circle.yml
composer.json
composer.lock
Gruntfile.js
package.json
package-lock.json
phpunit.xml
phpunit.xml.dist
multisite.xml
multisite.xml.dist
phpcs.xml
phpcs.xml.dist
README.md
wp-cli.local.yml
yarn.lock
tests
vendor
node_modules
*.sql
*.tar.gz
*.zip我的问题是:哪些工具可以识别.distignore?他们只是用wp-cli命令来识别它吗?像WP引擎这样的在线主机认识它吗?
发布于 2019-01-29 12:25:40
这是WP CLI的文件。命令dist-archive:
wp dist-archive .请注意,您需要同时安装WP CLI和这个插件:
wp package install wp-cli/dist-archive-commandhttps://wordpress.stackexchange.com/questions/290025
复制相似问题