Deploying customization
To deploy your customizations, run the gulp scripts, build your changes, and test your customization.
Running the gulp scripts
Depending on your environment, complete any one of the following steps:
- If you are working with an exploded
wscdev.warfile, run the following commands:cd <STORE_BUILD_FOLDER>gulp --gulpfile ngstore_local_extn_gulp.js
- If you are working with a local runtime or a central runtime, run the following commands:
cd <STORE_BUILD_FOLDER>gulp --gulpfile ngstore_build_extn_gulp.js
Building your changes
Perform the following steps, if you want to test your customizations in the exploded
wscdev.war file.- Create a soft link for the extension files.
- Update the gulp configuration file (
ngstore.local.extn.config.json) to use the<WSCDEVWAR_FOLDER>and<EXTN_FOLDER>. - Run the gulp script (
ngstore_local_extn_gulp.js) to generate minified files, CSS files. - Test the application for your customizations.
Perform the following steps, if you want to test your customizations in your local or
central runtime:
- Place all you extension code inside
<INSTALL_DIR>/extensions/wsc/webpages/ngstorefolder. - Update the gulp configuration file (
ngstore.build.extn.config.json) to use<INSTALL_DIR>/extensions/wsc/webpages/ngstoredirectory. - Run the gulp script (
ngstore_build_extn_gulp.js) to generate minified files and CSS files. - Build and deploy the application WAR or EAR.
- Test the application for your customizations.
Testing your customization
- If you have modified client-side files such as JS, HTML, CSS and so on, ensure that the changes are available in the exploded war, clear cache, and reload the browser.
- If you have modified server-side files such as mashup XMLs, java code, or any other server-related files, you need to ensure that the changes are available in the exploded war and restart the application server.
Copying customizations to production
After the successful completion of a gulp task, both scripts and style folders are created in the following “dest” path:
- scripts - contains the js and html minified code with customizations
- style - contains the css minified code with customizations
Complete the following steps:
- Copy and paste the generated files to
runtime/extensions/wsc/webpages/ngstorefolder so that theruntime/extensions/wsc/webpages/ngstorefolder structure is present.-- shared -- store -- scripts (created by gulp) -- styles (created by gulp) - Run the build ear and restart your server.