-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Nx workspaces migration 🛠 (#2965)
* fix(twap): display actual value for num of parts and custom deadline * chore: align project structure corresponding to nx * chore: fix project files to fit Vite * chore: update npm deps * chore: fix configs * chore: remove invalid files * chore: temporary add lingui config to root * chore: temporary script * chore: temporary script * chore: fix CI scripts * chore: fix jest preset * chore: fix run-many scripts * ci: fix cypress and lint * ci: fix cypress * chore: try to fix cypress CI * chore: try to fix cypress CI * chore: fix jest snapshots * chore: try to fix cypress CI * chore: disable cypress video * chore: update editorconfig * chore: build i18n before bundle * fix: fix locale file loading * chore: fix cypress baseUrl * chore: fix husky version * chore: merge develop * chore: merge develop * chore: fix e2e tests * chore: disable VitePWA for dev * chore: fix e2e * chore: fix e2e * chore: fix e2e * chore: fix e2e * fix: fix deps for WalletConnect * fix: fix tests * fix: fix global * chore: fix i18n key * chore: fix i18n key * chore: fix Buffer * chore: fix test * chore: fix SW * chore: fix test * chore: test commit to trigger cache * chore: move version to root package.json * chore: split bundle into vendor/core-vendor/other * chore: split vendor bundle * fix: fix wc2 init * chore: patch @walletconnect/universal-provider * chore: expose `yarn preview` command used to build and serve a local version * chore: delete patch * fix: fix walletconnects * feat: use original SW config * chore: test commit * chore: test commit * chore: test commit * fix: fix isChunkLoadError --------- Co-authored-by: Alfetopito <[email protected]>
- Loading branch information
1 parent
36975f7
commit f6f4e4d
Showing
1,824 changed files
with
6,685 additions
and
9,977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,35 @@ | ||
{ | ||
"extends": ["react-app", "react-app/jest", "plugin:cypress/recommended"], | ||
"plugins": ["unused-imports"], | ||
"ignorePatterns": ["node_modules/", "dist/", "build", "coverage", "./", "cypress/", "src/libs/abis/src/generated"], | ||
"rules": { | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"paths": [ | ||
{ | ||
"name": "ethers", | ||
"message": "Please import from '@ethersproject/module' directly to support tree-shaking." | ||
}, | ||
{ | ||
"name": "styled-components", | ||
"message": "Please import from styled-components/macro." | ||
} | ||
], | ||
"patterns": [ | ||
{ | ||
"group": ["**/dist"], | ||
"message": "Do not import from dist/ - this is an implementation detail, and breaks tree-shaking." | ||
}, | ||
{ | ||
"group": ["!styled-components/macro"] | ||
} | ||
] | ||
} | ||
], | ||
"no-unused-vars": "off", | ||
"unused-imports/no-unused-imports": "error", | ||
"unused-imports/no-unused-vars": [ | ||
"error", | ||
{ | ||
"vars": "all", | ||
"varsIgnorePattern": "^_", | ||
"args": "after-used", | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"import/order": [ | ||
"error", | ||
{ | ||
"pathGroups": [ | ||
{ | ||
"pattern": "{@cowprotocol,@uniswap,@safe-global,@ethersproject,@web3-react}/**", | ||
"group": "external", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "{react,jotai,jotai/*}", | ||
"group": "external", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "legacy/**", | ||
"group": "external", | ||
"position": "after" | ||
}, | ||
{ | ||
"pattern": "modules/**", | ||
"group": "builtin", | ||
"position": "after" | ||
}, | ||
{ | ||
"pattern": "{api,abis,common,constants,legacy,lib,pages,types,utils}/**", | ||
"group": "internal", | ||
"position": "before" | ||
} | ||
], | ||
"pathGroupsExcludedImportTypes": ["react"], | ||
"groups": ["external", "builtin", "internal", "sibling", "parent", "object", "index", "type"], | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
}, | ||
"newlines-between": "always" | ||
} | ||
], | ||
"prefer-const": "error", | ||
"no-unneeded-ternary": "error", | ||
"no-var": "error" | ||
}, | ||
"root": true, | ||
"ignorePatterns": ["**/*"], | ||
"plugins": ["@nx"], | ||
"overrides": [ | ||
{ | ||
"files": ["cypress/**", "cypress-custom/**"], | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": { | ||
"jest/valid-expect": 0, | ||
"testing-library/await-async-utils": 0 | ||
"@nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"enforceBuildableLibDependency": true, | ||
"allow": [], | ||
"depConstraints": [ | ||
{ | ||
"sourceTag": "*", | ||
"onlyDependOnLibsWithTags": ["*"] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"extends": ["plugin:@nx/typescript"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"extends": ["plugin:@nx/javascript"], | ||
"rules": {} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,40 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# generated contract types | ||
/src/lib/locales/**/*.js | ||
/src/lib/locales/**/en-US.po | ||
/src/lib/locales/**/pseudo.po | ||
/src/locales/**/*.js | ||
/src/locales/**/*.ts | ||
/src/locales/**/*.json | ||
/src/locales/**/en-US.po | ||
/src/locales/**/pseudo.po | ||
# compiled output | ||
dist | ||
tmp | ||
/out-tsc | ||
|
||
# dependencies | ||
node_modules | ||
|
||
# testing | ||
/coverage | ||
cypress.env.json | ||
|
||
# builds | ||
/build | ||
/dts | ||
/public/cosmos | ||
/dist | ||
# IDEs and editors | ||
/.idea | ||
.swc | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
/.netlify | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
notes.txt | ||
.idea/ | ||
|
||
.vscode/ | ||
|
||
package-lock.json | ||
|
||
cypress/videos | ||
cypress/screenshots | ||
cypress/fixtures/example.json | ||
cypress-custom/videos | ||
cypress-custom/screenshots | ||
cypress-custom/fixtures/example.json | ||
|
||
.yalc* | ||
yalc.lock | ||
|
||
# public | ||
public/version.json | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
yarn-error.log | ||
testem.log | ||
/typings | ||
|
||
# vercel | ||
.vercel | ||
# System Files | ||
.DS_Store | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,3 @@ | ||
# generated stuff | ||
/src/state/data/generated.ts | ||
build | ||
.git | ||
.github | ||
src/**/*.d.ts | ||
src/**/docs/* | ||
src/abis | ||
src/legacy/abis | ||
src/legacy/types | ||
CHANGELOG.md | ||
|
||
# inherited from uniswap, better not touch it | ||
public_uniswap/index.html | ||
public/index.html | ||
|
||
# Every commit this is changed. NO MORE! | ||
tsconfig.json | ||
|
||
# local stuff | ||
.yalc | ||
.vscode | ||
# Add files here to ignore them from prettier formatting | ||
/dist | ||
/coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"nrwl.angular-console", | ||
"esbenp.prettier-vscode", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": ["plugin:cypress/recommended", "../../.eslintrc.json"], | ||
"ignorePatterns": ["!**/*"], | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"cypress/unsafe-to-chain-command": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": {} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cypress.env.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { defineConfig } from 'cypress' | ||
import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset' | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
...nxE2EPreset(__dirname, { | ||
bundler: 'vite', | ||
}), | ||
specPattern: ['src/**/*.test.{js,jsx,ts,tsx}'], | ||
baseUrl: 'http://localhost:3000', | ||
supportFile: 'src/support/index.ts', | ||
video: false, | ||
screenshotOnRunFailure: false, | ||
defaultCommandTimeout: 15_000 | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "@cowprotocol/cowswap-e2e", | ||
"version": "0.0.1", | ||
"description": "CoW Swap e2e tests", | ||
"main": "index.js", | ||
"author": "", | ||
"license": "ISC" | ||
} |
Oops, something went wrong.