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

@opuscapita/dashboard-widgets

Package Overview
Dependencies
Maintainers
10
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opuscapita/dashboard-widgets

Dashboard widgets components library.

  • 1.4.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

Development

Run library locally:

Make sure you use node 14 (node -v to check)

  1. Run npm install to install dependencies
  2. Run npm run dev to start the development server
  3. In local/index.tsx there's a local playground for the library. Import the components you want to test and use them in the playground. Do not commit this file.

Run tests

Make sure you use node 14 (node -v to check)

  • Run npm run test to run the tests
  • Run npm run test:ui to run UI for the tests

Linting

  • Run npm run lint to run the linter
  • Run npm run lint:fix to run the linter and fix errors
  • This library uses husky and lint-staged to run the linter on pre-commit

Run package in other project

  1. (Optionally) Run npm run release:dry to report what would have done, if you publish the package
  2. Run npm pack to create a tarball
  3. Go to the project you want to test the package in and run npm i -D <path to tarball>, e.g.: npm i -D '~/Desktop/dashboard-widgets/dashboard-widgets-0.0.1.tgz'

Publishing

  1. Make sure you are logged in to npm with the npm whoami, and you are added to OpusCapita npm registry
  2. Make sure your working directory is clean
  3. Run npm run release to publish the package
  4. Follow the steps in the terminal

Contributing

  1. Create a branch feature/BNAPP-<ticket number>_<short description>
  2. On the branch, make your changes
  3. Create tests and stories for each new component / use case if applicable
  4. Run npm run test to make sure all tests pass
  5. Commit those changes and create meaningful pull request
  6. After PR is approved, merge it to master
  7. Release the package to npm according to the Publishing instruction above

FAQs

Package last updated on 07 Dec 2023

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