Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Full mode pallete RWS build + RWS services for legacy

Choose a tag to compare

@papablack papablack released this 07 May 19:16
· 70 commits to master since this release

RWS 2.6 Release.

New features:

  • DI for legacy
  • Prod build for parted mode

Description

Example .rws.json (placed in build command execution directory):

{
    "dev": true,
    "parted" : true
}

this one will set your components build and load to parted mode and will produce unminified build code with maps to TS files.

A default service can be used in legacy like this:

window.RWS.client.get('ApiService').post('...');

to allow your custom service to be used in window assigned client do this in your service class:

import { RWSService } from '@rws-framework/client';

class NameService extends RWSService {
    static _IN_CLIENT: boolean = true //If set engine will let legacy use the service through RWSClient.get method
    hello(){
      alert('Hello');
    }
    //(...)
}

export default NameService.getSingleton();
export { NameService as NameServiceInstance }

then:

window.RWS.client.get('NameService').hello();

Build modes

Build modes work is complete.

Examples of build for monolith and parted mode:

{parted: false}:

monolith

{parted: true}:

parted_bck

Automatically added by client.js

parted_front

Examples of calendar component in prod and dev modes:

{dev: false}:

calendar2_prod

{dev: true}:

calendar2_dev