Skip to content

Commit 801d873

Browse files
author
Phil E. Taylor
authored
s/recomile/recompile (#35236)
1 parent ece6c5d commit 801d873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ There are three options here:
5757

5858
Usually when contributing to the project the scope of the contribution should be limited, eg fixing some css bug, a javascript bug or some markup or a bug that involves changes in all these areas. The build tools were created so that you spent less time on compiling assets rather than testing a possible solution. *Embrace the watchers* and let the computer help you succeed faster and safer. There are 2 watcher at the moment: one for the Media Manager (client app based on VueJS) and another one that handles templates and the source (build) folder.
5959

60-
Assuming that you are working on the Media Manager you can run in your terminal (already in the root folder of the Joomla repo) `npm run watch:com_media`. This watcher will automatically recomile the app on every save (there is a debounce of 0.3s so if you have autosave will be clever to reduce the tasks).
60+
Assuming that you are working on the Media Manager you can run in your terminal (already in the root folder of the Joomla repo) `npm run watch:com_media`. This watcher will automatically recompile the app on every save (there is a debounce of 0.3s so if you have autosave will be clever to reduce the tasks).
6161

62-
Assuming that you are working on the Web Authenication JavaScript you can run in your terminal (already in the root folder of the Joomla repo) `npm run watch -- build/media_source/plg_system_webauthn`. This watcher will automatically recomile any JavaScript file inside the folder `build/media_source/plg_system_webauthn/js` on every save. But there's more, since you asked the watcher to check the parent folder (eg `build/media_source/plg_system_webauthn`) you can also edit the SCSS files in the `build/media_source/plg_system_webauthn/scss` or the css files in `build/media_source/plg_system_webauthn/css`. The same example for editing some SCSS in the cassiopeia template would require a command like: `npm run watch -- templates/cassiopeia/scss`.
62+
Assuming that you are working on the Web Authenication JavaScript you can run in your terminal (already in the root folder of the Joomla repo) `npm run watch -- build/media_source/plg_system_webauthn`. This watcher will automatically recompile any JavaScript file inside the folder `build/media_source/plg_system_webauthn/js` on every save. But there's more, since you asked the watcher to check the parent folder (eg `build/media_source/plg_system_webauthn`) you can also edit the SCSS files in the `build/media_source/plg_system_webauthn/scss` or the css files in `build/media_source/plg_system_webauthn/css`. The same example for editing some SCSS in the cassiopeia template would require a command like: `npm run watch -- templates/cassiopeia/scss`.
6363

6464
Once you get your code doing what it meant to do make sure that you checked that you are not breaking any of the Code Style rules by running `npm run lint:css -- --fix` and `npm run lint:js -- --fix` (the `-- --fix` will try to fix anything that's not trivial).
6565

0 commit comments

Comments
 (0)