-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 77d07c2
Showing
42 changed files
with
12,786 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[*] | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true | ||
|
||
[package.json] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
snapshot* | ||
dist | ||
lib | ||
node_modules | ||
common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jest": true, | ||
"es6": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"parserOptions": { | ||
"parser": "@typescript-eslint/parser", | ||
"sourceType": "module", | ||
"allowImportExportEverywhere": true | ||
}, | ||
"rules": { | ||
"no-param-reassign": 0, | ||
"camelcase": 1, | ||
"no-new": 1, | ||
"new-cap": 0, | ||
"no-underscore-dangle": 0, | ||
"func-style": 0, | ||
"no-console": ["error", { "allow": ["warn", "error"] }], | ||
"@typescript-eslint/no-explicit-any": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
.DS_Store | ||
.vscode | ||
node_modules | ||
dist | ||
temp |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* eslint-disable @typescript-eslint/no-require-imports */ | ||
const { name } = require('./package.json'); | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
apps: [ | ||
{ | ||
name, | ||
script: path.resolve(__dirname, './dist/server/app.js'), | ||
instances: require('os').cpus().length, | ||
instance_var: name, // 运行实例的名称 | ||
autorestart: true, | ||
exec_mode: 'cluster', | ||
watch: true, | ||
env_production: { | ||
NODE_ENV: 'prod', | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"watch": ["src"], | ||
"ext": "ts", | ||
"exec": "ts-node -r tsconfig-paths/register src/server/app.ts" | ||
} | ||
|
Oops, something went wrong.