Skip to content

Commit 034ac5f

Browse files
committed
wip: draft
1 parent 96a2d34 commit 034ac5f

24 files changed

+8088
-4871
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@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:@nx/typescript"],
27+
"rules": {}
28+
},
29+
{
30+
"files": ["*.js", "*.jsx"],
31+
"extends": ["plugin:@nx/javascript"],
32+
"rules": {}
33+
},
34+
{
35+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
36+
"env": {
37+
"jest": true
38+
},
39+
"rules": {}
40+
}
41+
]
42+
}

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Add files here to ignore them from prettier formatting
2+
/dist
3+
/coverage
4+
/.nx/cache

.prettierrc

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

.verdaccio/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# path to a directory with all packages
2+
storage: ../tmp/local-registry/storage
3+
4+
# a list of other known repositories we can talk to
5+
uplinks:
6+
npmjs:
7+
url: https://registry.npmjs.org/
8+
maxage: 60m
9+
10+
packages:
11+
'**':
12+
# give all users (including non-authenticated users) full access
13+
# because it is a local registry
14+
access: $all
15+
publish: $all
16+
unpublish: $all
17+
18+
# if package is not available locally, proxy requests to npm registry
19+
proxy: npmjs
20+
21+
# log settings
22+
logs:
23+
type: stdout
24+
format: pretty
25+
level: warn
26+
27+
publish:
28+
allow_offline: true # set offline to true to allow publish offline

.vscode/extensions.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"recommendations": [
3-
43
"nrwl.angular-console",
5-
"esbenp.prettier-vscode"
4+
"esbenp.prettier-vscode",
5+
"dbaeumer.vscode-eslint",
6+
"firsttris.vscode-jest-runner"
67
]
78
}

jest.config.ts

Lines changed: 5 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const nxPreset = require('@nx/jest/preset').default;
2+
3+
module.exports = { ...nxPreset };

nx.json

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,37 @@
33
"targetDefaults": {
44
"build": {
55
"cache": true,
6-
"dependsOn": [
7-
"^build"
8-
],
9-
"inputs": [
10-
"production",
11-
"^production"
12-
]
6+
"dependsOn": ["^build"],
7+
"inputs": ["production", "^production"]
138
},
149
"lint": {
15-
"cache": true
10+
"cache": true,
11+
"inputs": [
12+
"default",
13+
"{workspaceRoot}/.eslintrc.json",
14+
"{workspaceRoot}/.eslintignore",
15+
"{workspaceRoot}/eslint.config.js"
16+
]
1617
},
1718
"test": {
18-
"cache": true
19+
"cache": true,
20+
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
1921
},
2022
"e2e": {
2123
"cache": true
2224
}
2325
},
2426
"namedInputs": {
25-
"default": [
26-
"{projectRoot}/**/*",
27-
"sharedGlobals"
28-
],
27+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
2928
"production": [
30-
"default"
29+
"default",
30+
"!{projectRoot}/.eslintrc.json",
31+
"!{projectRoot}/eslint.config.js",
32+
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
33+
"!{projectRoot}/tsconfig.spec.json",
34+
"!{projectRoot}/jest.config.[jt]s",
35+
"!{projectRoot}/src/test-setup.[jt]s",
36+
"!{projectRoot}/test-setup.[jt]s"
3137
],
3238
"sharedGlobals": []
3339
}

0 commit comments

Comments
 (0)