Comments (7)
Oh no good catch. I forgot to add a folder as part of my deploy script. `3.7.1 should fix this (which should be released any minute now).
from wp-mpdf.
It looks like 3.7.1 includes the vendor folder, but it looks like .gitignore file still excludes the the vendor folder. This is actually problematic for some of our sites that we manage.
should line 14 of .gitignore be removed as well?
from wp-mpdf.
What exactly do you mean with problematic? The folder is on purpose in .gitignore
as I don't want the vendor folder in github. The release process installs the latest dependencies and then packages them for the wordpress plugin repo.
from wp-mpdf.
Correct, it does package them into the release, and I can see why you would not want the vendor folder in the git repo.
We have a .gitignore file in the main document root. On some sites, we have the plugins in our version control repository.
With the vendor folder in this plugin being ignored in your release/repo, our git repository sees your .gitignore and does not include the vendor folder in our repository.
from wp-mpdf.
I see a couple of things you could try:
- Just delete the
.gitignore
file inside the plugin after installation - Force add the vendor folder to your git repo after installing the plugin
- Try explicitly allowing files inside the vendor folder from your main
.gitignore
file (not sure if that works) using the!/path/to/plugin/vendor/*
syntax.
from wp-mpdf.
I can try those, thanks!
I understand completely not wanting the vendor folder in the git repo. That makes total sense. And it looks like you have updated your deploy script to specifically include that in a deployment - also makes sense.
Just curious though, what would be the benefit of keeping the .gitignore file in the deployment at all? Is there a benefit to having that included when a website administrator downloads the plugin to their site?
Thanks.
from wp-mpdf.
I think it was more how I found other plugins doing it so I just copied it. Feel free to create a pull request to remove that file from future deployments.
from wp-mpdf.
Related Issues (20)
- Usage with output buffering HOT 1
- Why was removed from WP directory HOT 6
- Getting the Post image HOT 2
- Header & footer html problem HOT 2
- Your plugin was removed from the Wordpress Directory today HOT 3
- PHP Warning (will be Error in next PHP version) HOT 2
- PHP Warnings when I trying to use ul/ol lists in my custom wp-mpdf-theme template HOT 1
- Update mpdf HOT 7
- Can not disable "needs login" with PHP 8 HOT 1
- Flex is not working for header HOT 1
- PHP 8.0 compatibility issues HOT 2
- How to add custom font to PDF? HOT 1
- How to make the left content bigger in footer? HOT 1
- PHP Fatal error - reference to files that don't exist
- how to hide HOT 3
- custom fields and jquery chart HOT 1
- issue with images HOT 1
- format_to_post deprecated HOT 1
- Function 'mpdf_create_admin_menu' not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-mpdf.