bookingbug-configurator-js

A javascript module used to merge and handle configurations from the almighty Configurator

Usage no npm install needed!

<script type="module">
  import bookingbugConfiguratorJs from 'https://cdn.skypack.dev/bookingbug-configurator-js';
</script>

README

Installation

git clone git@github.com:BookingBug/bookingbug-configurator-js.git

cd bookingbug-configurator-js

npm install

Setup for local development

Environment variable

you'll need to add an environment variable called BB_CONFIGURATOR_SRC_DIR that points to the bookingbug-configurator-js director

if you're using a bash profile you can copy the code below and replace where appropriate

export BB_CONFIGURATOR_SRC_DIR=PATH_TO_YOUR_BOOKINGBUG_CONFIGURATOR_JS_CLONE

npm link

You will need to create a global link using npm so that it can be installed to do so you'll need to run the following within the bookingbug-configurator-js directory

npm link

Install and run locally

You'll need to install dependencies locally using the following command and then run gulp

npm run ilc

gulp