Socket
Book a DemoInstallSign in
Socket

@otr-app/ui-shared-components

Package Overview
Dependencies
Maintainers
5
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@otr-app/ui-shared-components

Module for shared components across OTR sites

3.2.1
latest
Source
npmnpm
Version published
Weekly downloads
426
-15.64%
Maintainers
5
Weekly downloads
 
Created
Source

otr_ui_shared_components

Install

npm i @otr-app/otr-ui-shared-components --save

Import

Non-minifed version for bundle

import '@otr-app/otr-ui-shared-components

or in index.html

<script src='node_modules/@otr-app/otr-ui-shared-components/index.js'></script>

Minifed version for bundle

import '@otr-app/otrui-shared-components/index.min

or in index.html

<script src='node_modules/@otr-app/otr-ui-shared-components/index.min.js'></script>


  • Run npm install on the parent application; make sure all packages that are needed are installed
  • In ui-shared-components run npm run build:devo
  • In ui-shared-components repo run npm link
    • You can add an alias => npm link myAlias
    • If you do not provide an alias then the name in package.json will be used
  • Go to parent application and run:
    • If alias is used => npm link myAlias
    • If no alias => npm link @otr-app/ui-shared-components

Making changes on ui-shared-components: (subject to change)

If you make changes on ui-shared-components and wish to see them in the parent application:

  • Run npm run build:devo in ui-shared-components
  • Refresh parent application in browser and you should see the changes

FAQs

Package last updated on 17 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.