Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@tigerconnect/web-component-library

Package Overview
Dependencies
Maintainers
7
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tigerconnect/web-component-library

a shared component library for tc projects

Source
npmnpm
Version
2.1.0-beta-2
Version published
Weekly downloads
395
1174.19%
Maintainers
7
Weekly downloads
 
Created
Source

Web Component Library

About this project

  • Developed with Storybook
  • Bundled with rollup.js

Development Setup

  • npm ci to install dependencies
  • npm run storybook for development
  • npm run build to compile the library to update it in external projects that have it installed locally
  • npm run deploy to build and publish the library to NPM and Storybook application to GitHub Pages. See Publishing for more details.
  • npm run gen to create a new component.

Using the library in a project locally

  • From inside the web-component-library repository
  • run npm run build to build the latest changes
  • then run npm link.
  • Then inside the repository using the library. e.g. inside web-react-ui-toolkit
  • run npm link @tigerconnect/web-component-library.

For further changes, only npm run build is needed (and sometimes restarting the web-react-ui-toolkit build/watcher, for example)

Editor Setup

This project uses PostCSS, which will require some setting changes so that your CSS files will be understood and formatted auto-correctly:

VS Code

Include in your VSCode editor settings (JSON):

"files.associations": {
 "*.css": "scss"
}
"editor.codeActionsOnSave": {
   "source.fixAll.stylelint": true
}

Vim

As a quick workaround you can use :set ft=scss.

Publishing

  • Bump the package.json version higher than what is currently published, follow proper semantic versioning, and document the changes in CHANGELOG.md.
  • Run npm run deploy. The command will run npm run build and then npm publish.
    • This command will also build and deploy the latest Storybook application to GitHub Pages.
  • Update any repo using this package to have the newly published version and reinstall respectively.

Storybook Deployment

We currently deploy three different versions of Storybook to help facilitate sharing changes during different development phases.

FAQs

Package last updated on 10 Dec 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