bsky-app/package.json

153 lines
4.8 KiB
JSON
Raw Normal View History

2022-06-08 00:50:05 +02:00
{
"name": "bsky.app",
2022-06-08 00:50:05 +02:00
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
2022-09-23 02:28:25 +02:00
"ios": "react-native run-ios --simulator=\"iPhone 14\"",
2022-06-08 22:52:12 +02:00
"web": "react-scripts start",
2022-06-08 00:50:05 +02:00
"start": "react-native start",
2022-11-11 22:02:19 +01:00
"clean-cache": "rm -rf node_modules/.cache/babel-loader/*",
"test": "jest --forceExit",
"test-watch": "jest --watchAll",
"test-ci": "jest --ci --forceExit --reporters=default --reporters=jest-junit",
"test-coverage": "jest --coverage",
Unit Testing (#35) * add testing lib * remove coverage folder from git * finished basic test setup * fix tests typescript and import paths * add first snapshot * testing utils * rename test files; update script flags; ++tests * testing utils functions * testing downloadAndResize wip * remove download test * specify unwanted coverage paths; remove update snapshots flag * fix strings tests * testing downloadAndResize method * increasing testing * fixing snapshots wip * fixed shell mobile snapshot * adding snapshots for the screens * fix onboard snapshot * fix typescript issues * fix TabsSelector snapshot * Account for testing device's locale in ago() tests * Remove platform detection on regex * mocking store state wip * mocking store state * increasing test coverage * increasing test coverage * increasing test coverage on src/screens * src/screens (except for profile) above 80% cov * testing profile screen wip * increase coverage on Menu and TabsSelector * mocking profile ui state wip * mocking profile ui state wip * fixing mobileshell tests wip * snapshots using testing-library * fixing profile tests wip * removing mobile shell tests * src/view/com tests wip * remove unnecessary patch-package * fixed profile test error * clear mocks after every test * fix base mocked store values (getters) * fix base mocked store values (hasLoaded, nonReplyFeed) * profile screen above 80% coverage * testing custom hooks * improving composer coverage * fix tests after merge * finishing composer coverage * improving src/com/discover coverage * improve src/view/com/login coverage fix SuggestedFollows tests adding some comments * fix SuggestedFollows tests * improve src/view/com/profile coverage extra minor fixes * improve src/view/com/notifications coverage * update coverage ignore patterns * rename errorMessageTryAgainButton increase SuggestedFollows converage * improve src/view/com/posts coverage * improve src/view/com/onboard coverage * update snapshot * improve src/view/com/post coverage * improve src/view/com/post-thread coverage rename ErrorMessage tests test Debug and Log components * init testing state * testing root-store * updating comments * small fixes * removed extra console logs * improve src/state/models coverage refactor rootStore rename some spies * adding cleanup method after tests * improve src/state/models coverage * improve src/state/models coverage * improve src/state/models coverage * improve src/state/models coverage * test setInterval in setupState * Clean up tests and update Home screen state management * Remove some tests we dont need * Remove snapshot tests * Remove any tests that dont demonstrate clear value * Cleanup Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-01-17 17:06:00 +01:00
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
2022-06-08 00:50:05 +02:00
},
"dependencies": {
2023-01-03 21:31:12 +01:00
"@atproto/api": "^0.0.6",
"@atproto/lexicon": "^0.0.4",
"@atproto/xrpc": "^0.0.3",
"@bam.tech/react-native-image-resizer": "^3.0.4",
2022-07-19 23:04:45 +02:00
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-native-fontawesome": "^0.3.0",
"@gorhom/bottom-sheet": "^4",
"@mattermost/react-native-paste-input": "^0.6.0",
"@notifee/react-native": "^7.4.0",
2022-06-09 20:03:25 +02:00
"@react-native-async-storage/async-storage": "^1.17.6",
"@react-native-camera-roll/camera-roll": "^5.2.2",
"@react-native-clipboard/clipboard": "^1.10.0",
"@react-native-community/blur": "^4.3.0",
"@segment/analytics-react-native": "^2.10.1",
"@segment/sovran-react-native": "^0.4.5",
2022-06-16 00:40:18 +02:00
"@zxing/text-encoding": "^0.9.0",
"base64-js": "^1.5.1",
2022-09-27 21:24:47 +02:00
"email-validator": "^2.0.4",
2022-11-29 16:29:57 +01:00
"he": "^1.2.0",
2022-11-08 22:56:22 +01:00
"lodash.chunk": "^4.2.0",
2022-07-20 22:00:37 +02:00
"lodash.omit": "^4.5.0",
2022-11-15 19:54:15 +01:00
"lru_map": "^0.4.1",
"mobx": "^6.6.1",
2022-06-10 00:13:29 +02:00
"mobx-react-lite": "^3.4.0",
"react": "18.2.0",
"react-circular-progressbar": "^2.1.0",
2022-06-08 22:52:12 +02:00
"react-dom": "17.0.2",
"react-native": "0.71.0",
2022-11-17 19:33:19 +01:00
"react-native-appstate-hook": "^1.0.6",
"react-native-background-fetch": "^4.1.8",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.5.0",
"react-native-haptic-feedback": "^1.14.0",
"react-native-image-crop-picker": "^0.38.1",
"react-native-inappbrowser-reborn": "^3.6.3",
2022-09-01 03:09:58 +02:00
"react-native-linear-gradient": "^2.6.2",
2022-11-07 22:35:51 +01:00
"react-native-pager-view": "^6.0.2",
2022-07-22 23:06:51 +02:00
"react-native-progress": "^5.0.0",
"react-native-reanimated": "^2.9.1",
"react-native-root-siblings": "^4.1.1",
"react-native-root-toast": "^3.4.0",
2022-11-16 21:05:21 +01:00
"react-native-safe-area-context": "^4.4.1",
2022-06-08 22:52:12 +02:00
"react-native-screens": "^3.13.1",
2022-11-05 20:52:44 +01:00
"react-native-splash-screen": "^3.3.0",
2022-07-19 23:04:45 +02:00
"react-native-svg": "^12.4.0",
2022-11-07 22:35:51 +01:00
"react-native-tab-view": "^3.3.0",
"react-native-url-polyfill": "^1.3.0",
2022-12-06 19:40:40 +01:00
"react-native-version-number": "^0.3.6",
"react-native-web": "^0.17.7",
"rn-fetch-blob": "^0.12.0",
"tlds": "^1.234.0",
"zod": "^3.20.2"
2022-06-08 00:50:05 +02:00
},
"devDependencies": {
"@atproto/pds": "^0.0.1",
2022-06-08 00:50:05 +02:00
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.14.0",
2022-06-08 00:50:05 +02:00
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^3.0.0",
"@testing-library/jest-native": "^5.3.3",
"@testing-library/react-native": "^11.5.0",
2022-11-29 16:29:57 +01:00
"@types/he": "^1.1.2",
2022-06-08 00:50:05 +02:00
"@types/jest": "^26.0.23",
2022-11-08 22:56:22 +01:00
"@types/lodash.chunk": "^4.2.7",
2022-07-20 22:00:37 +02:00
"@types/lodash.omit": "^4.5.7",
2022-06-08 00:50:05 +02:00
"@types/react-native": "^0.67.3",
"@types/react-test-renderer": "^17.0.1",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"babel-jest": "^29.2.1",
2022-06-08 22:52:12 +02:00
"babel-plugin-react-native-web": "^0.17.7",
"eslint": "^8.19.0",
"jest": "^29.2.1",
"jest-junit": "^15.0.0",
"metro-react-native-babel-preset": "0.73.5",
"prettier": "^2.8.3",
2022-06-16 00:40:18 +02:00
"react-native-dotenv": "^3.3.1",
2022-06-08 22:52:12 +02:00
"react-scripts": "^5.0.1",
"react-test-renderer": "18.2.0",
2022-06-08 00:50:05 +02:00
"typescript": "^4.4.4"
},
"resolutions": {
"@types/react": "^17"
},
"jest": {
"preset": "react-native",
"setupFiles": [
"./jest/jestSetup.js",
"./node_modules/react-native-gesture-handler/jestSetup.js"
],
2023-01-03 04:39:15 +01:00
"setupFilesAfterEnv": [
"@testing-library/jest-native/extend-expect"
],
2022-06-08 00:50:05 +02:00
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
2022-06-08 01:56:31 +02:00
],
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-native-community|rollbar-react-native|@fortawesome|@react-native|@react-navigation)"
],
"modulePathIgnorePatterns": [
"__tests__/.*/__mocks__"
],
"coveragePathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/src/platform",
"<rootDir>/src/third-party",
Unit Testing (#35) * add testing lib * remove coverage folder from git * finished basic test setup * fix tests typescript and import paths * add first snapshot * testing utils * rename test files; update script flags; ++tests * testing utils functions * testing downloadAndResize wip * remove download test * specify unwanted coverage paths; remove update snapshots flag * fix strings tests * testing downloadAndResize method * increasing testing * fixing snapshots wip * fixed shell mobile snapshot * adding snapshots for the screens * fix onboard snapshot * fix typescript issues * fix TabsSelector snapshot * Account for testing device's locale in ago() tests * Remove platform detection on regex * mocking store state wip * mocking store state * increasing test coverage * increasing test coverage * increasing test coverage on src/screens * src/screens (except for profile) above 80% cov * testing profile screen wip * increase coverage on Menu and TabsSelector * mocking profile ui state wip * mocking profile ui state wip * fixing mobileshell tests wip * snapshots using testing-library * fixing profile tests wip * removing mobile shell tests * src/view/com tests wip * remove unnecessary patch-package * fixed profile test error * clear mocks after every test * fix base mocked store values (getters) * fix base mocked store values (hasLoaded, nonReplyFeed) * profile screen above 80% coverage * testing custom hooks * improving composer coverage * fix tests after merge * finishing composer coverage * improving src/com/discover coverage * improve src/view/com/login coverage fix SuggestedFollows tests adding some comments * fix SuggestedFollows tests * improve src/view/com/profile coverage extra minor fixes * improve src/view/com/notifications coverage * update coverage ignore patterns * rename errorMessageTryAgainButton increase SuggestedFollows converage * improve src/view/com/posts coverage * improve src/view/com/onboard coverage * update snapshot * improve src/view/com/post coverage * improve src/view/com/post-thread coverage rename ErrorMessage tests test Debug and Log components * init testing state * testing root-store * updating comments * small fixes * removed extra console logs * improve src/state/models coverage refactor rootStore rename some spies * adding cleanup method after tests * improve src/state/models coverage * improve src/state/models coverage * improve src/state/models coverage * improve src/state/models coverage * test setInterval in setupState * Clean up tests and update Home screen state management * Remove some tests we dont need * Remove snapshot tests * Remove any tests that dont demonstrate clear value * Cleanup Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-01-17 17:06:00 +01:00
"<rootDir>/src/view/com/util",
"<rootDir>/src/state/lib",
"<rootDir>/__tests__/test-utils.js"
],
"reporters": [
"default",
"jest-junit"
]
2022-06-08 22:52:12 +02:00
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
2022-06-08 00:50:05 +02:00
}
}