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

@gatship/gs-components

v0.1.23

Published

GAT-Ship Vue 2 components

Downloads

109

Readme

gs-components

Vue 2 component library v1

This plugin library comes with a set of components and mixins for vue 2.

Requirements

latest vuetify 2 version. latest vue 2 version (2.7.14 or higher)

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Adding the plugin exsisting project

  1. npm i @gatship/gs-components

  2. import the plugin in main.js/main.ts

  3. call the install function with the Vue instance as an argument.

main.js / main.ts

import Vue from 'vue';
import App from './App.vue';
import vuetify from './plugins/vuetify';
// The gsComponents import
import gsComponents from './gat-components/index';

// Installing the gsComponents plugin.
gsComponents.install(Vue);

new Vue({
  vuetify,
  render: (h) => h(App),
}).$mount('#app');

Adding intellisense if using typescript

  1. Create a components.d.ts file in your src directory.
  2. copy/paste the content below into the components.d.ts

components.d.ts

declare module 'vue' {
  export interface GlobalComponents {
    GatButton: typeof import('@gatship/gs-components')['GatButton'];
    GatButtonGroup: typeof import('@gatship/gs-components')['GatButtonGroup'];
    GatDialog: typeof import('@gatship/gs-components')['GatDialog'];
    GatGrid: typeof import('@gatship/gs-components')['GatGrid'];
    GatEdit: typeof import('@gatship/gs-components')['GatEdit'];
    GatSelect: typeof import('@gatship/gs-components')['GatSelect'];
    GatMultiSelect: typeof import('@gatship/gs-components')['GatMultiSelect'];
    GatBottomPanel: typeof import('@gatship/gs-components')['GatBottomPanel'];
    GatCompactField: typeof import('@gatship/gs-components')['GatCompactField'];
    GatFieldSpacer: typeof import('@gatship/gs-components')['GatFieldSpacer'];
    GatFlex: typeof import('@gatship/gs-components')['GatFlex'];
    GatForm: typeof import('@gatship/gs-components')['GatForm'];
    GatGroup: typeof import('@gatship/gs-components')['GatGroup'];
    GatSubGroup: typeof import('@gatship/gs-components')['GatSubGroup'];
    RecordPresenter: typeof import('@gatship/gs-components')['RecordPresenter'];
    GatLookupEdit: typeof import('@gatship/gs-components')['GatLookupEdit'];
    GatTab: typeof import('@gatship/gs-components')['GatTab'];
    GatReloadBtn: typeof import('@gatship/gs-components')['GatReloadBtn'];
  }
}

export {};

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your unit tests

npm run test:unit

Run your end-to-end tests

npm run test:e2e

Lints and fixes files

npm run lint

Publish to npm

npm run pub

Customize configuration

See Configuration Reference.