mirror of
https://github.com/Aviortheking/game-of-life.js.git
synced 2025-04-22 10:52:11 +00:00
Initial Commit
This commit is contained in:
commit
1ec1615506
8
.editorconfig
Normal file
8
.editorconfig
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
node_modules/
|
||||||
|
build/
|
1
README.md
Normal file
1
README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
This pojecct is me building the [Game of life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) over a weekend
|
13
index.html
Normal file
13
index.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>Document</title>
|
||||||
|
<script defer src="build/main.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<canvas></canvas>
|
||||||
|
</body>
|
||||||
|
</html>
|
20
package.json
Normal file
20
package.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "game-of-life",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"main": "index.js",
|
||||||
|
"repository": "https://git.delta-wings.net/Avior/game-of-life.js",
|
||||||
|
"author": "Avior <florian.bouillon@delta-wings.net>",
|
||||||
|
"license": "MIT",
|
||||||
|
"private": false,
|
||||||
|
"scripts": {
|
||||||
|
"watch": "webpack --progress --profile --colors --watch --mode='development'",
|
||||||
|
"build:prod": "webpack --progress --profile --colors --mode='production'",
|
||||||
|
"build:dev": "webpack --progress --profile --colors --mode='development'"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"ts-loader": "^6.1.2",
|
||||||
|
"typescript": "^3.6.3",
|
||||||
|
"webpack": "^4.41.0",
|
||||||
|
"webpack-cli": "^3.3.9"
|
||||||
|
}
|
||||||
|
}
|
10
tsconfig.json
Normal file
10
tsconfig.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "./build/",
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"module": "commonjs",
|
||||||
|
"target": "es5",
|
||||||
|
"jsx": "preserve",
|
||||||
|
"allowJs": true
|
||||||
|
}
|
||||||
|
}
|
28
webpack.config.js
Normal file
28
webpack.config.js
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
const paths = {
|
||||||
|
build: path.resolve(__dirname, './build'),
|
||||||
|
src: __dirname
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = (env, options) => {
|
||||||
|
return {
|
||||||
|
resolve: {
|
||||||
|
extensions: ['.ts']
|
||||||
|
},
|
||||||
|
entry: path.join(paths.src, 'main.ts'),
|
||||||
|
output: {
|
||||||
|
path: paths.build,
|
||||||
|
},
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.ts$/,
|
||||||
|
use: [
|
||||||
|
"ts-loader"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user