@one-platform/opc-base v1.2.0-beta
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 installDevelopment Setup
To start the live build with rollup
npm run build:watchTo start the development server
npm run devDocs
Build
This projects uses typescript with rollup for bundling
To build the project:
npm run buildTo watch for changes and rebuild the files:
npm run build:watchInorder to preview the changes you made the project uses web @web-dev-server:
npm run devTesting
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 testFor local testing during development
npm run test:watchContributors
š¤ Akhil Mohan (@akhilmhdh)
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago