PatelUtkarsh / better-file-name-ai

WordPress plugin to rename newly uploaded images and generate alt text
https://wordpress.org/plugins/better-file-name/
16 stars 0 forks source link

Development files included in Composer installation #14

Closed edmundcwm closed 12 months ago

edmundcwm commented 12 months ago

Description

When installing the plugin via Composer the development files are also included:

Screenshot 2023-12-05 at 12 41 48 PM

Should we add a .gitattributes and export-ignore those files?

PatelUtkarsh commented 12 months ago

Good idea @edmundcwm,

Maybe we can use archive exclude https://getcomposer.org/doc/04-schema.md#archive ?

PatelUtkarsh commented 12 months ago

Composer https://getcomposer.org/doc/04-schema.md#archive did not work, Yet to deep dive into why but likely because zip is actually created by GitHub and not composer.

Fixed in #18 using .gitattributes which is working as expected. Thanks @edmundcwm.

.
├── better-file-name.php
├── composer.json
├── composer.lock
├── readme.md
├── readme.txt
└── src
    ├── Admin.php
    ├── Generate_Alt_Text_Cli.php
    ├── Image.php
    ├── Openai_Wrapper.php
    └── Settings.php

2 directories, 10 files