Skip to content

Commit

Permalink
Improve Development Environment
Browse files Browse the repository at this point in the history
  • Loading branch information
nesimtunc committed Feb 12, 2022
1 parent 7328b10 commit 9ad2963
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 53 deletions.
15 changes: 1 addition & 14 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,5 @@ end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = tab
trim_trailing_whitespace = true

[*.ts]
indent_size = 2

[{package.json,*.yml,*.yaml}]
indent_style = space
indent_size = 2

[Dockerfile]
indent_style = tab

# Markdown Files
[*.md]
trim_trailing_whitespace = false
trim_trailing_whitespace = true
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules
dist
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"no-cond-assign": 0,
"no-unused-vars": 1,
"no-extra-semi": "warn",
"semi": "warn"
"semi": "error"
},
"plugins": [
"@typescript-eslint"
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules/
dist/
.swc/
*.DS_Store
db/

*.DS_Store
.env
7 changes: 4 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "all"
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 80
}
41 changes: 41 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 39 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
{
"name": "periodum_api",
"version": "1.0.0",
"description": "A database that compiles tons of information about elements and compounds.",
"scripts": {
"lint": "eslint . --ext .ts",
"lint-fix": "eslint . --ext .ts --fix",
"dev": "nodemon --ext ts --exec ts-node src/app.ts",
"start": "NODE_ENV=production ts-node src/app.ts",
"test": "NODE_ENV=test mocha --check-leaks -r ts-node/register -r tsconfig-paths/register \"test/**/*.spec.ts\"",
"test:watch": "NODE_ENV=test mocha --check-leaks -r ts-node/register -r tsconfig-paths/register \"test/**/*.spec.ts\" -w --watch-files \"test/**/*.spec.ts\",\"src/**/*.ts\""
},
"dependencies": {
"@prisma/client": "^3.9.2",
"express": "^4.17.2"
},
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/express": "^4.17.13",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.14",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"chai": "^4.3.6",
"eslint": "^8.8.0",
"mocha": "^9.2.0",
"nodemon": "^2.0.15",
"prisma": "^3.9.2",
"ts-mocha": "^9.0.2",
"tsconfig-paths": "^3.12.0",
"typescript": "^4.5.5"
}
"name": "periodum_api",
"version": "1.0.0",
"description": "A database that compiles tons of information about elements and compounds.",
"scripts": {
"lint": "eslint . --ext .ts",
"lint-fix": "eslint . --ext .ts --fix",
"prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write",
"dev": "nodemon --ext ts --exec ts-node src/app.ts",
"start": "NODE_ENV=production ts-node src/app.ts",
"test": "NODE_ENV=test mocha --check-leaks -r ts-node/register -r tsconfig-paths/register \"test/**/*.spec.ts\"",
"test:watch": "NODE_ENV=test mocha --check-leaks -r ts-node/register -r tsconfig-paths/register \"test/**/*.spec.ts\" -w --watch-files \"test/**/*.spec.ts\",\"src/**/*.ts\""
},
"husky": {
"hooks": {
"pre-commit": "npm run prettier-format && npm run lint"
}
},
"dependencies": {
"@prisma/client": "^3.9.2",
"express": "^4.17.2"
},
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/express": "^4.17.13",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.14",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"chai": "^4.3.6",
"eslint": "^8.8.0",
"husky": "^7.0.4",
"mocha": "^9.2.0",
"nodemon": "^2.0.15",
"prettier": "^2.5.1",
"prisma": "^3.9.2",
"ts-mocha": "^9.0.2",
"tsconfig-paths": "^3.12.0",
"typescript": "^4.5.5"
}
}

0 comments on commit 9ad2963

Please sign in to comment.