Skip to content

Commit d10f598

Browse files
committed
feat: initial commit (move from workspace)
0 parents  commit d10f598

File tree

139 files changed

+37275
-0
lines changed

Some content is hidden

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

139 files changed

+37275
-0
lines changed

.commitlintrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"],
3+
"rules": {}
4+
}

.editorconfig

+13
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

.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
.env
8+
.yarn/
9+
10+
# dependencies
11+
node_modules/
12+
.nx-container
13+
14+
# IDEs and editors
15+
/.idea
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# IDE - VSCode
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
30+
# misc
31+
/.sass-cache
32+
/connect.lock
33+
/coverage
34+
/libpeerconnection.log
35+
npm-debug.log
36+
yarn-error.log
37+
testem.log
38+
/typings
39+
40+
# System Files
41+
.DS_Store
42+
Thumbs.db
43+
44+
# Generated Docusaurus files
45+
.docusaurus/
46+
.cache-loader/
47+
.history
48+
49+
.nx/cache

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.9.0

.prettierignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.prettierignore
2+
.docusaurus/
3+
4+
/dist
5+
/coverage
6+
7+
*.yml
8+
*.yaml
9+
10+
*.graphql
11+
*.gql
12+
13+
*.md
14+
/.nx/cache

.prettierrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"singleQuote": true,
3+
"overrides": [
4+
{
5+
"files": ["**/*.ts"],
6+
"options": {
7+
"tabWidth": 4,
8+
"trailingComma": "all",
9+
"semi": false
10+
}
11+
}
12+
]
13+
}

.vscode/extensions.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"recommendations": [
3+
"redhat.ansible",
4+
"ms-azuretools.vscode-docker",
5+
"dbaeumer.vscode-eslint",
6+
"nrwl.angular-console",
7+
"esbenp.prettier-vscode",
8+
"Prisma.prisma",
9+
"firsttris.vscode-jest-runner"
10+
]
11+
}

README.md

Whitespace-only changes.

eslint.config.js

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
const { FlatCompat } = require('@eslint/eslintrc');
2+
const nxEslintPlugin = require('@nx/eslint-plugin');
3+
const eslintPluginSimpleImportSort = require('eslint-plugin-simple-import-sort');
4+
const js = require('@eslint/js');
5+
const compat = new FlatCompat({
6+
baseDirectory: __dirname,
7+
recommendedConfig: js.configs.recommended,
8+
});
9+
module.exports = [
10+
{
11+
plugins: {
12+
'@nx': nxEslintPlugin,
13+
'simple-import-sort': eslintPluginSimpleImportSort,
14+
},
15+
},
16+
{
17+
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
18+
rules: {
19+
'@nx/dependency-checks': 'error',
20+
'@nx/enforce-module-boundaries': [
21+
'error',
22+
{
23+
enforceBuildableLibDependency: true,
24+
allow: [],
25+
depConstraints: [
26+
{
27+
sourceTag: '*',
28+
onlyDependOnLibsWithTags: ['*'],
29+
},
30+
],
31+
},
32+
],
33+
},
34+
},
35+
...compat.config({ extends: ['plugin:@nx/typescript'] }).map((config) => ({
36+
...config,
37+
files: ['**/*.ts', '**/*.tsx'],
38+
rules: {
39+
'@typescript-eslint/no-explicit-any': 'off',
40+
'simple-import-sort/imports': 'warn',
41+
'simple-import-sort/exports': 'warn',
42+
},
43+
})),
44+
...compat.config({ extends: ['plugin:@nx/javascript'] }).map((config) => ({
45+
...config,
46+
files: ['**/*.js', '**/*.jsx'],
47+
rules: {},
48+
})),
49+
...compat.config({ env: { jest: true } }).map((config) => ({
50+
...config,
51+
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.spec.js', '**/*.spec.jsx'],
52+
rules: {},
53+
})),
54+
...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({
55+
...config,
56+
files: ['**/*.json'],
57+
rules: {
58+
'@nx/dependency-checks': 'error',
59+
},
60+
})),
61+
];

jest.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { getJestProjects } from '@nx/jest'
2+
3+
export default {
4+
projects: getJestProjects(),
5+
}

jest.preset.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const nxPreset = require('@nx/jest/preset').default;
2+
3+
const globalConf = {
4+
collectCoverage: true,
5+
coverageDirectory: `${process.env.NX_WORKSPACE_ROOT}/coverage/${process.env['NX_TASK_TARGET_PROJECT']}`,
6+
};
7+
8+
module.exports = {
9+
...nxPreset,
10+
...globalConf,
11+
};

nx.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"targetDefaults": {
4+
"build": {
5+
"dependsOn": ["^build"],
6+
"inputs": ["production", "^production"],
7+
"cache": true
8+
},
9+
"test": {
10+
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
11+
"cache": true
12+
},
13+
"lint": {
14+
"dependsOn": ["^prisma:generate"],
15+
"inputs": ["default", "{workspaceRoot}/eslint.config.js"],
16+
"cache": true
17+
}
18+
},
19+
"namedInputs": {
20+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
21+
"production": [
22+
"default",
23+
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
24+
"!{projectRoot}/tsconfig.spec.json",
25+
"!{projectRoot}/jest.config.[jt]s",
26+
"!{projectRoot}/.eslintrc.json",
27+
"!{projectRoot}/src/test-setup.[jt]s",
28+
"!{projectRoot}/eslint.config.js"
29+
],
30+
"sharedGlobals": []
31+
},
32+
"nxCloudAccessToken": "MzM0Mzg4OTAtZjI4NC00YzZmLThmMGUtODA1NzBlZmUxMjQzfHJlYWQtd3JpdGU="
33+
}

0 commit comments

Comments
 (0)