Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dogodo-cc committed Nov 2, 2024
1 parent 2f6fa24 commit 06b2fff
Show file tree
Hide file tree
Showing 21 changed files with 475 additions and 405 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/

registry=https://registry.npmmirror.com
#registry=https://registry.npmjs.org

use-node-version=22.11.0
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc.json

This file was deleted.

10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# electron

## asar

https://github.com/electron/asar

## electron-builder
https://github.com/electron-userland/electron-builder

https://github.com/electron-userland/electron-builder

## electron-universal
https://github.com/electron/universal

https://github.com/electron/universal

## electron-forge

https://www.electronforge.io/

## 开发依赖

所有开发依赖都安装在 root/package.json@devDependencies 中,这样在打包的时候就不会把开发依赖打包进去。
所有开发依赖都安装在 root/package.json@devDependencies 中,这样在打包的时候就不会把开发依赖打包进去。

使用 pnpm ,但是不用 workspaces 功能,为了更好的控制依赖安装的位置。
26 changes: 13 additions & 13 deletions app-views/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<!-- https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP -->
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;frame-src *"
/>
<title>Cocos Creator 4.0</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="src/main.ts"></script>
</body>
<head>
<meta charset="UTF-8" />
<!-- https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP -->
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;frame-src *"
/>
<title>Cocos Creator next</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="src/main.ts"></script>
</body>
</html>
14 changes: 6 additions & 8 deletions app-views/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
},
"dependencies": {
"@ant-design/icons-vue": "^7.0.1",
"ant-design-vue": "^4.2.3",
"lit": "^3.2.0",
"lodash": "^4.17.21",
"vue": "^3.5.3",
"vue-router": "4"
"ant-design-vue": "^4.2.5",
"vue": "^3.5.12",
"vue-router": "4.4.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.1.2",
"@vitejs/plugin-vue": "^5.1.4",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.3",
"vue-tsc": "^2.1.6"
"vite": "^5.4.10",
"vue-tsc": "^2.1.10"
}
}
Loading

0 comments on commit 06b2fff

Please sign in to comment.