New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

disco-ui

Package Overview
Dependencies
Maintainers
4
Versions
344
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disco-ui

UI components for the decentralized identity ecosystem

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31
decreased by-86.34%
Maintainers
4
Weekly downloads
 
Created
Source

Disco UI

Install

npm install --save disco-ui styled-components react
# or
yarn add disco-ui styled-components react

Development

Local development alongside your app

If you wish to work on the Disco UI library while importing it into your own app, you can do so for instance using npm link or yarn link.

Set up the Disco UI repo:

git clone https://github.com/Probably-Nothing-Inc/disco-ui.git
yarn install
yarn link
yarn run watch

In your app you can then run:

yarn link disco-ui

Your app will now use your local copy of Disco UI and should receive any changes as you make them.

Standalone Disco UI development

If you wish to work on the Disco UI library directly, you can do so without another app:

git clone https://github.com/Probably-Nothing-Inc/disco-ui.git
cd disco-ui
yarn install
yarn run install-peer-deps

You can now run yarn run storybook to work on individual components, or yarn run server:start to run the example create-react-app app.

Note that once you have run install-peer-deps in your local Disco UI library, if you are linking it to your app then your app will end up with duplicate copies of Disco UI's package.json's peerDependencies, and so React (and styled-components if you are using that) will probably break. To resolve this, you will have to link these dependencies: navigate to <your-app>/node_modules/react and run yarn link, and then return to the disco-ui directory and run yarn link react (and repeat for any other peer dependencies that are causing issues, like react-dom and react-router-dom). See this article for more context. Alternately, you can delete disco-ui/node_modules, re-run yarn install, and do not install peer dependencies.

FAQs

Package last updated on 15 Mar 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc