1.0.1 • Published 8 months ago
@mopo/boilerplate v1.0.1
Project Templates
The boilerplate package provides project templates and project initialization functionality.
Docs
(boilerplate)https://mopo-cli.vercel.app/extensions/boilerplate
Core Features
Template Management
- Supports project templates for multiple frameworks
- Currently supported template types:
- Vue 2
- Vue 3
- React
- Wrapper (Wrapper template)
- Unified template directory path management via the
templateDirfunction
Project Initialization
- Provides
generatePackageJsonutility function - Used to generate project package.json configuration files
- Ensures standardization of project dependencies and configurations
- Provides
API Reference
templateDir
function templateDir(name: 'vue2' | 'vue3' | 'react' | 'wrapper'): stringCurrently, this package's functionality is relatively basic. Future updates will integrate repository and project creation features from the CLI into this package.
Roadmap
Near-term Plans
Scenario-based Template Extensions
- SSR Server-side Rendering Templates (Next.js/Nuxt.js)
- Mini Program Development (Wepy/Mpvue)
- Micro-frontend Architecture Templates (qiankun/Module Federation)
- Component Library Development Templates (Storybook + Theme System)
Framework Ecosystem Enhancement
- Svelte Lightweight Framework Support
- Integration of Preact High-performance Alternative
- Deno Runtime Environment Adaptation
More
- Visual Template Configuration Interface (Web Dashboard)
- Enterprise Private Template Repository Support
- CI/CD Pipeline Automatic Integration