Skip to content

Add a note about using Composer to install Encore #8385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions frontend/encore/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ Then, install Encore into your project with Yarn:
If you want to use `npm`_ instead of `yarn`_, replace ``yarn add xxx --dev`` by
``npm install xxx --save-dev``.

.. tip::

If you are using Flex for your project, you can install Encore via:

.. code-block:: terminal

$ composer require encore

This command creates (or modifies) a ``package.json`` file and downloads dependencies
into a ``node_modules/`` directory. When using Yarn, a file called ``yarn.lock``
is also created/updated. When using npm 5, a ``package-lock.json`` file is created/updated.
Expand Down