Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
dogodo-cc committed Sep 29, 2024
1 parent 7cf8999 commit 77165c1
Show file tree
Hide file tree
Showing 26 changed files with 1,534 additions and 212 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar"]
}
3 changes: 3 additions & 0 deletions packages/create-cocos-plugin/templates/vue-ts/i18n/en.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
title: 'creator 插件: vue + ts',
};
3 changes: 3 additions & 0 deletions packages/create-cocos-plugin/templates/vue-ts/i18n/zh.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
title: 'creator plugin: vue + ts',
};
6 changes: 3 additions & 3 deletions packages/create-cocos-plugin/templates/vue-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "cocos-plugin-vue3",
"name": "cocos-plugin-vue-ts",
"private": true,
"version": "0.0.1",
"package_version": 2,
Expand All @@ -25,7 +25,7 @@
"menu": [
{
"path": "i18n:menu.panel",
"label": "打开 vue3 面板",
"label": "i18n:cocos-plugin-vue-ts.title",
"message": "open"
}
],
Expand All @@ -39,7 +39,7 @@
},
"panels": {
"default": {
"main": "./dist/panel1.cjs",
"main": "./dist/panel.cjs",
"size": {
"min-width": 400,
"min-height": 300,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { name } from '../../package.json' with {type: 'json'};

export const methods = {
async open() {
console.log('open vue3');
Editor.Panel.open(name);
},
};
Expand Down

This file was deleted.

10 changes: 0 additions & 10 deletions packages/create-cocos-plugin/templates/vue-ts/src/panels/panel2.ts

This file was deleted.

5 changes: 2 additions & 3 deletions packages/create-cocos-plugin/templates/vue-ts/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export default defineConfig(({ mode }) => {
lib: {
entry: {
browser: './src/browser/index.ts',
panel1: './src/panels/panel1.ts',
panel2: './src/panels/panel2.ts',
panel: './src/panels/panel.ts',
},
formats: ['cjs'],
fileName: (format, entryName) => `${entryName}.${format}`,
Expand All @@ -42,7 +41,7 @@ export default defineConfig(({ mode }) => {
}),
nodeExternals({
builtins: true, // 排除 node 的内置模块
deps: true,
deps: false, // 将依赖打入 dist,发布的时候可以删除 node_modules
devDeps: true,
peerDeps: true,
optDeps: true,
Expand Down
3 changes: 3 additions & 0 deletions packages/create-cocos-plugin/templates/vue/i18n/en.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
title: 'creator 插件: vue + js',
};
3 changes: 3 additions & 0 deletions packages/create-cocos-plugin/templates/vue/i18n/zh.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
title: 'creator plugin: vue + js',
};
13 changes: 0 additions & 13 deletions packages/create-cocos-plugin/templates/vue/index.html

This file was deleted.

Loading

0 comments on commit 77165c1

Please sign in to comment.