After an update has been made or certain new file added, you have to re-compile the new file with the local application, to do it follow below guide:
- After boot intellij, navigate to a JS file or for shortcut click “Shift” twice and insert \webappcore\src\main\resources\static\apps\gulpfile.js
To specific which module to run for gulp, scroll to line 2x and change xcommon & xmodule
[image_with_text image=’https://docs.chemoinformatics.com/wp-content/uploads/2020/10/start-chemolimsnx-module-screen1.jpg’ title=” title_color=” title_tag=”]- xcommon to specific which common module using
– xmodule to specific which module will be editing[/image_with_text] - Navigate to below and look for “Terminal” to click. A terminal panel shall pop up/float up, refer sample image in below.
[image_with_text image=’https://docs.chemoinformatics.com/wp-content/uploads/2020/10/start-chemolimsnx-module-screen2.jpg’ title=” title_color=” title_tag=”]- Ensure the path of terminal prompt is same as the path you import project by selecting build.gradle from Setup ChemoLIMS NX Project.[/image_with_text] - Insert “env” and auto redirect will be direct to static\apps folder path.
[image_with_text image=’https://docs.chemoinformatics.com/wp-content/uploads/2020/10/start-chemolimsnx-module-screen3.jpg’ title=” title_color=” title_tag=”][/image_with_text] - Next, insert “gulp buildmods” command to build up all module.
[image_with_text image=’https://docs.chemoinformatics.com/wp-content/uploads/2020/10/start-chemolimsnx-module-screen4.jpg’ title=” title_color=” title_tag=”][/image_with_text] - Finished build module, ton of message will be prompt until it shows finished buildmods in last line. Insert “gulp buildapp” to build up the overall application.
[image_with_text image=’https://docs.chemoinformatics.com/wp-content/uploads/2020/10/start-chemolimsnx-module-screen5.jpg’ title=” title_color=” title_tag=”][/image_with_text] - Lastly, after finished buildapp message been prompt, insert “gulp” to do a full compile and finalize and keep gulp running so you won’t need to insert command for every time if file update/modify.
[image_with_text image=’https://docs.chemoinformatics.com/wp-content/uploads/2020/10/start-chemolimsnx-module-screen6.jpg’ title=” title_color=” title_tag=”][/image_with_text] - For every moment you have update, modify or any action been done in existing application file, you have to build the module again to trigger gulp run update command. To do this, on the top left of intellij, navigate to “Build” and click “Build Module” for TWICE to keep the update.
[image_with_text image=’https://docs.chemoinformatics.com/wp-content/uploads/2020/10/start-chemolimsnx-module-screen7.jpg’ title=” title_color=” title_tag=”][/image_with_text]
Total 0 Votes:
0
0