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/**
package-lock.json
dist/**
.cache/**
.vscode/**
.parcel-cache/**
.vscode/**
assets/**

View File

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

View File

@ -2,27 +2,32 @@
"name": "computer-graphics-study",
"version": "1.0.0",
"description": "study computer graphics",
"main": "index.js",
"scripts": {
"start": "parcel index.html",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"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": {
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@mui/material": "^5.0.1",
"@types/react": "^17.0.24",
"gl-matrix": "^3.3.0",
"parcel-bundler": "^1.12.5",
"@mui/material": "^5.0.3",
"gl-matrix": "^3.4.3",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"glslify-bundle": "^5.1.1",
"glslify-deps": "^1.3.2",
"typescript": "^4.4.2",
"webgl-strict-types": "^1.0.4"
"react-dom": "^17.0.2",
"webgl-obj-loader": "^2.0.8"
}
}