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

@fitx/gymx-ui

v0.31.7

Published

![npm (scoped)](https://img.shields.io/npm/v/@fitx/gymx-ui?style=flat-square&color=blue) ![Libraries.io dependency status for latest release, scoped npm package](https://img.shields.io/librariesio/release/npm/@fitx/gymx-ui) ![npm bundle size (scoped)](htt

Downloads

1,013

Readme

GymX UI - Vue Component Library

npm (scoped) Libraries.io dependency status for latest release, scoped npm package npm bundle size (scoped)

GymX UI is a Vue 3 component library designed to be used across FitX / vipion projects. It provides a collection of reusable UI components and composables, built with Vue 3 and TypeScript, to ensure a consistent design and user experience across all applications.

Table of Contents

Installation

To install the GymX UI library, you can use npm or yarn:

npm install @fitx/gymx-ui
# or
yarn add @fitx/gymx-ui

Usage

Once installed, you can import components from the library and use them in your Vue 3 application.

Basic Example

<script lang="ts" setup>
import { GymxButton } from '@fitx/gymx-ui';
</script>
<template>
  <div>
    <gymx-button label="Click me!" />
  </div>
</template>

Make sure to import any necessary styles as well:

import '@fitx/gymx-ui/index.css';
// or
import '@fitx/gymx-ui/dist/index.css';

or svg icons

import '@fitx/gymx-ui/icons/icon-close.svg';
// or as vue Component
import { IconClose } from '@fitx/gymx-ui';

Development

Recommended IDE Setup

VSCode + Volar (and disable Vetur).

Available Scripts

you can run the following scripts:

  • npm run build: Builds the Storybook documentation and runs unit tests.
  • npm run build:lib: Builds the component library.
  • npm run test:unit: Runs unit tests with Vitest.
  • npm run test:e2e: Runs end-to-end tests using Playwright.
  • npm run lint: Lints the codebase using ESLint.
  • npm run format: Formats the code using Prettier.
  • npm run storybook: Starts the Storybook server for local component development.

To start developing new components or working on the library, use Storybook as dev server:

npm install
npm run storybook

This will start a local storybook server. You can now work on your components in the src/ directory and see the changes live.

Create a new component

npx tsx utils/create-component.ts example-button

This will automatically create a folder called 'gymx-example-button' with the prefix 'gymx'. The folder will contain the vue file, a test files, story file for Storybook, index and types.

Type Checking and linitng

The project uses TypeScript for type safety. You can run type checks with:

npm run type-check
# Lint with [ESLint](https://eslint.org/)
npm run lint

Testing

Unit Tests

We use Vitest for unit testing. To run the tests:

npm run test:unit

End-to-End Tests

For e2e testing, we use Playwright. To run the e2e tests:

# Install browsers for the first run
npx playwright install

# When testing on CI, must build the project first
npm run build

# Runs the end-to-end tests
npm run test:e2e
# Runs the tests only on Chromium
npm run test:e2e -- --project=chromium
# Runs the tests of a specific file
npm run test:e2e -- tests/example.spec.ts
# Runs the tests in debug mode
npm run test:e2e -- --debug

Storybook

GymX UI is integrated with Storybook for UI component development and documentation. To start the Storybook server locally, run:

npm run storybook

To build the Storybook static files and generate Unit Tests documentation, run:

npm run build

Access the live Storybook documentation at Storybook on GymX UI.

Contributing

We welcome contributions to GymX UI!.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/my-feature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/my-feature).
  5. Create a pull request.