From 94ce04af40c37ed90f623969a4994b64411abe7e Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Fri, 16 Sep 2022 17:14:55 +0200 Subject: [PATCH] Adding all rpm commands It's just 4 commands - so it's easier to show them all in both versions, rather than explaining the rule **twice** ;-) Besides, it's now copy-pastable. --- frontend/encore/simple-example.rst | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/encore/simple-example.rst b/frontend/encore/simple-example.rst index 21a3bad9093..eba2412bca2 100644 --- a/frontend/encore/simple-example.rst +++ b/frontend/encore/simple-example.rst @@ -68,22 +68,26 @@ To build the assets, run the following if you use the Yarn package manager: # compile assets and automatically re-compile when files change $ yarn watch - - # if using npm, use "npm run" and then any of these commands + # or $ npm run watch # or, run a dev-server that can sometimes update your code without refreshing the page $ yarn dev-server - + # or + $ npm run dev-server + # compile assets once $ yarn dev + # or + $ npm run dev # on deploy, create a production build $ yarn build + # or + $ npm run build All of these commands - e.g. ``dev`` or ``watch`` - are shortcuts that are defined -in your ``package.json`` file. If you use the npm package manager, replace ``yarn`` -with ``npm run``. +in your ``package.json`` file. .. note::