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

watchtower-benefits-shared-components

v3.101.0

Published

Watchtower Benefits Shared Vue components/styles

Downloads

14,494

Readme

ThreeFlow Shared UI Components

A collection of shared components, mixins, and scss variables to be used across the TF sites.

Sharing utilities

  • Utilities/helpers can be included in two places; lib.js and shared.js.
  • Shared.js makes things a part of the Vue instance, either components or, in the case of utils/helpers, exposed through $TF.
  • Additional imports + exports in lib.js supply the functionality that allows an import from vanilla JS with a import { Foo } from 'watchtower-benefits-shared-components'

Installation

npm install watchtower-shared-components

In your main vue file:

import Watchtower from 'watchtower-benefits-shared-components'
import 'watchtower-benefits-shared-components/lib/watchtower-benefits-shared-components.css'
Vue.use(Watchtower)

Build Setup

Get up and running

  1. On initial setup, add the following entry to your hosts file (mac: /etc/hosts): 127.0.0.1 components-dev.threeflow.com
  2. On first load, run npm install in terminal to get everything installed.
  3. Run npm run serve in terminal to start the local server. You browser will open to https://components-dev.threeflow.com:8085/ automatically.

Copying to other applications

  1. On the application level (admin, broker, carrier), delete the "node_modules/.vite/deps" folder (rm -rf ./node_modules/.vite/deps/watchtower-benefits-shared-components.*)
  2. On the shared repo, copy to applications (npm run copy)
  3. On the application level, start the server (npm run dev)

Common Commands

| Terminal Command | Description | |--|--| |npm run serve|serve with hot reload at localhost:8085 (our example site). This will spin up a dev server with examples, the source code is located in /example/src. |npm run serve-build|serve with rollup watch/hot reload. this will spin up rollup, which will watch all the library components, and a vue-cli-service serve instance that will be restarted when rollup's watch detects changes. This way, you can test components in the same way that it will be used in in the other TF sites. |npm run build|build for production with minification (to push out to our example site) |npm run unit|run unit tests |npm run lib|build a package to publish |npm publish|Publish

Publishing:

When merging into the main, CircleCI and the threeflow-orb will:

  1. Automatically update the package version one minor version,
  2. Create a new github release,
  3. Publish new version to the npm registry.