Skip to content

Commit

Permalink
Merge pull request #44 from Sidaroth/esbuild-ts
Browse files Browse the repository at this point in the history
Update to Vite and rewrite to TS
  • Loading branch information
Sidaroth committed Oct 12, 2023
2 parents e6a44fe + 35f8e8c commit bc0303c
Show file tree
Hide file tree
Showing 77 changed files with 4,706 additions and 1,855 deletions.
14 changes: 0 additions & 14 deletions .babelrc

This file was deleted.

25 changes: 4 additions & 21 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
module.exports = {
extends: ['airbnb-base', './scripts/eslint/index.js'],
plugins: ['import'],
parser: 'babel-eslint',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', './scripts/eslint/index.js'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
parserOptions: {
ecmaVersion: 2017,
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
sourceType: 'module',
},
settings: {
'import/resolver': {
webpack: {
config: 'webpack.config.js',
},
},
},
rules: {
strict: 'error',
},
};
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const isGameEntity = function isGameEntityFunc(state) {
}

return {
id: getUUID(),
id: uuidv4(),
printInfo,
};
};
Expand Down
127 changes: 0 additions & 127 deletions config/index.ejs

This file was deleted.

115 changes: 0 additions & 115 deletions config/webpack.config.base.js

This file was deleted.

31 changes: 0 additions & 31 deletions config/webpack.config.dev.js

This file was deleted.

14 changes: 0 additions & 14 deletions config/webpack.config.prod.js

This file was deleted.

12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>

<head>
<script type="module" src="/src/index.ts"></script>
</head>

<body>
<div id="game"></div>
</body>

</html>
16 changes: 0 additions & 16 deletions jsconfig.json

This file was deleted.

Loading

0 comments on commit bc0303c

Please sign in to comment.