Skip to content

Commit

Permalink
Adjust refactoring of samchon/tgrid#58
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Mar 13, 2024
1 parent 328e760 commit 9fd3d60
Show file tree
Hide file tree
Showing 69 changed files with 3,580 additions and 3,700 deletions.
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

0 comments on commit 9fd3d60

Please sign in to comment.