Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 056de72

Browse files
authored
Merge pull request #4450 from withspectrum/2.5.0
2.5.0
2 parents 0d3b296 + 6275852 commit 056de72

File tree

402 files changed

+14228
-29405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

402 files changed

+14228
-29405
lines changed

.circleci/config.yml

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ aliases:
1212
- &save-yarn-cache
1313
paths:
1414
- node_modules
15-
- mobile/node_modules
1615
- ~/.cache/yarn
1716
key: v1-yarn-{{ arch }}-{{ checksum "package.json" }}
1817

1918
- &yarn
2019
|
2120
yarn
22-
cd ./mobile && yarn && yarn setup && cd ..
2321
cd ./desktop && yarn && cd ..
2422

2523
- &install-rethinkdb
@@ -65,11 +63,6 @@ js_defaults: &js_defaults
6563
docker:
6664
- image: circleci/node:8
6765

68-
macos_defaults: &macos_defaults
69-
<<: *defaults
70-
macos:
71-
xcode: "9.2.0"
72-
7366
version: 2
7467
jobs:
7568

@@ -155,41 +148,6 @@ jobs:
155148
name: Run ESLint
156149
command: yarn run lint
157150

158-
# Tests js of the mobile app
159-
test_mobile_js:
160-
<<: *js_defaults
161-
steps:
162-
- attach_workspace:
163-
at: ~/spectrum
164-
- run: cd ./mobile && yarn test:unit
165-
166-
# Tests native code of the mobile app
167-
test_mobile_native:
168-
<<: *macos_defaults
169-
steps:
170-
- attach_workspace:
171-
at: ~/spectrum
172-
- run:
173-
name: Install Expo CLI
174-
command: npm install -g exp
175-
- run:
176-
name: Install Detox dependencies
177-
command: |
178-
brew tap wix/brew
179-
brew install applesimutils --HEAD
180-
npm install -g detox-cli
181-
- run:
182-
name: Rebuild Detox frameworks
183-
command: |
184-
cd ./mobile
185-
detox clean-framework-cache
186-
detox build-framework-cache
187-
- run:
188-
name: Start Packager in the background
189-
command: cd ./mobile && exp start
190-
background: true
191-
- run: cd ./mobile && yarn test:e2e
192-
193151
workflows:
194152
version: 2
195153

@@ -198,13 +156,6 @@ workflows:
198156
- checkout_environment
199157

200158
# Testing
201-
- test_mobile_js:
202-
requires:
203-
- checkout_environment
204-
# Disabled as Expo is fixing their critical issue with Detox
205-
# - test_mobile_native:
206-
# requires:
207-
# - checkout_environment
208159
- test_web:
209160
requires:
210161
- checkout_environment

.editorconfig

Lines changed: 0 additions & 13 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,4 @@ test-extend.js
2828
stats.json
2929
iris/.env
3030
api/.env
31-
.expo
32-
mobile/.expo
3331
test-results.json

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
'no-undef': 0,
1818
'no-console': ['warn', { allow: ['warn', 'error'] }],
1919
'no-unused-vars': 0,
20-
'no-empty': 1,
20+
'no-empty': 0,
2121
'no-useless-escape': 1,
2222
'no-fallthrough': 1,
2323
'no-extra-boolean-cast': 1,

