diff --git a/package-lock.json b/package-lock.json index 3a43066..0967740 100644 --- a/package-lock.json +++ b/package-lock.json @@ -620,8 +620,8 @@ "resolved": "packages/utils", "link": true }, - "node_modules/@cocos-fe/vite-plugin-cocos-panle": { - "resolved": "packages/vite-plugin-cocos-panle", + "node_modules/@cocos-fe/vite-plugin-cocos-panel": { + "resolved": "packages/vite-plugin-cocos-panel", "link": true }, "node_modules/@cspotcode/source-map-support": { @@ -10326,7 +10326,7 @@ } }, "packages/create-cocos-plugin": { - "version": "1.0.2", + "version": "1.0.3", "license": "MIT", "bin": { "create-cocos-plugin": "index.js" @@ -10523,21 +10523,20 @@ "node": ">=18" } }, - "packages/vite-plugin-cocos-panle": { - "name": "@cocos-fe/vite-plugin-cocos-panle", - "version": "0.0.1.beta-1", + "packages/vite-plugin-cocos-panel": { + "version": "0.0.1-beta.1", "license": "ISC", - "dependencies": { - "vite": "^5.4.8" - }, "devDependencies": { "acorn": "^8.12.1", "astring": "^1.9.0", "estree-walker": "^3.0.3", "typescript": "^5.6.2" + }, + "peerDependencies": { + "vite": "^5.0.0" } }, - "packages/vite-plugin-cocos-panle/node_modules/estree-walker": { + "packages/vite-plugin-cocos-panel/node_modules/estree-walker": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", @@ -10546,6 +10545,21 @@ "@types/estree": "^1.0.0" } }, + "packages/vite-plugin-cocos-panle": { + "name": "@cocos-fe/vite-plugin-cocos-panle", + "version": "0.0.1.beta-1", + "extraneous": true, + "license": "ISC", + "dependencies": { + "vite": "^5.4.8" + }, + "devDependencies": { + "acorn": "^8.12.1", + "astring": "^1.9.0", + "estree-walker": "^3.0.3", + "typescript": "^5.6.2" + } + }, "projects/cocos-editor-tool": { "version": "1.0.0", "license": "ISC", diff --git a/packages/create-cocos-plugin/README.md b/packages/create-cocos-plugin/README.md index 3736c4f..0eca563 100644 --- a/packages/create-cocos-plugin/README.md +++ b/packages/create-cocos-plugin/README.md @@ -52,7 +52,6 @@ Currently supported template presets include: - `vanilla` - `vue` - `vue-ts` -- `react` - `react-ts` You can use `.` for the project name to scaffold in the current directory. diff --git a/packages/create-cocos-plugin/package.json b/packages/create-cocos-plugin/package.json index 66f0f7e..a709074 100644 --- a/packages/create-cocos-plugin/package.json +++ b/packages/create-cocos-plugin/package.json @@ -37,7 +37,7 @@ "bugs": { "url": "https://github.com/cocos-creator/cocos-fe/issues" }, - "homepage": "https://github.com/cocos-creator/cocos-fe#readme", + "homepage": "https://github.com/cocos-creator/fe-team/tree/main/packages/create-cocos-plugin", "devDependencies": { "@types/cross-spawn": "^6.0.6", "@types/minimist": "^1.2.5", diff --git a/packages/create-cocos-plugin/templates/react-ts/README.md b/packages/create-cocos-plugin/templates/react-ts/README.md old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/_gitignore b/packages/create-cocos-plugin/templates/react-ts/_gitignore old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/eslint.config.js b/packages/create-cocos-plugin/templates/react-ts/eslint.config.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/i18n/en.js b/packages/create-cocos-plugin/templates/react-ts/i18n/en.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/i18n/zh.js b/packages/create-cocos-plugin/templates/react-ts/i18n/zh.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/package-lock.json b/packages/create-cocos-plugin/templates/react-ts/package-lock.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/package.json b/packages/create-cocos-plugin/templates/react-ts/package.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/src/browser/index.ts b/packages/create-cocos-plugin/templates/react-ts/src/browser/index.ts old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/src/panels/App.css b/packages/create-cocos-plugin/templates/react-ts/src/panels/App.css old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/src/panels/App.tsx b/packages/create-cocos-plugin/templates/react-ts/src/panels/App.tsx old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/src/panels/assets/cocos.png b/packages/create-cocos-plugin/templates/react-ts/src/panels/assets/cocos.png old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/src/panels/assets/react.svg b/packages/create-cocos-plugin/templates/react-ts/src/panels/assets/react.svg old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/src/panels/assets/vite.svg b/packages/create-cocos-plugin/templates/react-ts/src/panels/assets/vite.svg old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/src/panels/index.css b/packages/create-cocos-plugin/templates/react-ts/src/panels/index.css old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/src/panels/panel.tsx b/packages/create-cocos-plugin/templates/react-ts/src/panels/panel.tsx old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/src/vite-env.d.ts b/packages/create-cocos-plugin/templates/react-ts/src/vite-env.d.ts old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/tsconfig.app.json b/packages/create-cocos-plugin/templates/react-ts/tsconfig.app.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/tsconfig.json b/packages/create-cocos-plugin/templates/react-ts/tsconfig.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/tsconfig.node.json b/packages/create-cocos-plugin/templates/react-ts/tsconfig.node.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/react-ts/vite.config.ts b/packages/create-cocos-plugin/templates/react-ts/vite.config.ts old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/_gitignore b/packages/create-cocos-plugin/templates/vanilla/_gitignore old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/i18n/en.js b/packages/create-cocos-plugin/templates/vanilla/i18n/en.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/i18n/zh.js b/packages/create-cocos-plugin/templates/vanilla/i18n/zh.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/package-lock.json b/packages/create-cocos-plugin/templates/vanilla/package-lock.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/package.json b/packages/create-cocos-plugin/templates/vanilla/package.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/src/assets/cocos.png b/packages/create-cocos-plugin/templates/vanilla/src/assets/cocos.png old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/src/assets/javascript.svg b/packages/create-cocos-plugin/templates/vanilla/src/assets/javascript.svg old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/src/assets/vite.svg b/packages/create-cocos-plugin/templates/vanilla/src/assets/vite.svg old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/src/browser/index.js b/packages/create-cocos-plugin/templates/vanilla/src/browser/index.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/src/counter.js b/packages/create-cocos-plugin/templates/vanilla/src/counter.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/src/panel.js b/packages/create-cocos-plugin/templates/vanilla/src/panel.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/src/style.css b/packages/create-cocos-plugin/templates/vanilla/src/style.css old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vanilla/vite.config.js b/packages/create-cocos-plugin/templates/vanilla/vite.config.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/.vscode/extensions.json b/packages/create-cocos-plugin/templates/vue-ts/.vscode/extensions.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/README.md b/packages/create-cocos-plugin/templates/vue-ts/README.md old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/_gitignore b/packages/create-cocos-plugin/templates/vue-ts/_gitignore old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/i18n/en.js b/packages/create-cocos-plugin/templates/vue-ts/i18n/en.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/i18n/zh.js b/packages/create-cocos-plugin/templates/vue-ts/i18n/zh.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/package-lock.json b/packages/create-cocos-plugin/templates/vue-ts/package-lock.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/package.json b/packages/create-cocos-plugin/templates/vue-ts/package.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/src/browser/index.ts b/packages/create-cocos-plugin/templates/vue-ts/src/browser/index.ts old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/src/panels/App.vue b/packages/create-cocos-plugin/templates/vue-ts/src/panels/App.vue old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/src/panels/assets/cocos.png b/packages/create-cocos-plugin/templates/vue-ts/src/panels/assets/cocos.png old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/src/panels/assets/vite.svg b/packages/create-cocos-plugin/templates/vue-ts/src/panels/assets/vite.svg old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/src/panels/assets/vue.svg b/packages/create-cocos-plugin/templates/vue-ts/src/panels/assets/vue.svg old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/src/panels/components/HelloWorld.vue b/packages/create-cocos-plugin/templates/vue-ts/src/panels/components/HelloWorld.vue old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/src/panels/panel.ts b/packages/create-cocos-plugin/templates/vue-ts/src/panels/panel.ts old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/src/panels/style.css b/packages/create-cocos-plugin/templates/vue-ts/src/panels/style.css old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/src/vite-env.d.ts b/packages/create-cocos-plugin/templates/vue-ts/src/vite-env.d.ts old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/tsconfig.app.json b/packages/create-cocos-plugin/templates/vue-ts/tsconfig.app.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/tsconfig.json b/packages/create-cocos-plugin/templates/vue-ts/tsconfig.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/tsconfig.node.json b/packages/create-cocos-plugin/templates/vue-ts/tsconfig.node.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue-ts/vite.config.ts b/packages/create-cocos-plugin/templates/vue-ts/vite.config.ts old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/.vscode/extensions.json b/packages/create-cocos-plugin/templates/vue/.vscode/extensions.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/README.md b/packages/create-cocos-plugin/templates/vue/README.md old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/_gitignore b/packages/create-cocos-plugin/templates/vue/_gitignore old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/i18n/en.js b/packages/create-cocos-plugin/templates/vue/i18n/en.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/i18n/zh.js b/packages/create-cocos-plugin/templates/vue/i18n/zh.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/package-lock.json b/packages/create-cocos-plugin/templates/vue/package-lock.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/package.json b/packages/create-cocos-plugin/templates/vue/package.json old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/src/browser/index.js b/packages/create-cocos-plugin/templates/vue/src/browser/index.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/src/panels/App.vue b/packages/create-cocos-plugin/templates/vue/src/panels/App.vue old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/src/panels/assets/cocos.png b/packages/create-cocos-plugin/templates/vue/src/panels/assets/cocos.png old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/src/panels/assets/vite.svg b/packages/create-cocos-plugin/templates/vue/src/panels/assets/vite.svg old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/src/panels/assets/vue.svg b/packages/create-cocos-plugin/templates/vue/src/panels/assets/vue.svg old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/src/panels/components/HelloWorld.vue b/packages/create-cocos-plugin/templates/vue/src/panels/components/HelloWorld.vue old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/src/panels/panel.js b/packages/create-cocos-plugin/templates/vue/src/panels/panel.js old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/src/panels/style.css b/packages/create-cocos-plugin/templates/vue/src/panels/style.css old mode 100644 new mode 100755 diff --git a/packages/create-cocos-plugin/templates/vue/vite.config.js b/packages/create-cocos-plugin/templates/vue/vite.config.js old mode 100644 new mode 100755