Skip to content

Merge all Encore installation articles into a single one #10815

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

Closed
wants to merge 3 commits into from

Conversation

javiereguiluz
Copy link
Member

@weaverryan it's OK if you disagree with this and we can close this in that case.

However, I dislike the current split installation articles because they create an artificial fragmentation and confuses readers. A single entry point to install Encore seems more useful, specially because the "Symfony Flex Installation" is tiny, so the entire article is not too long.

Having said this, I don't like the last phrase of the introduction, so it needs some reword:

The following instructions depend on whether you are installing Encore
in a Symfony application or not.

@weaverryan
Copy link
Member

weaverryan commented Dec 29, 2018

I’m fine with this. I split it originally to try to avoid confusion - I made the “Flex” install path the default one - and you would need to dig further to see the non-Flex instructions. With this, the non-Flex instructions are now right in front, and (in theory) Flex users may just keep reading and try run those commands as well. Both seem equally perfect/imperfect to me.

@javiereguiluz
Copy link
Member Author

javiereguiluz commented Dec 29, 2018

I see. Also, as reported in #10818 there aren't two installation guides but three:

  • Encore + Symfony + Flex
  • Encore + Symfony - Flex
  • Encore - Symfony - Flex

I wanted to create just a single resource to encourage the usage of Encore outside of Symfony/PHP (I used it in a Go app and it worked like a charm). I don't want to bury/hide/discourage the installation and usage of Encore outside Symfony apps. Encore is amazing and everybody should know about it.

@weaverryan
Copy link
Member

Hmm, there should be only 2, because if you’re using Symfony, we must assume you’re using Flex. So Flex+Symfony and then “not Symfony”. I can see how it’s currently unclear for the minority of Symfony, non-Flex users. So let’s go with your way

This will create a ``webpack.config.js`` file, add the ``assets/`` directory, and
add ``node_modules/`` to ``.gitignore``.
This will create a ``webpack.config.js`` file, add the ``assets/`` directory,
and add ``node_modules/`` to ``.gitignore``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let’s mention here that this also installed a bundle that you’ll need - it may help non-Flex users to know what’s going on.


.. tip::
First, make sure you `install Node.js`_ and also the `Yarn package manager`_.
The following instructions depend on whether you are installing Encore in a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m cool with this - a bit awkward - but can’t think of anything much better


First, make sure you `install Node.js`_ and also the `Yarn package manager`_. Then
run:
In your application is using :doc:`Symfony Flex </setup/flex>`, run the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If (typo)

javiereguiluz added a commit that referenced this pull request Dec 31, 2018
… (javiereguiluz)

This PR was squashed before being merged into the 3.4 branch (closes #10815).

Discussion
----------

Merge all Encore installation articles into a single one

@weaverryan it's OK if you disagree with this and we can close this in that case.

However, I dislike the current split installation articles because they create an artificial fragmentation and confuses readers. A single entry point to install Encore seems more useful, specially because the "Symfony Flex Installation" is tiny, so the entire article is not too long.

Having said this, I don't like the last phrase of the introduction, so it needs some reword:

```
The following instructions depend on whether you are installing Encore
in a Symfony application or not.
```

Commits
-------

4ef3922 Merge all Encore installation articles into a single one
nikophil pushed a commit to nikophil/symfony-docs that referenced this pull request Jan 3, 2019
…gle one (javiereguiluz)

This PR was squashed before being merged into the 3.4 branch (closes symfony#10815).

Discussion
----------

Merge all Encore installation articles into a single one

@weaverryan it's OK if you disagree with this and we can close this in that case.

However, I dislike the current split installation articles because they create an artificial fragmentation and confuses readers. A single entry point to install Encore seems more useful, specially because the "Symfony Flex Installation" is tiny, so the entire article is not too long.

Having said this, I don't like the last phrase of the introduction, so it needs some reword:

```
The following instructions depend on whether you are installing Encore
in a Symfony application or not.
```

Commits
-------

4ef3922 Merge all Encore installation articles into a single one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants