The steps below for the default version (with build tools). If you want to use classic version (without build tools), go to this link instead.
-
Download the latest theme source from the marketplace.
-
Download and install Node.js from nodejs.org/en/download/
-
Start command prompt window or terminal and change directory to
[root]/theme/default/tools/cd [root]/theme/default/tools -
Install the latest version of
npm.npm install --global npm@latest -
Install the latest version of
yarn.npm install --global yarn -
Install
gulp.npm install --global gulp-cli -
Install yarn dependencies. Must execute in
[root]/theme/default/tools/folder.yarn -
Compile the assets using gulp after
yarncommand.gulp -
Start the localhost server.
gulp localhostKeep the console open. Open this link to run
http://localhost:8080/default/ -
Compile the edited assets (sass and js source files)
gulpFor more information about the
Build Tools, click here.By default
assetsfolder does not exist and it will be generated only after running gulp task. -
This is an optional gulp task for demo purpose. It does set all the demo backend URL to point to demo API in server.
gulp apiurlFor more information about the
Build Tools, click here. - The customization should be done from [root]/theme/default/src. After recompiling, use the assets found in [root]/theme/default/dist/[demo_id]/assets.
-
Watch the edited assets files (sass and js source files)
gulp watchWatcher tracks changes to the files and automatically runs the compiler.
-
Watch the edited sass files
gulp watch:scssRun the watcher for the SASS files only.
-
Watch the edited js files
gulp watch:jsRun the watcher for the JS files only.
