lone-format
v0.9.0
Published
A Vue 3 component library for formatting with tree-shaking support
Readme
lone-format
A Vue 3 component library for formatting with tree-shaking support.
Features
- 🎨 Multiple Themes: GitHub Light, GitHub Dark, Min Light, Slack Ochin
- 🚀 Performance Optimized: Shallow copy strategy for better performance
- 📦 Tree Shaking: Import only what you need
- 🔧 TypeScript: Full TypeScript support with type definitions
- 📖 VitePress Documentation: Comprehensive documentation with examples
Installation
npm install lone-formatQuick Start
<template>
<JsonFormat
v-model="jsonData"
:readonly="false"
/>
</template>
<script setup>
import { ref } from 'vue'
import { JsonFormat } from 'lone-format'
const jsonData = ref('{"hello": "world"}')
</script>Documentation
Visit our documentation site for detailed guides and examples.
Automated Publishing
This project uses an automated CI/CD pipeline that:
- 🔄 Auto-versioning: Bumps version based on commit messages
- 📦 Auto-publishing: Publishes to npm when code is pushed to
publishbranch - 🔀 Auto-merging: Merges
publishbranch tomainafter successful publish
Usage
# Create feature on publish branch
git checkout -b publish
git add .
git commit -m "feat: add new feature" # Will bump minor version
git push origin publish # Triggers auto-publishSee PIPELINE.md for detailed setup instructions.
Development
# Install dependencies
npm install
# Start development server
npm run dev
# Build library
npm run build:lib
# Build documentation
npm run docs:buildLicense
MIT
