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
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}:
{parted: true}:
Automatically added by client.js
Examples of calendar component in prod and dev modes:
{dev: false}:
{dev: true}:




