chore: replace microbundle with rollup (#3115)
* refactor: mv gas estimate chains out of component * chore: replace microbundle with rollup * chore: use ts rollup config * chore: rename lib to widgets * chore: add rollup doc comment * feat: rollup typings * fix: retain tsconfig decl dir
Showing
depcheck.js
deleted
100644 → 0
| ... | @@ -23,7 +23,11 @@ | ... | @@ -23,7 +23,11 @@ |
| "@reach/portal": "^0.10.3", | "@reach/portal": "^0.10.3", | ||
| "@react-hook/window-scroll": "^1.3.0", | "@react-hook/window-scroll": "^1.3.0", | ||
| "@reduxjs/toolkit": "^1.6.1", | "@reduxjs/toolkit": "^1.6.1", | ||
| "@svgr/cli": "^5.5.0", | "@rollup/plugin-eslint": "^8.0.1", | ||
| "@rollup/plugin-json": "^4.1.0", | |||
| "@rollup/plugin-replace": "^3.0.1", | |||
| "@rollup/plugin-url": "^6.1.0", | |||
| "@svgr/rollup": "^6.2.0", | |||
| "@testing-library/jest-dom": "^5.14.1", | "@testing-library/jest-dom": "^5.14.1", | ||
| "@testing-library/react": "^12.0.0", | "@testing-library/react": "^12.0.0", | ||
| "@testing-library/react-hooks": "^7.0.2", | "@testing-library/react-hooks": "^7.0.2", | ||
| ... | @@ -85,7 +89,6 @@ | ... | @@ -85,7 +89,6 @@ |
| "graphql-request": "^3.4.0", | "graphql-request": "^3.4.0", | ||
| "inter-ui": "^3.13.1", | "inter-ui": "^3.13.1", | ||
| "jest-styled-components": "^7.0.5", | "jest-styled-components": "^7.0.5", | ||
| "microbundle": "^0.13.3", | |||
| "ms.macro": "^2.0.0", | "ms.macro": "^2.0.0", | ||
| "polyfill-object.fromentries": "^1.0.1", | "polyfill-object.fromentries": "^1.0.1", | ||
| "prettier": "^2.2.1", | "prettier": "^2.2.1", | ||
| ... | @@ -100,6 +103,10 @@ | ... | @@ -100,6 +103,10 @@ |
| "react-spring": "^8.0.27", | "react-spring": "^8.0.27", | ||
| "react-use-gesture": "^6.0.14", | "react-use-gesture": "^6.0.14", | ||
| "redux-localstorage-simple": "^2.3.1", | "redux-localstorage-simple": "^2.3.1", | ||
| "rollup": "^2.63.0", | |||
| "rollup-plugin-dts": "^4.1.0", | |||
| "rollup-plugin-scss": "^3.0.0", | |||
| "rollup-plugin-typescript2": "^0.31.1", | |||
| "sass": "^1.45.1", | "sass": "^1.45.1", | ||
| "serve": "^11.3.2", | "serve": "^11.3.2", | ||
| "start-server-and-test": "^1.11.0", | "start-server-and-test": "^1.11.0", | ||
| ... | @@ -126,17 +133,13 @@ | ... | @@ -126,17 +133,13 @@ |
| "i18n:extract": "lingui extract --locale en-US", | "i18n:extract": "lingui extract --locale en-US", | ||
| "i18n:compile": "yarn i18n:extract && lingui compile", | "i18n:compile": "yarn i18n:extract && lingui compile", | ||
| "i18n:pseudo": "lingui extract --locale pseudo && lingui compile", | "i18n:pseudo": "lingui extract --locale pseudo && lingui compile", | ||
| "postinstall": "yarn contracts:compile && yarn graphql:generate && yarn i18n:compile && yarn assets:generate", | "postinstall": "yarn contracts:compile && yarn graphql:generate && yarn i18n:compile", | ||
| "start": "react-scripts start", | "start": "react-scripts start", | ||
| "build": "react-scripts build", | "build": "react-scripts build", | ||
| "test": "react-scripts test --env=./custom-test-env.js", | "test": "react-scripts test --env=./custom-test-env.js", | ||
| "test:e2e": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'", | "test:e2e": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'", | ||
| "assets:generate": "yarn assets:svg:generate && yarn assets:font:generate", | "widgets:start": "cross-env FAST_REFRESH=false REACT_APP_IS_WIDGET=true cosmos", | ||
| "assets:svg:generate": "svgr -d src/lib/assets/svg --ext tsx --typescript src/lib/assets/svg && rm src/lib/assets/svg/index.tsx", | "widgets:build": "rollup --config --failAfterWarnings --configPlugin typescript2" | ||
| "assets:font:generate": "sass src/lib/assets/fonts/index.scss src/lib/assets/fonts/index.css --no-source-map -I node_modules", | |||
| "bundle": "microbundle --define process.env.REACT_APP_IS_WIDGET=true --tsconfig tsconfig.lib.json src/lib/index.tsx --format esm,cjs", | |||
| "bundle:depcheck": "node depcheck.js", | |||
| "cosmos": "cross-env FAST_REFRESH=false REACT_APP_IS_WIDGET=true cosmos" | |||
| }, | }, | ||
| "browserslist": { | "browserslist": { | ||
| "production": [ | "production": [ | ||
| ... | ... |
rollup.config.ts
0 → 100644
src/lib/lib.d.ts
0 → 100644
This source diff could not be displayed because it is too large. You can view the blob instead.
Please register or sign in to comment