Mirror: 🎩 A tiny but capable push & pull stream library for TypeScript and Flow
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add rollup-plugin-prettier

This may prevent some oddities with uglify-es on React Native.

+46
+1
package.json
··· 98 98 "rimraf": "^3.0.2", 99 99 "rollup": "^2.12.0", 100 100 "rollup-plugin-babel": "^4.4.0", 101 + "rollup-plugin-prettier": "^2.1.0", 101 102 "rollup-plugin-terser": "^6.1.0", 102 103 "rollup-plugin-typescript2": "^0.27.1", 103 104 "ts-jest": "^26.1.0",
+8
rollup.config.js
··· 6 6 import babel from 'rollup-plugin-babel'; 7 7 import { terser } from 'rollup-plugin-terser'; 8 8 import compiler from '@ampproject/rollup-plugin-closure-compiler'; 9 + import prettier from 'rollup-plugin-prettier'; 9 10 10 11 import minifyBucklescript from './scripts/minify-bucklescript-plugin'; 11 12 ··· 133 134 compilation_level: 'SIMPLE_OPTIMIZATIONS', 134 135 }), 135 136 isProduction ? terserMinified : terserPretty, 137 + !isProduction && 138 + prettier({ 139 + parser: 'babel', 140 + tabWidth: 2, 141 + printWidth: 100, 142 + singleQuote: true, 143 + }), 136 144 ].filter(Boolean); 137 145 138 146 const config = {
+37
yarn.lock
··· 6157 6157 resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-25.2.6.tgz#5f467c00edd35352b7bca46d7927d60e687a76dd" 6158 6158 integrity sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg== 6159 6159 6160 + diff@4.0.2: 6161 + version "4.0.2" 6162 + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" 6163 + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== 6164 + 6160 6165 diffie-hellman@^5.0.0: 6161 6166 version "5.0.3" 6162 6167 resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" ··· 11234 11239 resolved "https://registry.yarnpkg.com/lodash.has/-/lodash.has-4.5.2.tgz#d19f4dc1095058cccbe2b0cdf4ee0fe4aa37c862" 11235 11240 integrity sha1-0Z9NwQlQWMzL4rDN9O4P5Ko3yGI= 11236 11241 11242 + lodash.hasin@4.5.2: 11243 + version "4.5.2" 11244 + resolved "https://registry.yarnpkg.com/lodash.hasin/-/lodash.hasin-4.5.2.tgz#f91e352378d21ef7090b9e7687c2ca35c5b4d52a" 11245 + integrity sha1-+R41I3jSHvcJC552h8LKNcW01So= 11246 + 11247 + lodash.isempty@4.4.0: 11248 + version "4.4.0" 11249 + resolved "https://registry.yarnpkg.com/lodash.isempty/-/lodash.isempty-4.4.0.tgz#6f86cbedd8be4ec987be9aaf33c9684db1b31e7e" 11250 + integrity sha1-b4bL7di+TsmHvpqvM8loTbGzHn4= 11251 + 11237 11252 lodash.isequal@^4.5.0: 11238 11253 version "4.5.0" 11239 11254 resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" 11240 11255 integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA= 11256 + 11257 + lodash.isnil@4.0.0: 11258 + version "4.0.0" 11259 + resolved "https://registry.yarnpkg.com/lodash.isnil/-/lodash.isnil-4.0.0.tgz#49e28cd559013458c814c5479d3c663a21bfaa6c" 11260 + integrity sha1-SeKM1VkBNFjIFMVHnTxmOiG/qmw= 11241 11261 11242 11262 lodash.isnumber@^3.0.0: 11243 11263 version "3.0.3" ··· 11273 11293 version "4.6.2" 11274 11294 resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" 11275 11295 integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== 11296 + 11297 + lodash.omitby@4.6.0: 11298 + version "4.6.0" 11299 + resolved "https://registry.yarnpkg.com/lodash.omitby/-/lodash.omitby-4.6.0.tgz#5c15ff4754ad555016b53c041311e8f079204791" 11300 + integrity sha1-XBX/R1StVVAWtTwEExHo8HkgR5E= 11276 11301 11277 11302 lodash.pick@^4.2.1: 11278 11303 version "4.4.0" ··· 14954 14979 dependencies: 14955 14980 "@babel/helper-module-imports" "^7.0.0" 14956 14981 rollup-pluginutils "^2.8.1" 14982 + 14983 + rollup-plugin-prettier@^2.1.0: 14984 + version "2.1.0" 14985 + resolved "https://registry.yarnpkg.com/rollup-plugin-prettier/-/rollup-plugin-prettier-2.1.0.tgz#06b42169e28cb23163d4648bef412e57ff70acb4" 14986 + integrity sha512-2uPhHkBMVBZeb4cruQrYrjOTtoqHNvnUB5UIzmMu8JBXCfQ+0/JxDclEmnBd44MjO14VmXvfr0GanQaZjCxSbQ== 14987 + dependencies: 14988 + diff "4.0.2" 14989 + lodash.hasin "4.5.2" 14990 + lodash.isempty "4.4.0" 14991 + lodash.isnil "4.0.0" 14992 + lodash.omitby "4.6.0" 14993 + magic-string "0.25.7" 14957 14994 14958 14995 rollup-plugin-terser@^6.1.0: 14959 14996 version "6.1.0"