Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sid-vue-components

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sid-vue-components

This project is an experiment to see how easy it is replicate our Vue 2 component library & Storybook. It uses Vue 3, Tailwind, Vite, and Storybook. All pieces were added using documented configuration processes in the individual projects. Figuring out ex

  • 0.2.27-sid-3
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Vue 3 + Vite Library Build

This project is an experiment to see how easy it is replicate our Vue 2 component library & Storybook. It uses Vue 3, Tailwind, Vite, and Storybook. All pieces were added using documented configuration processes in the individual projects. Figuring out exporting components and including CSS is still a little fussy but no worse than what we had before (probably a little bit better). I will publish a companion repository called vite-consumer that illustrates using the library.

Helpful documentation:

  1. https://vitejs.dev/guide/build.html#library-mode
  2. https://tailwindcss.com/docs/guides/vue-3-vite
  3. https://storybook.js.org/blog/storybook-vue3/
  4. https://storybook.js.org/blog/storybook-for-vite/
  5. https://storybook.js.org/docs/vue/api/mdx
  6. https://storybook.js.org/docs/vue/essentials/controls

The library exposes:

  1. Vue 3 components w/Tailwind styling
  2. A purged stylesheet for the component library
  3. A Tailwind configuration that can be reused in a consumer application

Running the project


# First run
$ yarn install

# Run in dev mode
$ yarn dev

# Library builds in /dist directory
$ yarn build

# Publishes to my (Denny's) NPM account
# This probably won't work for others
$ npm publish --public

# Use yarn link for local development
# Check out this repo and from the project root run:
$ yarn link

# Then in a consumer project, run:
$ yarn link @ais-public/ais-components

FAQs

Package last updated on 18 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc