#!/usr/bin/env bash

# Installs all dependencies
yarn

cd express_webpack

# Sandbox cert generation
yarn certs

# Starts express_webpack node server
yarn start

# Run the below 2 commands to rebuild the sdk
#   Since the build process uses both tsc and webpack there isn't a -watch option

# Start shell in docker
# docker-compose exec onesignal-web-sdk-dev bash
# Run each time to rebuild the SDK
# yarn build:dev