Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
framework initiation
Browse files Browse the repository at this point in the history
  • Loading branch information
mgilangjanuar committed Aug 27, 2021
1 parent 783730b commit 12a29b7
Show file tree
Hide file tree
Showing 31 changed files with 27,005 additions and 0 deletions.
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "teledrive",
"version": "0.1.0",
"main": "index.js",
"repository": "[email protected]:mgilangjanuar/photosgram.git",
"author": "M Gilang Januar <[email protected]>",
"license": "MIT",
"private": true,
"scripts": {
"server": "yarn workspace server",
"web": "yarn workspace web"
},
"workspaces": [
"server",
"web"
]
}
5 changes: 5 additions & 0 deletions server/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.vscode
node_modules
dist
cert
get_env.js
95 changes: 95 additions & 0 deletions server/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
module.exports = {
root: true,
env: {
node: true
},
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
// 'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/naming-convention': [
'error',
{
'selector': 'variable',
'format': ['camelCase', 'UPPER_CASE', 'PascalCase'],
'leadingUnderscore': 'allow'
},
{
'selector': 'typeLike',
'format': ['PascalCase']
}
],
'@typescript-eslint/indent': [
'error',
2
],
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/quotes': [
'error',
'single',
{
'avoidEscape': true
}
],
'@typescript-eslint/semi': [
'error',
'never'
],
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/member-delimiter-style': [
'error',
{
'multiline': {
'delimiter': 'comma',
'requireLast': false
},
'singleline': {
'delimiter': 'comma',
'requireLast': false
}
}
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
'vars': 'all',
'args': 'all',
'varsIgnorePattern': '^\_.*$',
'argsIgnorePattern': '^\_.*$',
}
],
'@typescript-eslint/no-extra-parens': 'error',
'@typescript-eslint/brace-style': 'error',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'no-null/no-null': 'off',
'no-useless-escape': 'off',
'no-trailing-spaces': 'error',
'no-var': 'error',
'prefer-const': 'error',
'spaced-comment': 'error',
'object-curly-spacing': ['error', 'always'],
'space-in-parens': ['error', 'never'],
'array-bracket-spacing': ['error', 'never'],
'space-before-function-paren': [
'error',
{
'named': 'never',
'anonymous': 'always',
'asyncArrow': 'always'
}
],
'@typescript-eslint/no-var-requires': 'off'
}
}
24 changes: 24 additions & 0 deletions server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "server",
"version": "0.1.0",
"main": "dist/index.js",
"license": "MIT",
"private": true,
"scripts": {
"start": "nodemon dist/index.js --watch",
"build": "rimraf dist && eslint --fix -c .eslintrc.js --ext .ts . && tsc"
},
"dependencies": {
"input": "^1.0.1",
"telegram": "^1.8.9"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"eslint": "^7.32.0",
"nodemon": "^2.0.12",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"typescript": "^4.4.2"
}
}
1 change: 1 addition & 0 deletions server/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('test')
24 changes: 24 additions & 0 deletions server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"lib": ["es5", "es6", "es2017", "dom"],
"types": ["reflect-metadata", "node"],
"noImplicitAny": false,
"moduleResolution": "node",
"esModuleInterop": true,
"removeComments": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"sourceMap": true,
"baseUrl": ".",
"outDir": "dist",
"resolveJsonModule": true,
"skipLibCheck": true
},
"exclude": [
"tests",
"node_modules",
"dist"
]
}
Loading

0 comments on commit 12a29b7

Please sign in to comment.