admin管理员组文章数量:1323330
You can create a plugin using the wp scaffold plugin PLUGINNAME
command. It creates a bunch of files, including .distignore
, .editorconfig
, .gitignore
, .travis.yml
.
Here is the contents of .distignore
:
# A set of files you probably don't want in your WordPress 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
My question is: what tools recognise .distignore
? Are they just wp-cli commands that recognise it? Do some online hosts like WP Engine recognise it?
You can create a plugin using the wp scaffold plugin PLUGINNAME
command. It creates a bunch of files, including .distignore
, .editorconfig
, .gitignore
, .travis.yml
.
Here is the contents of .distignore
:
# A set of files you probably don't want in your WordPress 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
My question is: what tools recognise .distignore
? Are they just wp-cli commands that recognise it? Do some online hosts like WP Engine recognise it?
- Does this topic help? – kero Commented Jan 3, 2018 at 15:29
1 Answer
Reset to default 3This is file for WP CLI. the command dist-archive
:
wp dist-archive .
Note that you need to install both WP CLI and this plugin:
wp package install wp-cli/dist-archive-command
本文标签: wp cliWhat tools respect distignore
版权声明:本文标题:wp cli - What tools respect `.distignore`? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742139286a2422510.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论