Skip to content

Commit

Permalink
feat: publish vite-plugin-cocos-panel
Browse files Browse the repository at this point in the history
  • Loading branch information
dogodo-cc committed Sep 27, 2024
1 parent 3e14f94 commit 7cf8999
Show file tree
Hide file tree
Showing 24 changed files with 661 additions and 3,641 deletions.
2,601 changes: 525 additions & 2,076 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions packages/create-cocos-plugin/templates/vue-ts/_gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
43 changes: 10 additions & 33 deletions packages/create-cocos-plugin/templates/vue-ts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions packages/create-cocos-plugin/templates/vue-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
"build": "vue-tsc -b && vite build"
},
"devDependencies": {
"@cocos-fe/vite-plugin-cocos-panel": "^0.0.1-beta.1",
"@cocos/creator-types": "^3.8.3",
"@vitejs/plugin-vue": "^5.1.2",
"acorn": "^8.12.1",
"astring": "^1.9.0",
"estree-walker": "^3.0.3",
"rollup-plugin-node-externals": "^7.1.3",
"typescript": "^5.5.3",
"vite": "^5.4.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import './style.css';
import './panel2.css';

export default Editor.Panel.define({
template: '<div id="app"></div>', // 只留一个 div 用于 vue 的挂载
template: '<div id="app"></div>',
$: {
root: '#app',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite';
import { nodeExternals } from 'rollup-plugin-node-externals';
import vue from '@vitejs/plugin-vue';
import { cocosPanelConfig, cocosPanelCss } from './vite-plugin-cocos-panel';
import { cocosPanelConfig, cocosPanelCss } from '@cocos-fe/vite-plugin-cocos-panel';

export default defineConfig(({ mode }) => {
/**
Expand Down
17 changes: 0 additions & 17 deletions packages/create-cocos-plugin/templates/vue2/README.md

This file was deleted.

31 changes: 0 additions & 31 deletions packages/create-cocos-plugin/templates/vue2/hello.build.config.mjs

This file was deleted.

Loading

0 comments on commit 7cf8999

Please sign in to comment.