Skip to content

saby/wasaby-hot-reload

Repository files navigation

Wasaby Hot Reload

A set of utilities for continuous integration of program code changes onto a current project that is running as a client-side part of a local stand.

Includes a server-side and a client-side

Responsible: Kolbeshin F.A.

Technical documentation

Installation

npm install

Available scripts

  • Build test application:
npm run build
  • Run unit tests:
npm test
  • Start hot reload server:
npm start
  • Push random data to the hot reload server:
npm test:event-push

Checks in browser

  • Server state page

  • To listen server events execute following code in console on server state page:

let channel = new EventSource('/channel');

channel.addEventListener('modules-changed', (event) => {
    console.log('Event received', event);
});

channel.onerror = (err) => {
    console.error('Something went wrong', err);
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published