GithubHelp home page GithubHelp logo

Comments (7)

fkrauthan avatar fkrauthan commented on July 17, 2024

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.

mcyrulik avatar mcyrulik commented on July 17, 2024

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.

fkrauthan avatar fkrauthan commented on July 17, 2024

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.

mcyrulik avatar mcyrulik commented on July 17, 2024

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.

fkrauthan avatar fkrauthan commented on July 17, 2024

I see a couple of things you could try:

  1. Just delete the .gitignore file inside the plugin after installation
  2. Force add the vendor folder to your git repo after installing the plugin
  3. 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.

mcyrulik avatar mcyrulik commented on July 17, 2024

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.

fkrauthan avatar fkrauthan commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.