Component library template developed based on
Built-in packaging components, Hooks, Utils, which can be introduced on demand, support TypeScript, and enable all attention to focus on document writing and component development.
Built-in VitePress theme eliminates the trouble of writing style, with its own night mode, and can customize the theme.
Vue3
, VitePress
, Rollup
, Gulp
and other mainstream technologiesBuilt-in packaging components, Hooks, Utils, which can be introduced on demand, support TypeScript, and enable all attention to focus on document writing and component development.
Built-in VitePress theme eliminates the trouble of writing style, with its own night mode, and can customize the theme.
English | ็ฎไฝไธญๆ
https://xs-com-lib.netlify.app
- ๐ Latest technology stack
It is developed using front-end cutting-edge technologies such as Vue3/Rollup/Gulp - ๐ฆ Out of the box
Built-in packaging can be introduced on demand, and TypeScript is supported, so that all attention can be focused on document writing and component development. - ๐ Support CDN introduction
Support the packaging and output of compact CDN modules, and simultaneously support UnPkg and JsDelivr CDN introduction methods. - โก๏ธ VitePress
Vue official document theme, free of the trouble of writing style, with its own night mode, customizable theme. - ๐ป One-click template generation command
Say goodbye to the trouble of manually creating development templates by machine, and generate development templates quickly and easily with one command. - ๐ง Specification inspection
Built-in Eslint, Prettier and CommitLint tools can better unify your code style and submit inspection specifications.
- Node and Git - project development environment
- Vite - Familiar with Vite features
- Vue3 - Familiar with Vue basic syntax
- Es6+ - familiar with Es6 basic syntax
- VitePress - familiar with the basic use of VitePress
- Get project code (Https or SSH)
git clone https://github.com/jsxiaosi/xs-components-lib.git
git clone git@github.com:jsxiaosi/xs-components-lib.git
Alternatively, you can use the xs-cli
to quickly create one
npx @jsxiaosi/xs-cli create [project-name]
- Installation Dependencies
pnpm install
- Run built-in template debugging component
npm run dev
- Run the VitePress document
npm run docs:dev
- Create component template
npm run ct 'Component name'
- Package Component Library
npm run build
- Packaging a VitePress document
npm run docs:build
-
Refer to Vue specification
feat
New Featuresfix
Repair defectsdocs
Document changestyle
Code formatrefactor
Code refactoringperf
Performance optimizationtest
Add neglected tests or changes to existing testsbuild
Build processes, external dependency changes (such as upgrading npm packages, modifying packaging configurations, etc.)ci
Modify CI configuration and scriptsrevert
Roll back the commitchore
Changes to the build process or tools and libraries (do not affect source files)wip
Under developmenttypes
Type definition file modification
-
Or submit with instructions
npm run cz
- EsLint - Js syntax detection
- StyleLint - Style syntax detection
- CommitLint - Git commit commit specification detection
.
โโโ LICENSE
โโโ README.md
โโโ build
โโโ commitlint.config.js
โโโ docs # Vitepress document directory
โโโ effect # Commissioning template
โโโ lib
โโโ node_modules
โโโ package-lock.json
โโโ package.json
โโโ packages # Common component directory
โย ย โโโ components # Component storage directory
โย ย โโโ hooks # Hooks storage directory
โย ย โโโ theme-default # Component style storage directory
โย ย โโโ utils # Public method storage directory
โโโ postcss.config.js
โโโ prettier.config.js
โโโ script
โโโ stylelint.config.js
โโโ tsconfig.json
โโโ typings