-
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.
Merge pull request #3342 from cowprotocol/release/1.49.0
Release/1.49.0
- Loading branch information
Showing
575 changed files
with
9,993 additions
and
11,315 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"root": true, | ||
"ignorePatterns": ["**/*"], | ||
"plugins": ["@nx", "unused-imports"], | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"no-prototype-builtins": "off", | ||
"react/jsx-no-useless-fragment": "off", | ||
"no-irregular-whitespace": "off", | ||
"no-case-declarations": "off", | ||
"no-dupe-else-if": "off", | ||
"jsx-a11y/accessible-emoji": "off", | ||
"no-async-promise-executor": "off", | ||
"no-constant-condition": "off", | ||
"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": "{react,jotai,jotai/*}", | ||
"group": "external", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "{@cowprotocol,@cowprotocol,@uniswap,@safe-global,@ethersproject,@web3-react}/**", | ||
"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" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": { | ||
"@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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,12 @@ on: | |
types: [opened, synchronize] | ||
|
||
env: | ||
REPO_NAME_SLUG: cowswap | ||
PR_NUMBER: ${{ github.event.number }} | ||
NODE_VERSION: lts/gallium | ||
NODE_VERSION: lts/hydrogen | ||
REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | ||
REACT_APP_PINATA_API_KEY: ${{ secrets.REACT_APP_PINATA_API_KEY }} | ||
REACT_APP_PINATA_SECRET_API_KEY: ${{ secrets.REACT_APP_PINATA_SECRET_API_KEY }} | ||
REACT_APP_SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
REACT_APP_BLOCKNATIVE_API_KEY: ${{ secrets.REACT_APP_BLOCKNATIVE_API_KEY }} | ||
REACT_APP_GOOGLE_ANALYTICS_ID: ${{ secrets.REACT_APP_GOOGLE_ANALYTICS_ID }} | ||
REACT_APP_AMPLITUDE_KEY: ${{ secrets.REACT_APP_AMPLITUDE_KEY }} | ||
REACT_APP_BLOCKNATIVE_API_KEY: ${{ secrets.REACT_APP_BLOCKNATIVE_API_KEY }} | ||
|
||
jobs: | ||
setup: | ||
|
@@ -24,7 +20,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
|
@@ -89,7 +85,6 @@ jobs: | |
- name: Unit Test | ||
run: yarn test | ||
|
||
|
||
# - name: Coveralls | ||
# uses: coverallsapp/[email protected] | ||
# with: | ||
|
@@ -187,8 +182,6 @@ jobs: | |
# cypress-custom/videos | ||
# cypress-custom/screenshots | ||
|
||
|
||
|
||
# Open tmate ssh connection on failure for debugging | ||
# Uncomment when needed and push upstream | ||
# - name: Setup tmate session | ||
|
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 was deleted.
Oops, something went wrong.
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,60 @@ | ||
name: Publish | ||
|
||
on: | ||
workflow_dispatch: # Manually trigger it via UI/CLI/API | ||
inputs: | ||
lib: | ||
description: Lib to publish | ||
required: true | ||
type: choice | ||
options: | ||
- permit-utils | ||
- widget-lib | ||
- widget-react | ||
# Add more publishable libs here | ||
tag: | ||
description: NPM package tag | ||
required: false | ||
type: choice | ||
options: | ||
- latest | ||
- next | ||
default: latest | ||
|
||
env: | ||
NODE_VERSION: lts/hydrogen | ||
DESTINATION_PATH: dist/libs/${{ inputs.lib }} | ||
|
||
jobs: | ||
publish-npm: | ||
name: Publish NPM package | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: yarn | ||
|
||
- name: Install Nx | ||
run: yarn add nx | ||
|
||
- name: Build | ||
run: yarn nx build ${{ inputs.lib }} | ||
|
||
- name: Copy .npmrc to destination | ||
run: cp ${{ env.NPM_CONFIG_USERCONFIG }} ${{ env.DESTINATION_PATH }}/ | ||
|
||
- name: Copy README | ||
run: cp libs/${{ inputs.lib }}/README.md ${{ env.DESTINATION_PATH }}/ | ||
|
||
- name: Publish | ||
working-directory: ${{ env.DESTINATION_PATH }} | ||
run: npm publish --tag ${{ inputs.tag }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
|
@@ -46,4 +46,7 @@ yalc.lock | |
# vercel | ||
.vercel | ||
|
||
analyse.html | ||
analyse.html | ||
|
||
# NX | ||
.nx |
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 +1 @@ | ||
lts/gallium | ||
lts/hydrogen |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ yarn install | |
## Generate locale files | ||
|
||
``` | ||
yarn i18n:extract | ||
yarn i18n | ||
``` | ||
|
||
## Run the interface | ||
|
Oops, something went wrong.
3faf553
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
widget-configurator – ./
widget-configurator-seven.vercel.app
widget-configurator-git-main-cowswap.vercel.app
widget-configurator-cowswap.vercel.app
widget.cow.fi
3faf553
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
cosmos – ./
cowswap-seven.vercel.app
cosmos-cowswap.vercel.app
cosmos-git-main-cowswap.vercel.app
cosmos.cow.fi