Move engine code into engine subfolder
This commit is contained in:
parent
2f0b10af14
commit
6c497e4778
21 changed files with 78 additions and 0 deletions
37
engine/.eslintrc.js
Normal file
37
engine/.eslintrc.js
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 2020
|
||||
},
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: [
|
||||
'@typescript-eslint',
|
||||
],
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/eslint-recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
],
|
||||
rules: {
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
semi: ['error', 'always'],
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
// '@typescript-eslint/consistent-type-assertions': 'off',
|
||||
// '@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-empty-function': 'off',
|
||||
'@typescript-eslint/no-unused-vars': ["warn", { "argsIgnorePattern": "^_" }],
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||
'@typescript-eslint/no-use-before-define': 'off',
|
||||
'@typescript-eslint/no-namespace': 'off',
|
||||
'no-inner-declarations': 'off',
|
||||
'no-return-assign': 'off',
|
||||
// 'no-fallthrough': 'off',
|
||||
quotes: 'off',
|
||||
'no-empty': 'off',
|
||||
'quotes': ['error', 'single']
|
||||
}
|
||||
};
|
||||
4
engine/.travis.yml
Normal file
4
engine/.travis.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
language: node_js
|
||||
|
||||
node_js:
|
||||
- node
|
||||
34
engine/.vscode/launch.json
vendored
Normal file
34
engine/.vscode/launch.json
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Mocha Tests",
|
||||
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
|
||||
"args": [
|
||||
"--require",
|
||||
"ts-node/register",
|
||||
"--reporter",
|
||||
"dot",
|
||||
"--slow",
|
||||
"5000",
|
||||
"--colors",
|
||||
"${workspaceFolder}/src/*.spec.ts",
|
||||
],
|
||||
"internalConsoleOptions": "openOnSessionStart",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch Program",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"program": "${workspaceFolder}/index.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
3
engine/.vscode/settings.json
vendored
Normal file
3
engine/.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"editor.formatOnSave": true
|
||||
}
|
||||
0
package-lock.json → engine/package-lock.json
generated
0
package-lock.json → engine/package-lock.json
generated
Loading…
Add table
Add a link
Reference in a new issue