Skip to content

add a note about npm commands equivalent to yarn's #13861

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
Oct 22, 2020
Merged

add a note about npm commands equivalent to yarn's #13861

merged 1 commit into from
Oct 22, 2020

Conversation

nabbisen
Copy link
Contributor

I considered about which style was good to read.
Finally, I used code-in-note style, which was used in Sub-Domain Routing section.

@nabbisen nabbisen closed this Jun 17, 2020
@nabbisen nabbisen deleted the patch-2 branch June 17, 2020 11:53
@nabbisen nabbisen restored the patch-2 branch June 17, 2020 11:53
@nabbisen nabbisen reopened this Jun 17, 2020
@@ -74,6 +74,21 @@ To build the assets, run:

Stop and restart ``encore`` each time you update your ``webpack.config.js`` file.

.. note::

If you prefer npm, run these commands instead:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a choice sentence above, like for ex:
« Symfony is not linked to either Yarn neither NPM package manager for your frontend assets, choose the one you are fluent with, and use those command line respectively »
With link to both Yarn and NPM website
That way, it can avoid duplicating the code block and devs can understand they can use both command line for same output :)

@javiereguiluz javiereguiluz changed the base branch from 5.1 to 4.4 October 22, 2020 08:32
@javiereguiluz javiereguiluz merged commit c384c73 into symfony:4.4 Oct 22, 2020
@javiereguiluz
Copy link
Member

@nabbisen thanks for this contribution! While merging we changed some things to display these commands alongside the yarn commands, instead of in a separate note.

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.

4 participants