结构调整

This commit is contained in:
2024-05-16 20:42:47 +08:00
parent beef70cb4d
commit 4fd22abf7a
4 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
<!DOCTYPE html> <!DOCTYPE html>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>DEMO</title> <title>DEMO</title>
<script defer type="module" src="./index.js"></script> <script defer type="module" src="./main.js"></script>

1
main.js Normal file
View File

@ -0,0 +1 @@
console.log('main.js')

View File

@ -1,7 +1,7 @@
{ {
"name": "kana", "name": "kana",
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "server.js",
"type": "module", "type": "module",
"repository": "git@github.com:InvisibleFuture/kana.git", "repository": "git@github.com:InvisibleFuture/kana.git",
"author": "satori <huan0016@gmail.com>", "author": "satori <huan0016@gmail.com>",
@ -19,11 +19,10 @@
"string-random": "^0.1.3" "string-random": "^0.1.3"
}, },
"scripts": { "scripts": {
"dev": "nodemon --watch index.js index.js --dev", "dev": "nodemon --watch server.js server.js --dev",
"start": "node index.js" "start": "node server.js"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^8.2.2",
"nodemon": "^3.1.0", "nodemon": "^3.1.0",
"vite": "^5.2.11" "vite": "^5.2.11"
} }

View File