Skip to content

Commit a810f0d

Browse files
authored
Migrate to Nx, restructure scripts and dev services (#55)
1 parent 8fc3497 commit a810f0d

File tree

745 files changed

+7724
-18076
lines changed

Some content is hidden

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

745 files changed

+7724
-18076
lines changed

.dockerignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
8+
# dependencies
9+
/node_modules
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
26+
27+
# misc
28+
/.sass-cache
29+
/connect.lock
30+
/coverage
31+
/libpeerconnection.log
32+
npm-debug.log
33+
yarn-error.log
34+
testem.log
35+
/typings
36+
37+
# System Files
38+
.DS_Store
39+
Thumbs.db
40+
41+
.srl

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.env

Lines changed: 0 additions & 36 deletions
This file was deleted.

.env.dev-docker

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# General
2+
PRIMARY_DOMAIN=bam.dev
3+
4+
# SPA App
5+
SPA_SERVICE_NAME=spa
6+
SPA_PORT=41001
7+
8+
# Graph
9+
GRAPH_SERVICE_NAME=graph
10+
GRAPH_PORT=42001
11+
PRISMA_DATABASE_URL=mysql://root:root@database:3306/bam?schema=public
12+
PRISMA_BINARY_TARGET="[\"native\"]"
13+
14+
# Marketing App
15+
MARKETING_SERVICE_NAME=marketing
16+
MARKETING_PORT=43001
17+
18+
# Database
19+
MYSQL_ROOT_PASSWORD=root
20+
MYSQL_PORT=3306

.eslintrc.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nrwl/nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["plugin:@nrwl/nx/typescript"],
27+
"rules": {
28+
"@typescript-eslint/explicit-function-return-type": [
29+
"error",
30+
{ "allowExpressions": true, "allowTypedFunctionExpressions": true }
31+
],
32+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
33+
"react/jsx-no-useless-fragment": "off"
34+
}
35+
},
36+
{
37+
"files": ["*.tsx"],
38+
"extends": ["plugin:@nrwl/nx/react-typescript"],
39+
"rules": {}
40+
},
41+
{
42+
"files": ["*.js", "*.jsx"],
43+
"extends": ["plugin:@nrwl/nx/javascript"],
44+
"rules": {}
45+
},
46+
{
47+
"files": ["*.graphqls"],
48+
"extends": "plugin:@graphql-eslint/schema-recommended",
49+
"parserOptions": {
50+
"schema": "./**/*.graphqls"
51+
},
52+
"rules": {
53+
"@graphql-eslint/require-description": ["error", { "DirectiveDefinition": true }],
54+
"@graphql-eslint/strict-id-in-types": [
55+
"error",
56+
{
57+
"exceptions": {
58+
"types": ["Query", "Mutation", "Subscription"],
59+
"suffixes": ["Error", "Result"]
60+
}
61+
}
62+
]
63+
}
64+
},
65+
{
66+
"files": ["*.graphql"],
67+
"extends": "plugin:@graphql-eslint/operations-recommended",
68+
"parserOptions": {
69+
"schema": "./**/*.graphqls"
70+
},
71+
"rules": {}
72+
}
73+
]
74+
}

.gitattributes

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)