Rebuilding store code
You can rebuild your store code, such as JavaScript and CSS files, by using Grunt
plugins.
Before you begin
- Download and install node.js and npm tooling:
- Download and install node.js and npm from nodejs.org.
- Ensure that the path environment variables are added after install, so that all commands work correctly from any directory on the command line.
- Install bower from npm. From a command prompt, run the following
command:
npm install -g bower
Note: Bower might return a deprecated message. This can safely be ignored. - Install the tooling for your store and widgets:
- Copy the external directory from WC_installdir\samples\stores\AuroraJQuery to Stores.war\WebContent.
- Use the command prompt to go to the Stores.war\WebContent\external
directory and run the following commands:
npm install bower install
- Go to the following directories:
- Stores.war\WebContent\external\build_ibm
- Stores.war\WebContent\external\build_store
- From a command prompt, run the following command:
npm install
About this task
Procedure
-
Rebuilding JavaScript files in the widgets directory.
Complete this step every time you update JavaScript files in the widgets directory (widgetdir).
This step rebuilds the JavaScript and minimizes all widget code to the widgetdir\commom\javascript\widgets.js file.
-
Rebuild your store's code.