Example deployignore File for DeployHQ
See the following code
This is used to create a .deployignore file which can be placed in the root directory of the repository. If placed elsewhere, remember to change the paths for the files.
Additionally, when adding new files/directories:
foo/bar
only ignores the bar folder but not the files and directories within. foo/bar/**
would include all the files within the bar folder
foo/**/bar
would indicate a wildcard, any folder within the foo directory that has a bar subfolder would be ignored.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Directories to skip
themes/**/.github/**
themes/**/node_modules
themes/**/node_modules/**
## Files to skip
.babelrc
.browserslistrc
.dev.db
.deployignore
.editorconfig
themes/**/.gitignore
themes/**/composer.json
themes/**/composer.lock
themes/**/package.json
themes/**/package-lock.json
themes/**/phpcs.xml.dist
themes/**/phpmd.baseline.xml
themes/**/phpstan-baseline.neon
themes/**/phpstand-neon.dist
themes/**/phpmd.xml
themes/**/README.md
themes/**/readme.txt
This post is licensed under CC BY 4.0 by the author.