New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@bestwu/xx-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bestwu/xx-cli

CLI tool for scaffolding Vue TypeScript projects

latest
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

XX-CLI

A versatile CLI tool for scaffolding projects from various templates. Support for Vue TypeScript projects and TypeScript library development, with an extensible architecture for future templates.

Installation

npm install -g @bestwu/xx-cli

Usage

Create a new project

Interactive mode (recommended):

xx-cli create

Create a project with specific name:

xx-cli create my-project

Create a project with specific template:

xx-cli create my-project --template vue-ts
xx-cli create my-lib --template lib-ts

List available templates

xx-cli list

Available Templates

vue-ts

  • Description: Vue TypeScript project template for daily development
  • Repository: https://github.com/xx-template/vue-ts.git
  • Use case: Web applications, SPAs, Vue projects

lib-ts

Features

  • 🎯 Template Selection: Choose from multiple project templates
  • 🚀 Interactive CLI: User-friendly prompts for template and project name selection
  • 📦 Automatic Setup: Package.json updates and clean git history
  • 🔧 Command Line Options: Direct template specification for automation
  • 📋 Template Listing: View all available templates and their descriptions
  • 🎨 Extensible: Easy to add new templates in the future

CLI Commands

CommandDescriptionOptions
create [project-name]Create a new project-t, --template <template>
listList all available templates-

Development

  • Clone this repository
  • Install dependencies:
    npm install
    
  • Build the project:
    npm run build
    
  • Link the package globally:
    npm link
    

Adding New Templates

To add a new template, update the templates array in src/index.ts:

{
  name: 'template-name',
  description: 'Template description',
  repository: 'https://github.com/xx-template/template-repo.git',
  postCloneInstructions: [
    'npm install',
    'npm run start'
  ]
}

License

MIT

Keywords

cli

FAQs

Package last updated on 19 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts