@one-platform/opc-base
v1.2.0-beta
Published
It contains shared components like layout, authentication provider for one platform
Downloads
496
Readme
Opc-Base
Opc-Base is an npm package that provides authentication, toast notification, injecting logic into opc components like opc-nav
, drawer components etc.
Getting Started
Copy the config.example.js
file in dev folder
, rename it as config.js
and provide the configuration values needed to load the variables.
For testing es module copy the config.es.example.js
file in dev folder
, rename it as config.es.js
and provide the configuration values needed to load the variables.
Installation
npm install
Development Setup
To start the live build with rollup
npm run build:watch
To start the development server
npm run dev
Docs
Build
This projects uses typescript with rollup for bundling
To build the project:
npm run build
To watch for changes and rebuild the files:
npm run build:watch
Inorder to preview the changes you made the project uses web @web-dev-server:
npm run dev
Testing
Testing is done using @web/test-runner and @open-wc/testing. Remember to build the package as some test are done using build file due to dependency import issues.
To run test:
npm run test
For local testing during development
npm run test:watch
Contributors
👤 Akhil Mohan (@akhilmhdh)