change parcel v2

This commit is contained in:
monoid 2021-10-09 23:43:17 +09:00
parent f1a2d11ae1
commit af1a1319a5
3 changed files with 21 additions and 15 deletions

5
.gitignore vendored
View File

@ -1,5 +1,6 @@
node_modules/** node_modules/**
package-lock.json package-lock.json
dist/** dist/**
.cache/** .parcel-cache/**
.vscode/** .vscode/**
assets/**

View File

@ -5,7 +5,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="index.css"> <link rel="stylesheet" href="index.css">
<script src="./index.tsx" defer></script> <script type="module" src="./index.tsx" defer></script>
</head> </head>
<body> <body>
<canvas id="canvas" width="500" height="500"></canvas> <canvas id="canvas" width="500" height="500"></canvas>

View File

@ -2,27 +2,32 @@
"name": "computer-graphics-study", "name": "computer-graphics-study",
"version": "1.0.0", "version": "1.0.0",
"description": "study computer graphics", "description": "study computer graphics",
"main": "index.js",
"scripts": { "scripts": {
"start": "parcel index.html", "start": "parcel index.html",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"staticFiles": {
"staticPath": [
{
"staticPath": "assets",
"staticOutDir": "assets"
}
]
},
"devDependencies": {
"@types/react": "^17.0.27",
"parcel": "^2.0.0-rc.0",
"webgl-strict-types": "^1.0.5"
},
"dependencies": { "dependencies": {
"@emotion/react": "^11.4.1", "@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0", "@emotion/styled": "^11.3.0",
"@mui/material": "^5.0.1", "@mui/material": "^5.0.3",
"@types/react": "^17.0.24", "gl-matrix": "^3.4.3",
"gl-matrix": "^3.3.0",
"parcel-bundler": "^1.12.5",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2" "react-dom": "^17.0.2",
}, "webgl-obj-loader": "^2.0.8"
"devDependencies": {
"glslify-bundle": "^5.1.1",
"glslify-deps": "^1.3.2",
"typescript": "^4.4.2",
"webgl-strict-types": "^1.0.4"
} }
} }