@contiago/toolbar v1.0.49
Quick start localy
- Make sure that you have Node.js v8.10 and npm v5 or above installed.
- Clone this repo using
git clone --depth=1 https://gitlab.codex-soft.net/profundus/xml-content-server.git <YOUR_PROJECT_NAME> - Move to the appropriate directory:
cd <YOUR_PROJECT_NAME>,cd toolbar. - Run
npm installin order to install dependencies . At this point you can runnpm startto see the example app athttp://localhost:3000. - Configure output channel "toolbar" on Shop, and copy received token.
- Insert this script with your token in index.html file
<script defer id="contiago-toolbar" data-customer-token="<YOUR_TOKEN>" resource="STG"></script> - If you need to use local backend go to config.json file and change
stgContentServerHostto yor local host.
Now you're ready to rumble!
RELEASE
- Increase toolbar version in the package.json file.
- Increase toolbar version
toolbarVersionin the ...backend/src/main/resources/application.properties.
- Increase toolbar version
- Build toolbar
npm run build
- Build toolbar
- Write
npm loginon the toolbar folder. Enter login and pass from NPM acount.
- Write
- Write
npm publishfor publishing toolbar.
- Write
- Commit backend properties with new toolbar version.
HOW IT WORK
We insert script in index.html. Existing script have a link to downloads latestVersionSupplier. latestVersionSupplier this is the plugin that makes the request to the backend for the latest version toolbar, witch need download from NPM.
If you change latestVersionSupplier code, you nedd also release new latestVersionSupplier on the NPM(change version in package.json).
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago