Giter Site home page Giter Site logo

Comments (4)

jeffpaul avatar jeffpaul commented on September 2, 2024

@peterwilsoncc any recommended resolution here?

from safe-svg.

peterwilsoncc avatar peterwilsoncc commented on September 2, 2024

It looks like the following needs to be added to the composer config. The catch is that it isn't possible to included the vendor directory as we have a mix of dev and production dependencies. If the archive function is run while the dev dependencies are installed, the file will still be quite large.

	"archive": {
		"exclude": [
			"/.distignore",
			"/.github",
			"/.gitignore",
			"/.wordpress-org",
			"/.wp-env.json",
			"/.wp-env.override.json",
			"/CHANGELOG.md",
			"/CODE_OF_CONDUCT.md",
			"/composer.json",
			"/composer.lock",
			"/CONTRIBUTING.md",
			"/CREDITS.md",
			"/package-lock.json",
			"/package.json",
			"/phpcs.xml",
			"/phpunit.xml.dist",
			"/README.md",
			"/webpack.config.js",
			"/node_modules",
			"/tests"
		]

from safe-svg.

szepeviktor avatar szepeviktor commented on September 2, 2024

The same error if installed as a Composer package (GitHub ZIP contains development files).

We should use gitattributes/export-ignore as composer archive respects that.

from safe-svg.

szepeviktor avatar szepeviktor commented on September 2, 2024

We should use gitattributes/export-ignore

Oh no! This solves only the git index part of the problem.
composer archive works on the filesystem and adds everything to the zip file.

from safe-svg.

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.