This commit is contained in:
Alexander Popov 2022-07-28 23:57:59 +03:00
parent 1e6a90750d
commit 3e036598a2
Signed by: iiiypuk
GPG Key ID: D8C9B59A9F04A70C
7 changed files with 2118 additions and 0 deletions

21
.editorconfig Normal file
View File

@ -0,0 +1,21 @@
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[{*.html,*.css,*.json}]
indent_style = tab
indent_size = 4
[*.js]
indent_style = space
indent_size = 2
[package.json]
indent_style = space
indent_size = 2

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist/

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"license": "MIT",
"private": true,
"scripts": {
"serve": "webpack serve",
"build": "webpack"
},
"dependencies": {
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
},
"devDependencies": {
"webpack-dev-server": "^4.9.3"
}
}

17
public/index.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>test</title>
</head>
<body>
<div class="container">
<div class="canvas">
<canvas id="game" width="400" height="620">
<!-- ... -->
</canvas>
</div>
</div>
</body>
</html>

0
src/index.js Normal file
View File

16
webpack.config.js Normal file
View File

@ -0,0 +1,16 @@
const path = require('path');
module.exports = {
mode: 'development',
entry: './src/index.js',
output: {
filename: 'game.js',
publicPath: 'public',
path: path.resolve(__dirname, 'dist'),
},
devServer: {
static: path.join(__dirname, 'public'),
compress: false,
port: 55555,
},
};

2048
yarn.lock Normal file

File diff suppressed because it is too large Load Diff