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.
npm install
- 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
-
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);
};