Skip to content

Fixes #32 Remove files from export#34

Open
remyperona wants to merge 7 commits intotrunkfrom
fix/32-package-lock
Open

Fixes #32 Remove files from export#34
remyperona wants to merge 7 commits intotrunkfrom
fix/32-package-lock

Conversation

@remyperona
Copy link
Copy Markdown

@remyperona remyperona commented May 4, 2026

Description

Fixes #32

Remove package-lock.json and webpack.config.js from production files

Type of change

  • Bug fix (non-breaking change which fixes an issue).

Detailed scenario

What was tested

Files are not present anymore when exporting the library (through composer for example)

How to test

Use branch dev-fix/32-package-lock as version for the plugin family in composer file. Check the files are not present in the folder

Affected Features & Quality Assurance Scope

No feature affected directly

Technical description

Documentation

This PR updates the project’s export configuration so that development/build artifacts are excluded from distribution archives (e.g., Composer/GitHub “dist” installs), aligning with issue #32’s goal of reducing security scanner noise from non-production files.

Mandatory Checklist

Code validation

  • I validated all the Acceptance Criteria. If possible, provide screenshots or videos.
  • I triggered all changed lines of code at least once without new errors/warnings/notices.
  • I implemented built-in tests to cover the new/changed code.

Code style

  • I wrote a self-explanatory code about what it does.
  • I protected entry points against unexpected inputs.
  • I did not introduce unnecessary complexity.
  • Output messages (errors, notices, logs) are explicit enough for users to understand the issue and are actionnable.

Unticked items justification

Not applicable for this PR

wordpressfan and others added 7 commits July 14, 2025 15:31
* make first version works

* use correct js file

* remove not needed changes

* play with gitattributes

* try changing the location of assets

* restructuring the assets

* check if imagify is activated or not

* try install and activate imagify with button click

* try admin-ajax

* add preloader and redirect in new tab

* try inserting the content via JS

* add code for block editor

* change the admin.js code to make it works

* add template with the correct HTML

* start adding the style.css

* add styles

* adjust admin script to handle the install process

* add the missed image

* adjust the code and fix minor bugs

* fix css

* fix all phpcs

* add the assets php files into ignore

* Update assets-src/js/admin.js for code review change

Co-authored-by: Gaël Robin <robin.gael@gmail.com>

* add the version as a property to be easily changed

* fix styling

* Set imagify partner

* fix post install code to use the correct files

* make it more dynamic

* use wp_add_inline_script instead of wp_localize_script

* check if the GET index has a value before moving forward

* fix phpcs

* fixed comments from Hanna

* Fixed conflict changes

---------

Co-authored-by: Gaël Robin <robin.gael@gmail.com>
Co-authored-by: Michael Lee <michaelleemichaellee408@gmail.com>
* add close button into media uploader

* add the missed button

* remove the promote imagify notice correctly

* build assets again

* fix phpcs

* adjust close button size

* add the button also for the image block

* fix the close button size

* change the version 1.0.6 before releasing
# Conflicts:
#	src/assets/js/admin.js
Co-authored-by: Copilot <copilot@github.com>
@remyperona remyperona requested review from a team and Copilot May 4, 2026 19:53
@remyperona remyperona self-assigned this May 4, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s export configuration so that development/build artifacts are excluded from distribution archives (e.g., Composer/GitHub “dist” installs), aligning with issue #32’s goal of reducing security scanner noise from non-production files.

Changes:

  • Mark webpack.config.js as export-ignore in .gitattributes.
  • Mark package-lock.json as export-ignore in .gitattributes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Vulnerability] Security Vulnerabilities

3 participants