Skip to content

Commit

Permalink
WIP added nx, esbuild, vitest, linter
Browse files Browse the repository at this point in the history
  • Loading branch information
serbanghita committed Jun 2, 2024
1 parent f01d4f1 commit 3658c4b
Show file tree
Hide file tree
Showing 35 changed files with 12,589 additions and 23,814 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ Library is currently under development. \
You can see the progress by following me at https://www.youtube.com/@SerbanTV \
Catch me on the [Discord server](https://discord.gg/Vur9NaF) to discuss stuff about game dev, ECS, etc.

## New repo

```
npm install --save-dev eslint @eslint/js @types/eslint__js typescript typescript-eslint
```

## Bootstrapping a game (wip)

```ts
Expand Down
9 changes: 9 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
);
4 changes: 0 additions & 4 deletions lerna.json

This file was deleted.

46 changes: 43 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,53 @@
{
"targetDefaults": {},
"targetDefaults": {
"test": {
"dependsOn": [
"^test"
]
},
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/dist"
],
"cache": false
}
},
"namedInputs": {
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"sharedGlobals": [],
"production": [
"default"
"default",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/eslint.config.js",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/src/test-setup.[jt]s",
"!{projectRoot}/test-setup.[jt]s"
]
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "main",
"plugins": [
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint",
"extensions": [
"ts",
"tsx",
"js",
"jsx",
"html",
"vue"
]
}
}
]
}
Loading

0 comments on commit 3658c4b

Please sign in to comment.