Initial Commit

This commit is contained in:
Florian Bouillon 2019-09-28 01:00:21 +02:00
commit 1ec1615506
No known key found for this signature in database
GPG Key ID: B143FF27EF555D16
9 changed files with 3058 additions and 0 deletions

8
.editorconfig Normal file
View 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
View File

@ -0,0 +1,2 @@
node_modules/
build/

1
README.md Normal file
View 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
View 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>

1
main.ts Normal file
View File

@ -0,0 +1 @@
console.log("test")

20
package.json Normal file
View 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
View File

@ -0,0 +1,10 @@
{
"compilerOptions": {
"outDir": "./build/",
"noImplicitAny": true,
"module": "commonjs",
"target": "es5",
"jsx": "preserve",
"allowJs": true
}
}

28
webpack.config.js Normal file
View 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"
]
},
]
},
};
};

2975
yarn.lock Normal file

File diff suppressed because it is too large Load Diff