Message-ID: <1095416992.3558.1485853642127.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3557_1862760513.1485853642126" ------=_Part_3557_1862760513.1485853642126 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Composer for Frontend Developers

Composer for Frontend Developers

If you are web designer, or working on the CSS on your website, = this documentation is all you need to know about Composer.

Error rendering macro 'excerpt-include' : User 'null' does not have permiss= ion to view the page 'glossary:Composer'.

 

Troubleshooting

You may experience some latency in dependency resolution : everything is= going normally.

If you are interested by the process, do your Composer commands with the= --verbose option activated.

Option verbose -v<= /h3>

Increase the verbosity of messages: 1 for normal output, 2 for more verb= ose output and 3 for debug

Usage:

=20
php -d memory_limit=3D-1 composer.phar <command> --verbo=
se (-v|vv|vvv)
=20

Useful commands

install

The install command reads the composer.lock file from the current direct= ory, processes it, and downloads and installs all the libraries and depende= ncies outlined in that file. If the file does not exist it will look for co= mposer.json and do the same.

Usage

=20
php -d memory_limit=3D-1 composer.phar install --dry-run --pre=
fer-dist
=20

In this example the dry-run option is mentioned to prevent you to do any= thing critical. (This option outputs the operations but will not execute an= ything and implicitly enables the verbose mode).

Do= cumentation with complete usage:

=20
php -d memory_limit=3D-1 composer.phar install [--prefer-sourc=
e] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-cust=
om-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--o=
ptimize-autoloader] [packages1] ... [packagesN]
=20

update

 The update command reads the composer.json file from the current d= irectory, processes it, and updates, removes or installs all the dependenci= es.

Interesting op= tions:

To limit the update operation to a few packages, you can list the packag= e(s) you want to update as such:

=20
php -d memory_limit=3D-1 composer.phar update vendor/package1 =
foo/mypackage 
=20

 You may also use an asterisk (*) pattern to limit the update opera= tion to package(s) from a specific vendor:

=20
php -d memory_limit=3D-1 composer.phar update vendor/package1 =
foo/* 
=20

 

 

 

 

 

 

------=_Part_3557_1862760513.1485853642126--