.flowconfig

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
11
[ignore]
22
.*/build.*
33
.*/*.test.js
4-
.*/.expo
5-
.*/node_modules/expo
6-
.*/node_modules/react-native
74
.*/node_modules/cypress
85
.*/node_modules/draft-js
96
.*/node_modules/graphql
107
.*/node_modules/protobufjs-no-cli
11-
.*/node_modules/react-navigation
128
.*/node_modules/reqwest
13-
.*/node_modules/sentry-expo
149
.*/node_modules/react-apollo
1510
.*/node_modules/dataloader
1611
<PROJECT_ROOT>/node_modules/*
12+
<PROJECT_ROOT>/email-template-scripts/*
1713

1814
[options]
1915
suppress_comment=.*\\$FlowFixMe
2016
suppress_comment=.*\\$FlowIssue
2117
esproposal.class_instance_fields=enable
2218
module.system.node.resolve_dirname=node_modules
2319
module.system.node.resolve_dirname=.
24-
module.file_ext=.ios.js
25-
module.file_ext=.android.js
26-
module.file_ext=.native.js
2720
module.file_ext=.web.js
2821
module.file_ext=.js
2922
module.file_ext=.jsx

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
- mercury
1414
- hermes
1515
- chronos
16-
- mobile
1716
- analytics
1817

1918
**Run database migrations (delete if no migration was added)**
@@ -25,5 +24,5 @@ YES
2524
**Related issues (delete if you don't know of any)**
2625
Closes #
2726

28-
<!-- If there are UI changes please share mobile and desktop screenshots or recordings. -->
27+
<!-- If there are UI changes please share mobile-responsive and desktop screenshots or recordings. -->
2928

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ test-extend.js
2929
stats.json
3030
iris/.env
3131
api/.env
32-
.expo
33-
mobile/.expo
3432
test-results.json
3533
desktop/release
3634
public/uploads

.npmignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This is used by now when deploying hyperion, replacing .gitignore
2+
# NOTE(@mxstbr): The important change is that `cacert` is NOT ignored!
3+
node_modules
4+
.sass-cache
5+
npm-debug.log
6+
build
7+
.DS_Store
8+
src/config/FirebaseConfig.js
9+
npm-debug.log
10+
yarn-error.log
11+
rethinkdb_data
12+
debug
13+
now-secrets.json
14+
build-iris
15+
build-api
16+
build-athena
17+
build-hermes
18+
build-chronos
19+
build-mercury
20+
build-vulcan
21+
build-hyperion
22+
build-electron
23+
build-analytics
24+
package-lock.json
25+
.vscode
26+
dump.rdb
27+
*.swp
28+
queries-by-response-size.js
29+
queries-by-time.js
30+
test-extend.js
31+
stats.json
32+
iris/.env
33+
api/.env
34+
test-results.json
35+
public/uploads
36+
cypress/screenshots/
37+
cypress/videos/
38+
39+
# This is hyperion-now-specific, do not copy to .gitignore
40+
desktop
41+
docs
42+
cypress
43+
admin
44+
.circleci
45+
.github
46+

README.md

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Want to fix a bug or implement an agreed-upon feature? Great, jump to the [local
8383

8484
With the ground rules out of the way, let's talk about the coarse architecture of this mono repo:
8585

86-
- **Full-stack JavaScript**: We use Node.js to power our servers, and React to power our frontend and mobile apps. Almost all of the code you'll touch in this codebase will be JavaScript.
86+
- **Full-stack JavaScript**: We use Node.js to power our servers, and React to power our frontend apps. Almost all of the code you'll touch in this codebase will be JavaScript.
8787
- **Background Jobs**: We leverage background jobs (powered by [`bull`](https://github.com/OptimalBits/bull) and Redis) a lot. These jobs are handled by a handful of small worker servers, each with its own purpose.
8888

8989
Here is a list of all the big technologies we use:
@@ -93,8 +93,7 @@ Here is a list of all the big technologies we use:
9393
- **GraphQL**: API, powered by the entire Apollo toolchain
9494
- **Flowtype**: Type-safe JavaScript
9595
- **PassportJS**: Authentication
96-
- **React**: Frontend and mobile apps
97-
- **Expo**: Mobile apps
96+
- **React**: Frontend React app
9897
- **DraftJS**: WYSIWYG writing experience on the web
9998

10099
#### Folder structure
@@ -110,7 +109,6 @@ spectrum/
110109
├── hermes # Worker server (email sending)
111110
├── hyperion # Server rendering server
112111
├── mercury # Worker server (reputation)
113-
├── mobile # Mobile apps
114112
├── public # Public files used on the frontend
115113
├── shared # Shared JavaScript code
116114
├── src # Frontend SPA
@@ -257,31 +255,12 @@ To develop the desktop app you have to have the dev web server running in the ba
257255
yarn run dev:desktop
258256
```
259257

260-
#### Develop the mobile apps
258+
> Note: If something didn't work or you ran into troubles please submit PRs to improve this doc and keep it up to date!
261259
262-
To start the mobile apps run:
260+
<br />
261+
<div align="center">
262+
<img height="200px" src="public/img/connect.svg" />
263+
</div>
263264

264-
```
265-
yarn run dev:mobile
266-
```
267-
268-
And then open either the iOS simulator or the Android simulator with
269-
270-
```sh
271-
yarn run open:ios
272-
# or
273-
yarn run open:android
274-
```
275-
276-
Refer to [the Expo documentation on how to install the simulators](https://docs.expo.io/versions/v25.0.0/guides/debugging.html#using-a-simulator--emulator).
277-
278-
> Note: If something didn't work or you ran into troubles please submit PRs to improve this doc and keep it up to date!
279-
280-
<br />
281-
<div align="center">
282-
<img height="200px" src="public/img/connect.svg" />
283-
</div>
284-
285-
## License
286-
287-
BSD 3-Clause, see the [LICENSE](./LICENSE) file.
265+
## License
266+
BSD 3-Clause, see the [LICENSE](./LICENSE) file.

analytics/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"dependencies": {
88
"amplitude": "^3.5.0",
9-
"aws-sdk": "^2.354.0",
9+
"aws-sdk": "^2.373.0",
1010
"bull": "3.3.10",
1111
"debug": "^4.1.0",
1212
"faker": "^4.1.0",
@@ -16,6 +16,7 @@
1616
"raven": "^2.6.4",
1717
"redis-tag-cache": "^1.2.1",
1818
"rethinkdbdash": "^2.3.29",
19+
"rethinkhaberdashery": "^2.3.32",
1920
"sanitize-filename": "^1.6.1",
2021
"sha1": "^1.1.1",
2122
"source-map-support": "^0.5.9",

0 commit comments

Comments
 (0)