Setup
Code is stored in a Github and linked to at the top of this documentation. You will need to have Node.js and Git installed to be able to clone the repository and to build and deploy Leopard.
Steps | Where | Description |
Studio | Add the Extension Helper groovy script to Teneo Studio as either a resource or to the Global Scripts | |
Studio | In Teneo Studio you will want to define a number of global variables and pre-processing scripts | |
Install Prerequisites | Operating System | |
Clone Leopard | Operating System |
|
Operating System | You can control various build aspects of Leopard through build variables. | |
Run Leopard | Operating System |
|
Build for Production | Operating System |
|
Windows Users
You will need to install node-gyp
globally. This is needed because some native node modules need to be compiled.
Start PowerShell as Administrator and run:
Only run this once Node.js is installed. The command below will take a while to complete but it only has to be run once.
Source Code
The latest code is stored in GitHub
.
Clone Repository
Install Dependencies
This command will inspect the dependencies in the project's package.json file and will download them locally.
If you are on a version of npm > 6.0.0 you should preferably install dependencies using:
Run Locally in Development Mode
To run a local version of Leopard for testing and development run the following.
The browser should automatically open to http://localhost:8080/ once compiled. You can change code in the project and the Website should automatically reload.
Build for Production
The following command will compile, compress and minify all the code for production. The resulting HTML, CSS and JS code in the /dist
folder can then be deployed to any web server.
Last updated