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" },