This is an automated email from the ASF dual-hosted git repository.

sebawagner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings-site.git


The following commit(s) were added to refs/heads/master by this push:
     new c98a65e  OPENMEETINGS-2654 Update website with new commands for 
updating JS code dynamically.
c98a65e is described below

commit c98a65ec82bbc195a37e52f060f6e0ce1cc575d1
Author: Sebastian Wagner <[email protected]>
AuthorDate: Sun Aug 29 16:19:41 2021 +1200

    OPENMEETINGS-2654 Update website with new commands for updating JS code 
dynamically.
---
 BuildInstructions.html | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/BuildInstructions.html b/BuildInstructions.html
index 42f65be..cfabe93 100644
--- a/BuildInstructions.html
+++ b/BuildInstructions.html
@@ -3,7 +3,7 @@
 
   <!doctype html>
 <!--
- Generated by Apache Maven Doxia  at 2021-07-17  Rendered using Reflow Maven 
Skin 2.3.0 (http://devacfr.github.io/reflow-maven-skin)
+ Generated by Apache Maven Doxia  at 2021-08-29  Rendered using Reflow Maven 
Skin 2.3.0 (http://devacfr.github.io/reflow-maven-skin)
 -->
 <html  xml:lang="en" lang="en">
         <head>
@@ -214,7 +214,7 @@
         <main class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-8" 
role="main">
     <nav aria-label="breadcrumb">
         <ol class="breadcrumb">
-            <li class="publishDate version-date">    Last Published: 
2021-07-17</li>
+            <li class="publishDate version-date">    Last Published: 
2021-08-29</li>
         </ol>
     </nav>
                     <section> 
@@ -305,16 +305,21 @@ cd ..; mvn clean install -PallModules,quick,mysql -pl 
openmeetings-util,openmeet
  <div> 
   <p>You can update Javascript and CSS files and then copy them at runtime. No 
need to re-run the entire Server build and restart. This can greatly save time 
when developing:</p> 
   <div class="source"> 
-   <pre>mvn minify:minify@room-js minify:minify@interview-wb-js 
minify:minify@wb-js minify:minify@fileinput-js minify:minify@settings-js 
minify:minify@nettest-js minify:minify@chat-js minify:minify@theme-minify</pre> 
-  </div> 
-  <p>You can further trim down the compile time to just selected Javascript 
sections:</p> 
-  <div class="source"> 
-   <pre>mvn minify:minify@room-js minify:minify@interview-wb-js</pre> 
-  </div> 
-  <p>And then copy them into the relevant folder, for example if your run the 
Embedded Jetty:</p> 
-  <div class="source"> 
-   <pre>cp -R target/generated-sources/js/org/apache/openmeetings/* 
target/openmeetings-web-6.0.0-SNAPSHOT/WEB-INF/classes/org/apache/openmeetings/</pre>
 
+   <pre>cd openmeetings-web
+# Run NPM install on each of the packages (only required once unless you 
change dependency):
+mvn frontend:npm@main-install frontend:npm@chat-install 
frontend:npm@settings-install frontend:npm@room-install frontend:npm@wb-install
+# Run NPM 
+mvn frontend:npm@main frontend:npm@chat frontend:npm@settings 
frontend:npm@room frontend:npm@wb
+# Minify CSS
+mvn minify:minify@theme-minify minify:minify@nettest-js
+# Copy to destination, in this case running OpenMeetings using the embedded 
Jetty, see above
+export CURRENT_DIR=$(pwd)
+rsync -a $CURRENT_DIR/target/generated-sources/js/ 
$CURRENT_DIR/target/openmeetings-web-7.0.0-SNAPSHOT/WEB-INF/classes/
+
+                               </pre> 
   </div> 
+  <p>You can also copy paste above into a handy shell script and just run that 
on demand.</p> 
+  <p>This also allows you to use another editor like WebStorm or IntelliJ for 
editing the OpenMeetings node npm projects!</p> 
  </div> 
 </section> 
 <section> 

Reply via email to