B
B
BadassRolf2017-08-08 12:25:06
PHP
BadassRolf, 2017-08-08 12:25:06

How to ignore composer some folders?

There is a project on github with a folder and file
structure -folder1
-folder1.1
-folder2
-folder3
composer.json
Is it possible to somehow specify the composer so that the folder3 folder is not downloaded when the component is installed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Novikov, 2017-08-08
@BadassRolf

It will not be possible to implement such a mechanism using composer, as far as I know - it stupidly downloads the source specified in packagist.org. An option is to have a fork of the main project without a test folder, which is submitted to packagist.org.
Or remove the tests from the master branch, but store them in the one in which development is underway, branch only from it, and do not merge the tests into the master.

S
shagguboy, 2017-08-08
@shagguboy

he downloads in vendor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question