|
23 | 23 | "@reach/portal": "^0.10.3", |
24 | 24 | "@react-hook/window-scroll": "^1.3.0", |
25 | 25 | "@reduxjs/toolkit": "^1.6.1", |
26 | | - "@svgr/cli": "^5.5.0", |
| 26 | + "@rollup/plugin-eslint": "^8.0.1", |
| 27 | + "@rollup/plugin-json": "^4.1.0", |
| 28 | + "@rollup/plugin-replace": "^3.0.1", |
| 29 | + "@rollup/plugin-url": "^6.1.0", |
| 30 | + "@svgr/rollup": "^6.2.0", |
27 | 31 | "@testing-library/jest-dom": "^5.14.1", |
28 | 32 | "@testing-library/react": "^12.0.0", |
29 | 33 | "@testing-library/react-hooks": "^7.0.2", |
|
85 | 89 | "graphql-request": "^3.4.0", |
86 | 90 | "inter-ui": "^3.13.1", |
87 | 91 | "jest-styled-components": "^7.0.5", |
88 | | - "microbundle": "^0.13.3", |
89 | 92 | "ms.macro": "^2.0.0", |
90 | 93 | "polyfill-object.fromentries": "^1.0.1", |
91 | 94 | "prettier": "^2.2.1", |
|
100 | 103 | "react-spring": "^8.0.27", |
101 | 104 | "react-use-gesture": "^6.0.14", |
102 | 105 | "redux-localstorage-simple": "^2.3.1", |
| 106 | + "rollup": "^2.63.0", |
| 107 | + "rollup-plugin-dts": "^4.1.0", |
| 108 | + "rollup-plugin-scss": "^3.0.0", |
| 109 | + "rollup-plugin-typescript2": "^0.31.1", |
103 | 110 | "sass": "^1.45.1", |
104 | 111 | "serve": "^11.3.2", |
105 | 112 | "start-server-and-test": "^1.11.0", |
|
126 | 133 | "i18n:extract": "lingui extract --locale en-US", |
127 | 134 | "i18n:compile": "yarn i18n:extract && lingui compile", |
128 | 135 | "i18n:pseudo": "lingui extract --locale pseudo && lingui compile", |
129 | | - "postinstall": "yarn contracts:compile && yarn graphql:generate && yarn i18n:compile && yarn assets:generate", |
| 136 | + "postinstall": "yarn contracts:compile && yarn graphql:generate && yarn i18n:compile", |
130 | 137 | "start": "react-scripts start", |
131 | 138 | "build": "react-scripts build", |
132 | 139 | "test": "react-scripts test --env=./custom-test-env.js", |
133 | 140 | "test:e2e": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'", |
134 | | - "assets:generate": "yarn assets:svg:generate && yarn assets:font:generate", |
135 | | - "assets:svg:generate": "svgr -d src/lib/assets/svg --ext tsx --typescript src/lib/assets/svg && rm src/lib/assets/svg/index.tsx", |
136 | | - "assets:font:generate": "sass src/lib/assets/fonts/index.scss src/lib/assets/fonts/index.css --no-source-map -I node_modules", |
137 | | - "bundle": "microbundle --define process.env.REACT_APP_IS_WIDGET=true --tsconfig tsconfig.lib.json src/lib/index.tsx --format esm,cjs", |
138 | | - "bundle:depcheck": "node depcheck.js", |
139 | | - "cosmos": "cross-env FAST_REFRESH=false REACT_APP_IS_WIDGET=true cosmos" |
| 141 | + "widgets:start": "cross-env FAST_REFRESH=false REACT_APP_IS_WIDGET=true cosmos", |
| 142 | + "widgets:build": "rollup --config --failAfterWarnings --configPlugin typescript2" |
140 | 143 | }, |
141 | 144 | "browserslist": { |
142 | 145 | "production": [ |
|
0 commit comments