Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 5b0a8e9

Browse files
authored
[ACS-6231] Nx Workspace 17 and Node 20 (#1717)
* enable Nx and vite builds * fix path mappings * remove unused vite * update scripts * update scripts * update scripts * fix coverage command * cleanup * cleanup * Migrate to Nx 17 * switch to node 20 * fix tags tests * partially add missing report types and models
1 parent 7daa0ae commit 5b0a8e9

Some content is hidden

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

44 files changed

+5287
-1869
lines changed

.eslintrc.json

Lines changed: 61 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,75 @@
11
{
22
"root": true,
3+
"ignorePatterns": ["!**/*"],
34
"env": {
45
"node": true,
56
"browser": true
67
},
7-
"parser": "@typescript-eslint/parser",
88
"plugins": [
9+
"@nx",
910
"@typescript-eslint",
1011
"license-header",
1112
"@cspell",
1213
"eslint-plugin-import",
1314
"prettier"
1415
],
15-
"extends": [
16-
"eslint:recommended",
17-
"plugin:@typescript-eslint/recommended",
18-
"plugin:@cspell/recommended"
19-
],
20-
// TODO: consider removing these rules and improving the source code
21-
"rules": {
22-
"@typescript-eslint/explicit-module-boundary-types": "off",
23-
"@typescript-eslint/no-explicit-any": "off",
24-
"@typescript-eslint/no-empty-function": "off",
25-
"@typescript-eslint/no-namespace": "off",
26-
"license-header/header": [
27-
"error",
28-
[
29-
"/*!",
30-
" * @license",
31-
" * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.",
32-
" *",
33-
" * Licensed under the Apache License, Version 2.0 (the \"License\");",
34-
" * you may not use this file except in compliance with the License.",
35-
" * You may obtain a copy of the License at",
36-
" *",
37-
" * http://www.apache.org/licenses/LICENSE-2.0",
38-
" *",
39-
" * Unless required by applicable law or agreed to in writing, software",
40-
" * distributed under the License is distributed on an \"AS IS\" BASIS,",
41-
" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
42-
" * See the License for the specific language governing permissions and",
43-
" * limitations under the License.",
44-
" */"
45-
]
46-
]
47-
}
16+
"overrides": [
17+
{
18+
"files": ["*.ts", "*.tsx"],
19+
"extends": [
20+
"plugin:@nx/typescript",
21+
"plugin:@cspell/recommended"
22+
],
23+
// TODO: consider removing these rules and improving the source code
24+
"rules": {
25+
"@typescript-eslint/explicit-module-boundary-types": "off",
26+
"@typescript-eslint/no-explicit-any": "off",
27+
"@typescript-eslint/no-empty-function": "off",
28+
"@typescript-eslint/no-namespace": "off",
29+
"license-header/header": [
30+
"error",
31+
[
32+
"/*!",
33+
" * @license",
34+
" * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.",
35+
" *",
36+
" * Licensed under the Apache License, Version 2.0 (the \"License\");",
37+
" * you may not use this file except in compliance with the License.",
38+
" * You may obtain a copy of the License at",
39+
" *",
40+
" * http://www.apache.org/licenses/LICENSE-2.0",
41+
" *",
42+
" * Unless required by applicable law or agreed to in writing, software",
43+
" * distributed under the License is distributed on an \"AS IS\" BASIS,",
44+
" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
45+
" * See the License for the specific language governing permissions and",
46+
" * limitations under the License.",
47+
" */"
48+
]
49+
]
50+
}
51+
},
52+
{
53+
"files": ["*.js", "*.jsx"],
54+
"extends": [
55+
"plugin:@nx/javascript",
56+
"plugin:@cspell/recommended"
57+
],
58+
"rules": {}
59+
},
60+
{
61+
"files": ["*.json"],
62+
"parser": "jsonc-eslint-parser",
63+
"rules": {
64+
"@nx/dependency-checks": [
65+
"error",
66+
{
67+
"ignoredFiles": [
68+
"{projectRoot}/test/**/*"
69+
]
70+
}
71+
]
72+
}
73+
}
74+
]
4875
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ target
1818
/bundles/
1919
.env
2020
.nyc_output
21+
.nx

.make-packages.js

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

.mocharc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extensions": [
3+
"ts",
4+
"tsx"
5+
],
6+
"spec": [
7+
"test/**/*.spec.*"
8+
],
9+
"node-option": [
10+
"experimental-specifier-resolution=node",
11+
"loader=ts-node/esm"
12+
]
13+
}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

.prettierignore

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

index.ts

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

nx.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"workspaceLayout": {
4+
"projectNameAndRootFormat": "as-provided"
5+
},
6+
"targetDefaults": {
7+
"build": {
8+
"dependsOn": ["^build"],
9+
"inputs": ["production", "^production"],
10+
"cache": true
11+
},
12+
"lint": {
13+
"inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore", "{workspaceRoot}/eslint.config.js"],
14+
"cache": true
15+
},
16+
"test": {
17+
"inputs": ["default", "^production"],
18+
"cache": true
19+
}
20+
},
21+
"namedInputs": {
22+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
23+
"production": [
24+
"default",
25+
"!{projectRoot}/.eslintrc.json",
26+
"!{projectRoot}/eslint.config.js",
27+
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
28+
"!{projectRoot}/tsconfig.spec.json"
29+
],
30+
"sharedGlobals": []
31+
},
32+
"affected": {
33+
"defaultBase": "develop"
34+
}
35+
}

0 commit comments

Comments
 (0)