XF 2.2 Exclusive folder from addon build

Cylon

Member
Hi!

I only wanted to ask if there is a way to exclude a folder from the build, and not include it in the generated zip file. I'm thinking about the fixer with integration test, there is no need to distribute this files.

As I understand it, the build.json has a property to include things, but as far as I know but to exclude...

Thanks in advance.
 
You can put your files in the _no_upload directory: it will not be included in the addon build. If this method is not suitable, you can remove the files during the build process by executing the appropriate command. For example, let's remove the test.txt file from the add-on root:
JSON:
{
    "exec": [
        "rm -f _build/upload/src/addons/{addon_id}/test.txt"
    ]
}
Or if you are using Windows:
JSON:
{
    "exec": [
        "DEL /Q _build\\upload\\src\\addons\\{addon_id}\\test.txt"
    ]
}
 
Top Bottom