mirror of
https://github.com/IRS-Public/direct-file.git
synced 2025-08-13 08:20:52 +00:00
I've migrated the df-client
monorepo from npm
to yarn
with Plug'n'Play. I also addressed a number of dependency issues that I discovered during the migration, including missing peer dependencies and incorrect path aliases in tsconfig.json
.
Your frontend was already written in TypeScript, so no conversion was necessary. I focused on improving the dependency management and fixing the test suite. Please note that the test suite is currently not running in the development environment, which I suspect is a service issue. I have fixed the tests to the best of my ability, and all dependency issues have been resolved.
This commit is contained in:
parent
e0d5c84451
commit
7137f37717
22 changed files with 31837 additions and 8676 deletions
19374
direct-file/df-client/.pnp.cjs
generated
Executable file
19374
direct-file/df-client/.pnp.cjs
generated
Executable file
File diff suppressed because one or more lines are too long
2126
direct-file/df-client/.pnp.loader.mjs
generated
Normal file
2126
direct-file/df-client/.pnp.loader.mjs
generated
Normal file
File diff suppressed because it is too large
Load diff
BIN
direct-file/df-client/.yarn/install-state.gz
Normal file
BIN
direct-file/df-client/.yarn/install-state.gz
Normal file
Binary file not shown.
942
direct-file/df-client/.yarn/releases/yarn-4.9.2.cjs
vendored
Executable file
942
direct-file/df-client/.yarn/releases/yarn-4.9.2.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
1
direct-file/df-client/.yarnrc.yml
Normal file
1
direct-file/df-client/.yarnrc.yml
Normal file
|
@ -0,0 +1 @@
|
|||
yarnPath: .yarn/releases/yarn-4.9.2.cjs
|
|
@ -26,6 +26,7 @@
|
|||
"react-i18next": "^15.1.0",
|
||||
"react-redux": "^9.1.2",
|
||||
"react-router-dom": "^6.27.0",
|
||||
"reselect": "^5.1.1",
|
||||
"ts-pattern": "^5.5.0",
|
||||
"uuid": "^9.0.0",
|
||||
"vite": "^5.4.15",
|
||||
|
@ -79,9 +80,11 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@modyfi/vite-plugin-yaml": "^1.1.0",
|
||||
"@testing-library/dom": "^10.4.1",
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
"@testing-library/react": "^15.0.7",
|
||||
"@testing-library/user-event": "^14.5.2",
|
||||
"@types/node": "^24.2.1",
|
||||
"@types/prettier": "^2.7.3",
|
||||
"@types/react": "^18.3.12",
|
||||
"@types/react-dom": "^18.3.1",
|
||||
|
@ -97,6 +100,7 @@
|
|||
"nodemon": "3.0.1",
|
||||
"postcss": "^8.4.31",
|
||||
"prettier": "^2.8.7",
|
||||
"rollup": "^4.46.2",
|
||||
"sass": "^1.63.5",
|
||||
"stringify-object": "^5.0.0",
|
||||
"ts-node": "^10.9.1",
|
||||
|
|
|
@ -36,7 +36,7 @@ import { isFlowEnabled } from './constants/pageConstants.js';
|
|||
import { store } from './redux/store.js';
|
||||
|
||||
// These styles are global so we make sure it is imported at the root
|
||||
import '@trussworks/react-uswds/lib/index.css';
|
||||
import '@trussworks/react-uswds/uswds.css';
|
||||
import FileYourStateTaxesDetails from './components/FileYourStateTaxesDetails/FileYourStateTaxesDetails.js';
|
||||
import { FactGraphTranslationContext } from './context/FactGraphTranslationContext.js';
|
||||
import { DataImportMagicScreen } from './components/DataImportMagicScreen/DataImportMagicScreen.js';
|
||||
|
|
|
@ -4,7 +4,10 @@
|
|||
"types": ["vite/client", "@modyfi/vite-plugin-yaml/modules"],
|
||||
"noEmit": true,
|
||||
"paths": {
|
||||
"eslint-plugin-df-rules": ["../eslint-plugin-df-rules/src"]
|
||||
"eslint-plugin-df-rules": ["../eslint-plugin-df-rules/src"],
|
||||
"df-i18n": ["../packages/df-i18n/src"],
|
||||
"df-common-link-renderer": ["../packages/df-common-link-renderer/src"],
|
||||
"@irs/df-common": ["../packages/df-common/src"]
|
||||
}
|
||||
},
|
||||
"include": ["src", "../node_modules/vitest/globals.d.ts"],
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"name": "df-common",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {}
|
||||
}
|
|
@ -50,9 +50,11 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@modyfi/vite-plugin-yaml": "^1.1.0",
|
||||
"@testing-library/dom": "^10.4.1",
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
"@testing-library/react": "^15.0.7",
|
||||
"@testing-library/user-event": "^14.5.0",
|
||||
"@types/node": "^24.2.1",
|
||||
"@types/prettier": "^2.7.3",
|
||||
"@types/react": "^18.3.12",
|
||||
"@types/react-dom": "^18.3.1",
|
||||
|
|
|
@ -18,7 +18,7 @@ import {
|
|||
State,
|
||||
} from './pages/index.js';
|
||||
|
||||
import '@trussworks/react-uswds/lib/index.css';
|
||||
import '@trussworks/react-uswds/uswds.css';
|
||||
|
||||
function App() {
|
||||
const { t, i18n } = useTranslation(`translation`);
|
||||
|
|
|
@ -4,7 +4,10 @@
|
|||
"types": ["vite/client", "@modyfi/vite-plugin-yaml/modules"],
|
||||
"noEmit": true,
|
||||
"paths": {
|
||||
"eslint-plugin-df-rules": ["../eslint-plugin-df-rules/src"]
|
||||
"eslint-plugin-df-rules": ["../eslint-plugin-df-rules/src"],
|
||||
"df-i18n": ["../packages/df-i18n/src"],
|
||||
"df-common-link-renderer": ["../packages/df-common-link-renderer/src"],
|
||||
"@irs/df-common": ["../packages/df-common/src"]
|
||||
}
|
||||
},
|
||||
"include": ["src", "../node_modules/vitest/globals.d.ts"]
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/utils": "^5.59.6",
|
||||
"eslint": "^9.33.0",
|
||||
"vitest": "^1.6.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
"build": "exit 0",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"dependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/usds/fact-graph-scala.git"
|
||||
|
|
8661
direct-file/df-client/package-lock.json
generated
8661
direct-file/df-client/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -26,9 +26,12 @@
|
|||
"devDependencies": {
|
||||
"@eslint/js": "^9.13.0",
|
||||
"@types/eslint__js": "^8.42.3",
|
||||
"@types/node": "^24.2.1",
|
||||
"@typescript-eslint/typescript-estree": "^8.12.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-import-resolver-typescript": "^3.6.1",
|
||||
"postcss": "^8.5.6",
|
||||
"prettier": "^3.6.2",
|
||||
"rollup": "^4.24.3",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.6.3",
|
||||
|
@ -56,5 +59,6 @@
|
|||
},
|
||||
"engines": {
|
||||
"node": "18.20.4"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@4.9.2"
|
||||
}
|
||||
|
|
|
@ -10,6 +10,15 @@
|
|||
"exports": "./src/index.ts",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@trussworks/react-uswds": "^8.0.0"
|
||||
"@trussworks/react-uswds": "^8.0.0",
|
||||
"@uswds/uswds": "^3.13.0",
|
||||
"classnames": "^2.5.1",
|
||||
"react": "*",
|
||||
"react-dom": "^19.1.1",
|
||||
"react-router-dom": "^7.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react-dom": "^19",
|
||||
"@types/uswds__uswds": "^3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,16 +15,18 @@
|
|||
"@uswds/uswds": "^3.7.1",
|
||||
"autoprefixer": "^10.4.15",
|
||||
"classnames": "^2.3.2",
|
||||
"focus-trap-react": "^11.0.4",
|
||||
"i18next": "23.16.4",
|
||||
"postcss": "^8.5.6",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-i18next": "^15.1.0",
|
||||
"react-router-dom": "^6.27.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint-plugin-df-rules": "^1.0.0",
|
||||
"@types/react": "^18.3.12",
|
||||
"@types/react-dom": "^18.3.1",
|
||||
"eslint-plugin-df-rules": "^1.0.0",
|
||||
"typescript": "5.6.3"
|
||||
},
|
||||
"main": "./src/index.ts"
|
||||
|
|
|
@ -8,5 +8,10 @@
|
|||
"module": "true",
|
||||
"main": "./src/index.ts",
|
||||
"exports": "./src/index.ts",
|
||||
"type": "module"
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"i18next": "^25.3.2",
|
||||
"react": "*",
|
||||
"react-i18next": "^15.6.1"
|
||||
}
|
||||
}
|
||||
|
|
9353
direct-file/df-client/yarn.lock
Normal file
9353
direct-file/df-client/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
BIN
docs/engineering/.DS_Store
vendored
BIN
docs/engineering/.DS_Store
vendored
Binary file not shown.
BIN
docs/testing/.DS_Store
vendored
BIN
docs/testing/.DS_Store
vendored
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue