npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@lansforsakringar/web-components

v0.0.4

Published

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

Downloads

7

Readme

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:

| Command | Description | | ---------------------------------- | -------------------------------------------- | | lint | Lint the code with ESLint and Prettier. | | analyze | Generate Custom Element Manifest (CEM). | | document | Generate documentation in HTML fomr JSDoc. | | storybook | Starts the Storybook development server. | | build-storybook | Builds a static version of Storybook. | | test | Runs all unit and visual tests. | | test:unit | Runs all unit tests. | | test:unit test/xxx.unit.test | Runs a specified unit test. | | test:unit-watch | Runs unit tests on file change. | | test:visual | Runs all visual tests. | | test:update-visual xxx.visual.js | Runs a specified visual test. | | playwright:test | Only used by test commands and in CI. | | playwright:update | Only used by test commands. | | playwright:report | Shows the visual test report in HTML format. |

Contributing Guidelines

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

Submitting Pull Requests

  1. Fork the repository and create a new branch for your feature or bug fix.

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

  3. 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
  4. Test your changes thoroughly and ensure that all existing tests pass.

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

  6. 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.