build: clean up module loading (#3898)
* build: clean up module loading * fix: rename commands->ethereum * build: simplify package.json deps * build: clean up cypress usage * build: clean up yarn.lock * build: record cypress runs * build: disable chromeWebSecurity in cypress tests * build: rm babel * build: disable sw in ci cypress * build: use dev env for e2e * build: reenable web security
Showing
custom-test-env.cjs
deleted
100644 → 0
| ... | ... | @@ -3,34 +3,40 @@ |
| "version": "1.0.7", | ||
| "description": "Uniswap Interface", | ||
| "homepage": ".", | ||
| "files": [ | ||
| "dist" | ||
| ], | ||
| "type": "module", | ||
| "types": "dist/index.d.ts", | ||
| "main": "dist/cjs/index.cjs", | ||
| "module": "dist/index.js", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./dist/index.d.ts", | ||
| "import": "./dist/index.js", | ||
| "require": "./dist/cjs/index.cjs" | ||
| }, | ||
| "./locales/*": { | ||
| "import": "./dist/locales/*.js", | ||
| "require": "./dist/cjs/locales/*.cjs" | ||
| "license": "GPL-3.0-or-later", | ||
| "scripts": { | ||
| "contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types \"./src/abis/**/*.json\"", | ||
| "contracts:compile:v3": "typechain --target ethers-v5 --out-dir src/types/v3 \"./node_modules/@uniswap/**/artifacts/contracts/**/*[!dbg].json\"", | ||
| "contracts:compile": "yarn contracts:compile:abi && yarn contracts:compile:v3", | ||
| "graphql:generate": "graphql-codegen --config codegen.yml", | ||
| "prei18n:extract": "touch src/locales/en-US.po", | ||
| "i18n:extract": "lingui extract --locale en-US", | ||
| "i18n:compile": "yarn i18n:extract && lingui compile", | ||
| "i18n:pseudo": "lingui extract --locale pseudo && lingui compile", | ||
| "prepare": "yarn contracts:compile && yarn graphql:generate && yarn i18n:compile", | ||
| "start": "react-scripts start", | ||
| "build": "react-scripts build", | ||
| "test": "react-scripts test", | ||
| "build:e2e": "env-cmd -f .env yarn build", | ||
| "test:e2e": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress open'", | ||
| "test:e2e:ci": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'" | ||
| }, | ||
| "./fonts.css": { | ||
| "import": "./dist/fonts.css", | ||
| "require": "./dist/fonts.css" | ||
| } | ||
| "browserslist": { | ||
| "production": [ | ||
| ">0.2%", | ||
| "not dead", | ||
| "not op_mini all" | ||
| ], | ||
| "development": [ | ||
| "last 1 chrome version", | ||
| "last 1 firefox version", | ||
| "last 1 safari version" | ||
| ] | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/plugin-transform-runtime": "^7.17.0", | ||
| "@babel/preset-env": "^7.16.11", | ||
| "@babel/preset-react": "^7.16.7", | ||
| "@babel/preset-typescript": "^7.16.7", | ||
| "dependencies": { | ||
| "@ethersproject/experimental": "^5.4.0", | ||
| "@fontsource/ibm-plex-mono": "^4.5.1", | ||
| "@fontsource/inter": "^4.5.1", | ||
| "@gnosis.pm/safe-apps-web3-react": "^0.6.0", | ||
| "@graphql-codegen/cli": "1.21.5", | ||
| "@graphql-codegen/typescript": "1.22.3", | ||
| ... | ... | @@ -41,9 +47,11 @@ |
| "@lingui/macro": "^3.9.0", | ||
| "@lingui/react": "^3.9.0", | ||
| "@metamask/jazzicon": "^2.0.0", | ||
| "@popperjs/core": "^2.4.4", | ||
| "@reach/dialog": "^0.10.3", | ||
| "@reach/portal": "^0.10.3", | ||
| "@react-hook/window-scroll": "^1.3.0", | ||
| "@reduxjs/toolkit": "^1.6.1", | ||
| "@testing-library/jest-dom": "^5.14.1", | ||
| "@testing-library/react": "^12.0.0", | ||
| "@testing-library/react-hooks": "^7.0.2", | ||
| ... | ... | @@ -76,19 +84,32 @@ |
| "@uniswap/governance": "^1.0.2", | ||
| "@uniswap/liquidity-staker": "^1.0.2", | ||
| "@uniswap/merkle-distributor": "1.0.1", | ||
| "@uniswap/redux-multicall": "^1.1.1", | ||
| "@uniswap/router-sdk": "^1.0.3", | ||
| "@uniswap/sdk-core": "^3.0.1", | ||
| "@uniswap/smart-order-router": "^2.5.26", | ||
| "@uniswap/token-lists": "^1.0.0-beta.27", | ||
| "@uniswap/v2-core": "1.0.0", | ||
| "@uniswap/v2-periphery": "^1.1.0-beta.0", | ||
| "@uniswap/v2-sdk": "^3.0.1", | ||
| "@uniswap/v3-core": "1.0.0", | ||
| "@uniswap/v3-periphery": "^1.1.1", | ||
| "@uniswap/v3-sdk": "^3.8.2", | ||
| "@web3-react/core": "^8.0.23-beta.0", | ||
| "@web3-react/eip1193": "^8.0.18-beta.0", | ||
| "@web3-react/empty": "^8.0.12-beta.0", | ||
| "@web3-react/metamask": "^8.0.19-beta.0", | ||
| "@web3-react/types": "^8.0.12-beta.0", | ||
| "@web3-react/url": "^8.0.17-beta.0", | ||
| "@web3-react/walletconnect": "^8.0.26-beta.0", | ||
| "ajv": "^6.12.3", | ||
| "array.prototype.flat": "^1.2.4", | ||
| "array.prototype.flatmap": "^1.2.4", | ||
| "babel-plugin-macros": "^3.1.0", | ||
| "cids": "^1.0.0", | ||
| "copy-to-clipboard": "^3.2.0", | ||
| "cross-env": "^7.0.3", | ||
| "cypress": "^7.7.0", | ||
| "d3": "^7.0.0", | ||
| "env-cmd": "^10.1.0", | ||
| "eslint": "^7.11.0", | ||
| "eslint-config-prettier": "^6.11.0", | ||
| "eslint-plugin-better-styled-components": "^1.1.2", | ||
| ... | ... | @@ -97,30 +118,49 @@ |
| "eslint-plugin-react-hooks": "^4.0.0", | ||
| "eslint-plugin-simple-import-sort": "^7.0.0", | ||
| "eslint-plugin-unused-imports": "^2.0.0", | ||
| "ethers": "^5.1.4", | ||
| "firebase": "^9.1.3", | ||
| "graphql": "^15.5.0", | ||
| "graphql-request": "^3.4.0", | ||
| "immer": "^9.0.6", | ||
| "inter-ui": "^3.13.1", | ||
| "jest-styled-components": "^7.0.5", | ||
| "jotai": "^1.3.7", | ||
| "jsbi": "^3.1.4", | ||
| "make-plural": "^7.0.0", | ||
| "ms.macro": "^2.0.0", | ||
| "multicodec": "^3.0.1", | ||
| "multihashes": "^4.0.2", | ||
| "node-vibrant": "^3.2.1-alpha.1", | ||
| "polished": "^3.3.2", | ||
| "polyfill-object.fromentries": "^1.0.1", | ||
| "popper-max-size-modifier": "^0.2.0", | ||
| "prettier": "^2.2.1", | ||
| "qs": "^6.9.4", | ||
| "react": "^17.0.1", | ||
| "react-confetti": "^6.0.0", | ||
| "react-dom": "^17.0.1", | ||
| "react-feather": "^2.0.8", | ||
| "react-ga4": "^1.4.1", | ||
| "react-is": "^17.0.2", | ||
| "react-markdown": "^4.3.1", | ||
| "react-popper": "^2.2.3", | ||
| "react-redux": "^7.2.2", | ||
| "react-router-dom": "^5.0.0", | ||
| "react-scripts": "^4.0.3", | ||
| "react-spring": "^8.0.27", | ||
| "react-use-gesture": "^6.0.14", | ||
| "react-virtualized-auto-sizer": "^1.0.2", | ||
| "react-window": "^1.8.5", | ||
| "rebass": "^4.0.7", | ||
| "redux": "^4.1.2", | ||
| "redux-localstorage-simple": "^2.3.1", | ||
| "sass": "^1.45.1", | ||
| "serve": "^11.3.2", | ||
| "setimmediate": "^1.0.5", | ||
| "start-server-and-test": "^1.11.0", | ||
| "styled-components": "^5.3.0", | ||
| "tiny-invariant": "^1.2.0", | ||
| "typechain": "^5.0.0", | ||
| "typescript": "^4.4.3", | ||
| "ua-parser-js": "^0.7.28", | ||
| ... | ... | @@ -129,99 +169,18 @@ |
| "wcag-contrast": "^3.0.0", | ||
| "web-vitals": "^2.1.0", | ||
| "web3-react-abstract-connector": "npm:@web3-react/abstract-connector@^6.0.7", | ||
| "web3-react-core": "npm:@web3-react/core@^6.0.9", | ||
| "web3-react-fortmatic-connector": "npm:@web3-react/fortmatic-connector@^6.0.9", | ||
| "web3-react-injected-connector": "npm:@web3-react/injected-connector@^6.0.7", | ||
| "web3-react-types": "npm:@web3-react/types@^6.0.7", | ||
| "web3-react-walletconnect-connector": "npm:@web3-react/walletconnect-connector@^7.0.2-alpha.0", | ||
| "web3-react-walletlink-connector": "npm:@web3-react/walletlink-connector@^6.2.13", | ||
| "wicg-inert": "^3.1.1", | ||
| "workbox-core": "^6.1.0", | ||
| "workbox-precaching": "^6.1.0", | ||
| "workbox-routing": "^6.1.0" | ||
| }, | ||
| "resolutions": { | ||
| "@walletconnect/ethereum-provider": "1.7.1" | ||
| }, | ||
| "scripts": { | ||
| "contracts:compile:abi": "typechain --target ethers-v5 --out-dir src/abis/types \"./src/abis/**/*.json\"", | ||
| "contracts:compile:v3": "typechain --target ethers-v5 --out-dir src/types/v3 \"./node_modules/@uniswap/**/artifacts/contracts/**/*[!dbg].json\"", | ||
| "contracts:compile": "yarn contracts:compile:abi && yarn contracts:compile:v3", | ||
| "graphql:generate": "graphql-codegen --config codegen.yml", | ||
| "prei18n:extract": "touch src/locales/en-US.po", | ||
| "i18n:extract": "lingui extract --locale en-US", | ||
| "i18n:compile": "yarn i18n:extract && lingui compile", | ||
| "i18n:pseudo": "lingui extract --locale pseudo && lingui compile", | ||
| "prepare": "yarn contracts:compile && yarn graphql:generate && yarn i18n:compile", | ||
| "start": "react-scripts start", | ||
| "build": "react-scripts build", | ||
| "test": "react-scripts test --env=./custom-test-env.cjs", | ||
| "test:e2e": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'" | ||
| }, | ||
| "browserslist": { | ||
| "production": [ | ||
| ">0.2%", | ||
| "not dead", | ||
| "not op_mini all" | ||
| ], | ||
| "development": [ | ||
| "last 1 chrome version", | ||
| "last 1 firefox version", | ||
| "last 1 safari version" | ||
| ] | ||
| }, | ||
| "license": "GPL-3.0-or-later", | ||
| "dependencies": { | ||
| "@babel/runtime": "^7.17.0", | ||
| "@fontsource/ibm-plex-mono": "^4.5.1", | ||
| "@fontsource/inter": "^4.5.1", | ||
| "@popperjs/core": "^2.4.4", | ||
| "@reduxjs/toolkit": "^1.6.1", | ||
| "@uniswap/redux-multicall": "^1.1.1", | ||
| "@uniswap/router-sdk": "^1.0.3", | ||
| "@uniswap/sdk-core": "^3.0.1", | ||
| "@uniswap/smart-order-router": "^2.5.26", | ||
| "@uniswap/token-lists": "^1.0.0-beta.27", | ||
| "@uniswap/v2-sdk": "^3.0.1", | ||
| "@uniswap/v3-sdk": "^3.8.2", | ||
| "@web3-react/core": "^8.0.23-beta.0", | ||
| "@web3-react/eip1193": "^8.0.18-beta.0", | ||
| "@web3-react/empty": "^8.0.12-beta.0", | ||
| "@web3-react/types": "^8.0.12-beta.0", | ||
| "@web3-react/url": "^8.0.17-beta.0", | ||
| "ajv": "^6.12.3", | ||
| "cids": "^1.0.0", | ||
| "ethers": "^5.1.4", | ||
| "immer": "^9.0.6", | ||
| "jotai": "^1.3.7", | ||
| "jsbi": "^3.1.4", | ||
| "make-plural": "^7.0.0", | ||
| "ms.macro": "^2.0.0", | ||
| "multicodec": "^3.0.1", | ||
| "multihashes": "^4.0.2", | ||
| "node-vibrant": "^3.2.1-alpha.1", | ||
| "polished": "^3.3.2", | ||
| "popper-max-size-modifier": "^0.2.0", | ||
| "react-feather": "^2.0.8", | ||
| "react-popper": "^2.2.3", | ||
| "react-virtualized-auto-sizer": "^1.0.2", | ||
| "react-window": "^1.8.5", | ||
| "rebass": "^4.0.7", | ||
| "setimmediate": "^1.0.5", | ||
| "styled-components": "^5.3.0", | ||
| "tiny-invariant": "^1.2.0", | ||
| "wcag-contrast": "^3.0.0", | ||
| "web3-react-core": "npm:@web3-react/core@^6.0.9", | ||
| "wicg-inert": "^3.1.1" | ||
| }, | ||
| "peerDependencies": { | ||
| "@babel/runtime": "^7.17.0", | ||
| "react": "^17.0.1", | ||
| "react-dom": "^17.0.1", | ||
| "react-redux": "^7.2.2", | ||
| "redux": "^4.1.2" | ||
| }, | ||
| "optionalDependencies": { | ||
| "bufferutil": "^4.0.6", | ||
| "encoding": "^0.1.13", | ||
| "utf-8-validate": "^5.0.8" | ||
| } | ||
| } |
Please register or sign in to comment