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

@laserfiche/lf-ui-components

v16.0.2

Published

<!--Copyright (c) Laserfiche. Licensed under the MIT License. See LICENSE in the project root for license information.-->

Downloads

265

Readme

@laserfiche/lf-ui-components

A collection of UI Components to be used to build apps that interact with Laserfiche.

UI Components are compatible with many web frameworks including Angular, React, Vue, and no framework.

Using @laserfiche/lf-ui-components

See documentation here.

Change Log

See CHANGELOG here.

Contribution

We welcome contributions and feedback. Please follow our contributing guidelines.

Development Setup

Prerequisites

See .github/workflows/main.yml for Node and NPM version used.

Build ui-components CDN script

  1. Cd to repo's root folder.
  2. npm install ./projects/ui-components
  3. Build ui-components using: npm run build-ui-components-prod
  4. Run: npm run create-lf-cdn
    • This command will generate the CDN entry file dist/lf-cdn/lf-ui-components.js.

Build types-lf-ui-components NPM

This will create a package with version 14.0.0. If you would like to update the version, change the version at ./types-lf-ui-components-publish/package.json.

npm install ./projects/ui-components # if you haven't already
npm run create-types-lf-ui-components

The command above will output: ./types-lf-ui-components-publish/laserfiche-types-lf-ui-components-14.0.0.tgz.

Build lf-documentation

You can use the lf-documentation project for testing changes.

Build lf-documentation:

cd repo-root-folder
npm run build-ui-components-prod
npm run build-lf-documentation-prod

to create ./dist/lf-documentation.

Build style sheets:

npm run sass-lf
npm run sass-ms

For interactive development: Build lf-documentation in watch mode

This allows you to see changes you make to the ui components quickly. You can run the two commands in different windows so that you can see any changes in the browser, even those that are shared across components.

cd repo-root-folder
npm run build-ui-components-dev-watch
npm run build-lf-documentation-dev-watch

to create ./dist/lf-documentation.

View the interactive documentation

  1. Configure a web server to serve ./dist (e.g. IIS on WIndows).

  2. Browse to http://localhost/dist-folder/lf-documentation/index.html to view the documentation (assuming that dist-folder is mapped to ./dist).

    • Note that index.html loads the UI components using <script src="./../lf-cdn/lf-ui-components.js" defer></script>

Things to verify before creating a Pull Request

Run tests

npm run test

This will launch a Chrome browser and run all projects. Press Ctrl+C in the console to run the next project.

You can also run a specific project, for example: npm run test ui-components. For more details on how to run specific components or tests, visit the karma test documentation.

Run lint

npm run lint