Skip to content

Commit e30ed05

Browse files
committed
fix: restructure
1 parent 38a86e7 commit e30ed05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+759
-381
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
max_line_length = 120
12+
13+
[Makefile]
14+
indent_style = tab
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
tsconfigRootDir: __dirname,
6+
sourceType: 'module',
7+
},
8+
plugins: ['@typescript-eslint/eslint-plugin'],
9+
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
10+
root: true,
11+
env: {
12+
node: true,
13+
jest: true,
14+
},
15+
ignorePatterns: ['.eslintrc.js'],
16+
rules: {
17+
'@typescript-eslint/interface-name-prefix': 'off',
18+
'@typescript-eslint/explicit-function-return-type': 'off',
19+
'@typescript-eslint/explicit-module-boundary-types': 'off',
20+
'@typescript-eslint/no-explicit-any': 'off',
21+
},
22+
};

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all"
4+
}

Makefile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
include .env
2+
DEV_CONTAINER_NAME = "sesame-daemon"
3+
APPNAME = "sesame"
4+
5+
.DEFAULT_GOAL := help
6+
help:
7+
@printf "\033[33mUsage:\033[0m\n make [target] [arg=\"val\"...]\n\n\033[33mTargets:\033[0m\n"
8+
@grep -E '^[-a-zA-Z0-9_\.\/]+:.*?## .*$$' $(MAKEFILE_LIST) \
9+
| sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[32m%-15s\033[0m %s\n", $$1, $$2}'
10+
11+
dev: ## Run development server
12+
@docker compose run -d --rm \
13+
--service-ports \
14+
--use-aliases \
15+
--name $(DEV_CONTAINER_NAME) \
16+
$(DEV_CONTAINER_NAME) yarn start:dev
17+
18+
dbs: ## Run dependencies for development
19+
@docker volume create $(APPNAME)-redis
20+
@docker run -d --rm \
21+
--name $(APPNAME)-redis \
22+
-v $(APPNAME)-redis:/data \
23+
--network dev \
24+
-p 6379:6379 \
25+
--health-interval=5s \
26+
--health-timeout=3s \
27+
--health-start-period=5s \
28+
--health-retries=3 \
29+
--health-cmd="redis-cli ping || exit 1" \
30+
redis || true
31+
32+
exec: ## Execute a command in the development container
33+
@docker compose run -it --rm $(DEV_CONTAINER_NAME) bash
34+
35+
install: ## Execute a command in the development container
36+
@docker compose run -it --rm $(DEV_CONTAINER_NAME) yarn install
37+
38+
dbs: ## Run dependencies for development
39+
@docker volume create $(APPNAME)-mongodb
40+
@docker compose up -d $(APPNAME)-redis $(APPNAME)-mongo
41+
42+
stop: ## Stop all containers
43+
@docker compose down --remove-orphans
44+
@docker compose rm -f
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)