From cd0af480e6bbab659d1140303215cfbc386cdec2 Mon Sep 17 00:00:00 2001 From: wuyugu Date: Sat, 2 Aug 2025 05:46:30 +0800 Subject: [PATCH] feat: split cli and template --- bin/cli.js | 21 --------------------- package.json | 14 +++----------- 2 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 bin/cli.js diff --git a/bin/cli.js b/bin/cli.js deleted file mode 100644 index 6fd427a..0000000 --- a/bin/cli.js +++ /dev/null @@ -1,21 +0,0 @@ -#! /usr/bin/env node -import download from "download-git-repo"; -import { program } from "commander"; - -program - .command("create ") - .description("创建项目") - .action((projectName) => { - download( - "github:gushen610140/template-vue-hucky", - projectName, - { clone: true }, - (err) => { - if (err) { - console.log(err); - } - }, - ); - }); - -program.parse(process.argv); diff --git a/package.json b/package.json index 1b74081..a670be3 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,8 @@ { - "name": "@gushen610140/hucky", - "version": "0.0.1", + "name": "template-vue-hucky", + "version": "0.0.0", "type": "module", - "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org/" - }, - "bin": { - "hucky": "bin/cli.js" - }, + "private": true, "scripts": { "dev": "vite", "build": "vue-tsc -b && vite build", @@ -21,9 +15,7 @@ "@types/node": "^24.1.0", "@vitejs/plugin-vue-jsx": "^5.0.1", "axios": "^1.11.0", - "commander": "^14.0.0", "daisyui": "^5.0.50", - "download-git-repo": "^3.0.2", "motion-v": "^1.6.1", "pinia": "^3.0.3", "pinia-plugin-persistedstate": "^4.4.1",