Add a README for the tests, and block the development files.
This commit is contained in:
@@ -5,3 +5,13 @@
|
||||
<FilesMatch "^\.">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
# Do not serve the development files: the tests, the packages that
|
||||
# Composer and npm install, and their configuration. These files are not
|
||||
# needed on the live site (see README.md).
|
||||
<If "%{REQUEST_URI} =~ m#^/(vendor|node_modules|tests)(/|$)#">
|
||||
Require all denied
|
||||
</If>
|
||||
<FilesMatch "^(composer\.(json|lock|phar)|package(-lock)?\.json|phpunit\.xml(\.dist)?)$">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
Reference in New Issue
Block a user