JSPM

@leo-millenial/vite-vue-bex

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q14937F
  • License MIT

A modern template for creating Chrome extensions using Vue 3, TypeScript, Vite, and UnoCSS

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@leo-millenial/vite-vue-bex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Vue 3 Chrome Extension Template

    πŸ‡·πŸ‡Ί РусскоС описаниС | πŸ‡ΊπŸ‡Έ English

    A modern template for creating Chrome extensions using Vue 3, TypeScript, Vite, and UnoCSS.

    Install template

    npx degit leo-millenial/vite-vue-bex <my-project-name>

    πŸš€ Features

    • ⚑ Fast development with Vite
    • 🎯 Vue 3 with Composition API and <script setup>
    • πŸ”· TypeScript for type safety
    • 🎨 UnoCSS for atomic CSS styling
    • 🌸 DaisyUI for beautiful UI components
    • πŸ”§ webext-bridge for script communication
    • πŸ“¦ webextension-polyfill for cross-browser compatibility
    • πŸ§ͺ Vitest for testing
    • πŸ”„ Hot Module Replacement in development mode

    πŸ“‹ Project Structure (FSD)

    src/
    β”œβ”€β”€ app/
    β”‚   └── background/         # Background scripts
    β”‚       └── index.ts
    β”œβ”€β”€ content/                # Content scripts
    β”‚   └── content.ts
    β”œβ”€β”€ pages/
    β”‚   β”œβ”€β”€ popup/              # Popup interface
    β”‚   β”‚   β”œβ”€β”€ index.html
    β”‚   β”‚   β”œβ”€β”€ index.vue
    β”‚   β”‚   └── main.ts
    β”‚   └── welcome/            # Welcome page
    β”‚       β”œβ”€β”€ index.html
    β”‚       β”œβ”€β”€ index.vue
    β”‚       └── main.ts
    β”œβ”€β”€ shared/                 # Shared utilities
    β”‚   └── config/
    └── public/
        └── images/             # Extension icons

    πŸ›  Tech Stack

    Core Dependencies

    • Vue 3 - Progressive JavaScript framework
    • TypeScript - Typed JavaScript
    • Vite - Fast build tool and dev server
    • UnoCSS - Atomic CSS engine
    • DaisyUI - Tailwind CSS component library

    Extensions & Plugins

    Development Tools

    πŸš€ Quick Start

    Using npm

    # Create new project
    npm create @leo-millenial/vite-vue-bex my-extension
    cd my-extension
    
    # Install dependencies
    npm install
    
    # Start development
    npm run dev

    Using pnpm

    # Create new project
    pnpm create @leo-millenial/vite-vue-bex my-extension
    cd my-extension
    
    # Install dependencies
    pnpm install
    
    # Start development
    pnpm run dev

    Using yarn

    # Clone the template
    npx degit your-username/vue3-chrome-extension-template my-extension
    cd my-extension
    
    # Install dependencies
    pnpm install
    # or
    npm install
    # or
    yarn install