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?

Share Improve this question edited Jan 3, 2018 at 14:34 Pat J 12.4k2 gold badges28 silver badges36 bronze badges asked Jan 3, 2018 at 14:32 FlimmFlimm 7207 silver badges25 bronze badges 1
  • Does this topic help? – kero Commented Jan 3, 2018 at 15:29
Add a comment  | 

1 Answer 1

Reset to default 3

This 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