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

@lansforsakringar/web-components

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lansforsakringar/web-components

LF Web Components is a collection of reusable web components designed to enhance the development of web applications. These components provide a modular and customizable approach to building user interfaces, making it easier to create interactive and visu

0.0.4
latest
npm
Version published
Maintainers
3
Created
Source

LF Web Components

LF Web Components is a collection of reusable web components designed to enhance the development of web applications. These components provide a modular and customizable approach to building user interfaces, making it easier to create interactive and visually appealing experiences.

Getting started

[ How to install the NPM package ]

Contributing

Project Structure

  • Configs: Contains our beutiful pile of config files.
  • Dockerfile: Contains our visual testing environment, used for local visual tests.
  • Lib: Contains all the web components.
  • Stories: Contains our Storybook stories.
  • Test: Contains our tests.
    • Unit: Contains unit tests written in Chai (*.unit.js).
    • Visual: Contains visual tests using Playwright (*.visual.js).
      • Screenshots: Screenshots that serve as the visual truth.

Temporary Folders

  • Playwright-report: HTML report of the visual tests.
  • Test/visual-result: Screenshots used to compare with the visual truth.
  • Storybook-static: Static build of the documentation.
  • Coverage: HTML report of the unit test code coverage.

NPM Commands

Here are the available NPM commands:

CommandDescription
lintLint the code with ESLint and Prettier.
analyzeGenerate Custom Element Manifest (CEM).
documentGenerate documentation in HTML fomr JSDoc.
storybookStarts the Storybook development server.
build-storybookBuilds a static version of Storybook.
testRuns all unit and visual tests.
test:unitRuns all unit tests.
test:unit test/xxx.unit.testRuns a specified unit test.
test:unit-watchRuns unit tests on file change.
test:visualRuns all visual tests.
test:update-visual xxx.visual.jsRuns a specified visual test.
playwright:testOnly used by test commands and in CI.
playwright:updateOnly used by test commands.
playwright:reportShows the visual test report in HTML format.

Contributing Guidelines

To contribute to LF Web Components, please follow these guidelines:

Submitting Pull Requests
  • Fork the repository and create a new branch for your feature or bug fix.

  • Ensure that your code follows the project's coding conventions and standards.

  • Write clear and concise commit messages using the following format:

    [Category]: Brief summary of the change
    
    [Description (what and why)]
    
    Fixes: #123, #456
    BREAKING CHANGE: ...
    

    Categories can include:

    • feat: Feature
    • fix: Bug Fix
    • ref:, Refactoring
    • doc: Changes to the documentation
    • style: Style or formatting change
  • Test your changes thoroughly and ensure that all existing tests pass.

  • Submit a pull request to the main branch of the repository.

  • Provide a detailed description of your changes and the problem they solve.

Reporting Issues

If you encounter any issues or have suggestions for improvements, please report them using the GitHub issue tracker. When reporting issues, please provide the following information:

  • A clear and descriptive title
  • Steps to reproduce the issue
  • Expected behavior
  • Actual behavior
  • Any relevant error messages or screenshots
Coding Conventions and Standards

To maintain consistency and readability, please adhere to the following coding conventions and standards when contributing to LF Web Components:

  • Use meaningful variable and function names.
  • Follow the existing code formatting style.
  • Comment your code when necessary to provide clarity.

FAQs

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