- Run
yarn install
- Be sure to have segment config filled in a global scope. It should look like this:
window.Segments = {
config: {
AUTH_TOKEN: '',
API_HOST: '',
CANCEL_PATH: '',
SEGMENT_ID: null
}
};
yarn serve
for development
- Run
yarn build
if you want to build whole application for the deployment. Then you can host contents of/dist
folder as static files. - Run
yarn build-lib
if you want to make build of remp-segment-builder as npm package (It's used for example in remp-scenario-builder).