Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .eslintrc.js

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ jobs:
uses: ./.github/actions/setup.node
- name: Lint
run: pnpm lint
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup.node
- name: Generate docs
run: pnpm doc
test:
runs-on: ubuntu-latest
needs: lint
Expand Down
7 changes: 0 additions & 7 deletions bin/noray.mjs

This file was deleted.

7 changes: 7 additions & 0 deletions bin/noray.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Noray } from "../src/noray.ts";

const noray = new Noray();
noray.start();

process.on("exit", () => noray.shutdown());
process.on("SIGINT", () => noray.shutdown());
14 changes: 14 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-check

import js from "@eslint/js";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";

export default defineConfig({
files: ["**/*.{js,ts}"],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
tseslint.configs.stylistic,
],
});
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@foxssake/noray",
"version": "1.5.2",
"version": "1.5.3",
"description": "Online multiplayer orchestrator and potential game platform",
"main": "src/noray.mjs",
"main": "src/noray.ts",
"type": "module",
"bin": {
"noray": "bin/noray.mjs"
"noray": "bin/noray.ts"
},
"scripts": {
"lint": "eslint --ext .mjs src",
"doc": "jsdoc -c .jsdoc.js src",
"lint": "eslint src bin",
"test": "node --test test/spec/**/*.test.ts",
"test:e2e": "node --test test/e2e/**/*.test.ts | node scripts/taplog.mjs utap \"pino-pretty -c\"",
"start": "node bin/noray.mjs | pino-pretty",
"start:prod": "NODE_ENV=production node bin/noray.mjs"
"test:e2e": "node --test test/e2e/**/*.test.ts | node scripts/taplog.ts utap \"pino-pretty -c\"",
"start": "node bin/noray.ts | pino-pretty",
"start:prod": "NODE_ENV=production node bin/noray.ts"
},
"keywords": [
"online",
Expand All @@ -29,14 +29,16 @@
"url": "https://github.com/foxssake/noray/issues"
},
"devDependencies": {
"eslint": "^8.36.0",
"@eslint/js": "^10.0.1",
"eslint": "^10.4.1",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-promise": "^6.0.0",
"jsdoc": "^4.0.2",
"pino-pretty": "^10.0.0",
"sinon": "^15.0.4",
"sinon": "^22.0.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.60.1",
"utap": "^0.2.0"
},
"dependencies": {
Expand Down
Loading
Loading