From df921c8a48826e7aad614eeb82350b964f51c867 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Wed, 4 May 2022 15:30:50 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20scripts/create=20=E8=B0=83=E6=95=B4=20pac?= =?UTF-8?q?kage.json=20=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/create/template/package.json.tpl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/create/template/package.json.tpl b/scripts/create/template/package.json.tpl index 5231c936..90bda795 100644 --- a/scripts/create/template/package.json.tpl +++ b/scripts/create/template/package.json.tpl @@ -2,6 +2,12 @@ "name": "@vuepress-plume/vuepress-{{ pkgName }}", "version": "{{ version }}", "description": "The Plugin for VuePres 2", + "keyword": [ + "VuePress", + "vuepress plugin", + "{{ lowerName }}", + "vuepress-plugin-{{ pkgName }}" + ], "homepage": "https://github.com/pengzhanbo/vuepress-theme-plume#readme", "bugs": { "url": "https://github.com/pengzhanbo/vuepress-theme-plume/issues" @@ -17,9 +23,11 @@ "lib" ], "scripts": { - "build": "pnpm run clean && pnpm run ts", + "build": "pnpm run clean && pnpm run copy && pnpm run ts", "clean": "rimraf lib *.tsbuildinfo", - "dev": "pnpm run ts:watch", + "copy": "cpx \"src/**/*.{d.ts,vue,css,scss,jpg,png}\" lib", + "copy:watch": "cpx \"src/**/*.{d.ts,vue,css,scss,jpg,png}\" lib -w", + "dev": "concurrently \"pnpm copy:watch\" \"pnpm ts:watch\"", "ts": "tsc -b tsconfig.build.json", "ts:watch": "tsc -b tsconfig.build.json --watch" },