@smartux/xpa-bridge
TypeScript icon, indicating that this package has built-in type declarations

4.1100.1-dev • Public • Published

SmartuxXpaBridge

This library was generated with Angular CLI version 11.0.9.

Code scaffolding

Build

Run ng build xpa-bridge --configuration=production to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build xpa-bridge, go to the dist folder cd dist/smartux-xpa-bridge and run npm publish.

Using the library in host application

In the host application add it as a dependency in packaage.json as : "@smartux/xpa-bridge": "^1.0.0" and do npm i

In app.module.ts , inject the SmartuxXpaBridgeModule and in the provider use the getProvider from the bridge

Changes needed : add import : import { SmartuxXpaBridgeModule, getProvider } from '@smartux/xpa-bridge';

add it to imports [] at the start imports: [ SmartuxXpaBridgeModule, ... ]

Add the provider : providers: [getProvider()],

Note that these is automatically handled when application is generated in template , but for existing application the above steps should be performed manually .

##Debugging the library in host appplicaton When you need to change th library code and debug it , In the host application change the path of the smart-ux-bridge to point to the dist folder of library. i.e add the following code : "paths": { "@smartux/xpa-bridge" : ["../../smartux-xpa-bridge/dist/xpa-bridge"] }

Readme

Keywords

none

Package Sidebar

Install

npm i @smartux/xpa-bridge

Weekly Downloads

14

Version

4.1100.1-dev

License

ISC

Unpacked Size

34.7 kB

Total Files

14

Last publish

Collaborators

  • magicxpaadmin