1.2.0-beta ā€¢ Published 1 year ago

@one-platform/opc-base v1.2.0-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

  1. opc-base
  2. opc-provider

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)