Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust refactoring of samchon/tgrid#58 #14

Merged
merged 2 commits into from
Mar 13, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
Ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12.x
node-version: 20.x
- run: npm install
- run: npm run build
- run: npm run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ lib/
node_modules/

package-lock.json
pnpm-lock.yaml
*.log
15 changes: 0 additions & 15 deletions .npmignore

This file was deleted.

51 changes: 22 additions & 29 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "TypeScript Test using TS-NODE",
"runtimeArgs": [
"-r",
"ts-node/register"
],
"args": [
"${workspaceRoot}/src/test/index.ts"
]
},
{
"type": "node",
"request": "launch",
"name": "JavaScript Test using SourceMap",
"program": "${workspaceRoot}/lib/test/index.js",
"cwd": "${workspaceRoot}",

// TypeScript
"sourceMaps": true,
"outFiles": ["${workspaceRot}/lib/**.js"]
}
]
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}/bin/test/main.js",
"cwd": "${workspaceRoot}",
// TypeScript
"sourceMaps": true
},
{
"type": "node",
"request": "attach",
"name": "Attach to Process",
"port": 5858,
"outFiles": []
}
]
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"editor.tabSize": 2,
"editor.formatOnSave": true,
"[typescript][javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
}
}
33 changes: 22 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"name": "mutex-server",
"version": "0.3.2",
"version": "0.4.0",
"description": "Mutex Server using WebSocket",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"scripts": {
"api": "typedoc src ../tstl/src --exclude \"**/+(test|benchmark)/**\" --excludeNotDocumented --plugin typedoc-plugin-external-module-name --plugin typedoc-plugin-exclude-references --out ../mutex.dev/api",
"build": "npm run compile",
"compile": "rimraf lib && tsc",
"dev": "rimraf lib && tsc --watch",
"test": "node lib/test",
"test:ts": "ts-node src/test"
"build": "npm run build:main && npm run build:test",
"build:main": "rimraf lib && tsc",
"build:test": "rimraf bin && tsc --project test/tsconfig.json",
"dev": "npm run build:test -- --watch",
"prepare": "ts-patch install",
"prettier": "prettier src --write && prettier test --write",
"test": "node bin/test"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -48,17 +49,27 @@
},
"homepage": "https://github.com/samchon/mutex",
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/cli": "^0.11.19",
"@types/node": "^13.11.1",
"cli": "^1.0.1",
"prettier": "^3.2.5",
"rimraf": "^3.0.2",
"source-map-support": "^0.5.16",
"ts-node": "^8.8.2",
"typedoc": "^0.22.10",
"typescript": "^4.5.2"
"ts-patch": "^3.1.2",
"typedoc": "^0.25.12",
"typescript": "^5.4.2",
"typescript-transform-paths": "^3.4.7"
},
"dependencies": {
"tgrid": "^0.8.9",
"tgrid": "^0.9.0",
"tstl": "^2.5.13"
}
},
"files": [
"LICENSE",
"README.md",
"lib",
"src"
]
}
14 changes: 14 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
parser: "typescript",
printWidth: 80,
semi: true,
tabWidth: 2,
trailingComma: "all",
importOrder: [
"<THIRD_PARTY_MODULES>",
"^[./]",
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrderParserPlugins: ["decorators-legacy", "typescript"],
};
Loading