pe-components

This template to started developing Vue 2 library component in Vite, Storybook, Tailwind and Sass.
787
Install
npm install pe-components
Latest Version:0.10.0
Vue:2
Last Updated:Jul 7, 2022
Links: GitHub  ·  npm
Maintainer: manyzombie

pe-components-template

This template to started developing Vue 2 library component in Vite, Storybook, Tailwind and Sass.

VSCode
Volar (and disable Vetur).
Tailwind CSS IntelliSense
Stylelint

.vscode/settings.json

{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "css.validate": false,
  "scss.validate": false,
  "editor.tabSize": 2,
  "editor.insertSpaces": true,
  "files.encoding": "utf8",
  "files.eol": "\r\n",
  "diffEditor.ignoreTrimWhitespace": false,
  "files.insertFinalNewline": true,
  "[mdx]": {
    "files.insertFinalNewline": false
  }
}

Customize configuration

See Vite Configuration Reference.

Project Setup and run

npm install
npm run storybook

Type-Check, Compile and Minify for Production

npm build

Type Support for .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates.

However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can run Volar: Switch TS Plugin on/off from VSCode command palette.

Related Packages

@dullar/mercury

Advanced and highly reusable Mobile UI Components built on Vue2 & You can define...

8,553 6
@halobear/vue-upload

vue上传组件

460 1
vite-plugin-vue2

Vite plugin for Vue2

1,474,659 618
vue-jstree

a tree plugin for vue2

137,015 630
vite-plugin-git-revision

Vite plugin that generates VERSION and COMMITHASH files during build based on a...

21,961 11

Version History

Version Released Vue License
0.10.0 ^2.7.8
0.9.3 ^2.7.8
0.9.1 ^2.7.8
0.9.0 ^2.7.8
0.8.33 ^2.7.8