Skip to content

Commit c8feace

Browse files
committed
refactor: regenerate client and server packages
1 parent a08e3e4 commit c8feace

40 files changed

+2031
-58
lines changed

package-lock.json

Lines changed: 32 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"@types/glob": "^8.0.1",
9898
"@types/jest": "28.1.1",
9999
"@types/mocha": "^10.0.1",
100-
"@types/node": "16.11.7",
100+
"@types/node": "18.7.1",
101101
"@types/vscode": "^1.63.0",
102102
"@typescript-eslint/eslint-plugin": "^5.36.1",
103103
"@typescript-eslint/parser": "^5.36.1",

packages/client/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@nrwl/js/babel"]
3+
}

packages/client/.eslintrc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7+
"parserOptions": {
8+
"project": ["packages/client/tsconfig.*?.json"]
9+
},
10+
"rules": {}
11+
},
12+
{
13+
"files": ["*.ts", "*.tsx"],
14+
"rules": {}
15+
},
16+
{
17+
"files": ["*.js", "*.jsx"],
18+
"rules": {}
19+
}
20+
]
21+
}

packages/client/jest.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* eslint-disable */
2+
export default {
3+
displayName: 'client',
4+
preset: '../../jest.preset.js',
5+
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6+
transform: {
7+
'^.+\\.[tj]s$': 'babel-jest',
8+
},
9+
moduleFileExtensions: ['ts', 'js', 'html'],
10+
coverageDirectory: '../../coverage/packages/client',
11+
};

packages/client/project.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"name": "client",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
4+
"projectType": "application",
5+
"sourceRoot": "packages/client/src",
6+
"tags": [],
7+
"targets": {
8+
"build": {
9+
"executor": "@nrwl/webpack:webpack",
10+
"outputs": ["{options.outputPath}"],
11+
"defaultConfiguration": "production",
12+
"options": {
13+
"outputPath": "dist/packages/client",
14+
"compiler": "babel",
15+
"main": "packages/client/src/main.ts",
16+
"tsConfig": "packages/client/tsconfig.app.json",
17+
"webpackConfig": "packages/client/webpack.config.js",
18+
"assets": [
19+
"packages/client/src/favicon.ico",
20+
"packages/client/src/assets"
21+
],
22+
"index": "packages/client/src/index.html",
23+
"baseHref": "/",
24+
"styles": ["packages/client/src/styles.scss"],
25+
"scripts": []
26+
},
27+
"configurations": {
28+
"production": {
29+
"optimization": true,
30+
"outputHashing": "all",
31+
"sourceMap": false,
32+
"namedChunks": false,
33+
"extractLicenses": true,
34+
"vendorChunk": false,
35+
"fileReplacements": [
36+
{
37+
"replace": "packages/client/src/environments/environment.ts",
38+
"with": "packages/client/src/environments/environment.prod.ts"
39+
}
40+
]
41+
}
42+
}
43+
},
44+
"serve": {
45+
"executor": "@nrwl/webpack:dev-server",
46+
"options": {
47+
"buildTarget": "client:build"
48+
},
49+
"configurations": {
50+
"production": {
51+
"buildTarget": "client:build:production"
52+
}
53+
}
54+
},
55+
"lint": {
56+
"executor": "@nrwl/linter:eslint",
57+
"outputs": ["{options.outputFile}"],
58+
"options": {
59+
"lintFilePatterns": ["packages/client/**/*.ts"]
60+
}
61+
},
62+
"test": {
63+
"executor": "@nrwl/jest:jest",
64+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
65+
"options": {
66+
"jestConfig": "packages/client/jest.config.ts",
67+
"passWithNoTests": true
68+
},
69+
"configurations": {
70+
"ci": {
71+
"ci": true,
72+
"codeCoverage": true
73+
}
74+
}
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)