-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into #697-aws-sdk-v3-migration
- Loading branch information
Showing
383 changed files
with
9,364 additions
and
9,892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,2 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
*.swp | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.vscode | ||
.idea | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
**/node_modules | ||
**/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node-linker=hoisted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,17 +12,23 @@ RUN apt-get -qq update; \ | |
nvm use --delete-prefix default | ||
ENV PATH /root/.nvm/versions/node/$NODE_VERSION/bin:$PATH | ||
|
||
# Install base dependencies | ||
RUN npm install --global [email protected] [email protected] [email protected] | ||
|
||
# Copy lockfile and prefetch depdendencies | ||
COPY pnpm-lock.yaml . | ||
RUN pnpm fetch | ||
|
||
# Copy repository | ||
COPY . . | ||
|
||
# Install requirements | ||
RUN npm install --global [email protected] [email protected]; \ | ||
pnpm install; \ | ||
pnpm install [email protected] --save | ||
|
||
# Build | ||
RUN pnpm run build; \ | ||
chmod 711 /root | ||
RUN pnpm --filter @taxi/web... install --offline; \ | ||
pnpm --filter @taxi/web... build | ||
|
||
# Move built files to root | ||
RUN mv /root/packages/web/build . | ||
RUN chmod 711 /root | ||
|
||
# Set default environment variables | ||
ENV REACT_APP_BACK_URL=https://taxi.sparcs.org/api \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# Expo | ||
.expo/ | ||
dist/ | ||
web-build/ | ||
|
||
# Native | ||
*.orig.* | ||
*.jks | ||
*.p8 | ||
*.p12 | ||
*.key | ||
*.mobileprovision | ||
|
||
# Metro | ||
.metro-health-check* | ||
|
||
# debug | ||
npm-debug.* | ||
yarn-debug.* | ||
yarn-error.* | ||
|
||
# macOS | ||
.DS_Store | ||
*.pem | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# typescript | ||
*.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import type { ConfigContext, ExpoConfig } from "@expo/config"; | ||
import ip from "internal-ip"; | ||
|
||
const isDev = process.env.NODE_ENV === "development"; | ||
|
||
export default ({ config }: ConfigContext): Partial<ExpoConfig> => ({ | ||
...config, | ||
name: "Taxi for KAIST", | ||
slug: "Taxi-for-KAIST", | ||
version: "1.0.0", | ||
orientation: "portrait", | ||
icon: "./assets/icon.png", | ||
userInterfaceStyle: "light", | ||
splash: { | ||
image: "./assets/splash.png", | ||
resizeMode: "contain", | ||
backgroundColor: "#ffffff", | ||
}, | ||
assetBundlePatterns: ["**/*"], | ||
ios: { | ||
supportsTablet: true, | ||
}, | ||
android: { | ||
adaptiveIcon: { | ||
foregroundImage: "./assets/adaptive-icon.png", | ||
backgroundColor: "#ffffff", | ||
}, | ||
}, | ||
web: { | ||
favicon: "./assets/favicon.png", | ||
}, | ||
experiments: { | ||
tsconfigPaths: true, | ||
}, | ||
extra: { | ||
SERVER_URL: isDev | ||
? `http://${ip.v4.sync()}:3000` | ||
: "https://taxi.sparcs.org", | ||
}, | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = function(api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Learn more https://docs.expo.dev/guides/monorepos | ||
const { getDefaultConfig } = require('expo/metro-config'); | ||
const { FileStore } = require('metro-cache'); | ||
const path = require('path'); | ||
|
||
const projectRoot = __dirname; | ||
const workspaceRoot = path.resolve(projectRoot, '../..'); | ||
|
||
const config = getDefaultConfig(projectRoot); | ||
|
||
// #1 - Watch all files in the monorepo | ||
config.watchFolders = [workspaceRoot]; | ||
// #3 - Force resolving nested modules to the folders below | ||
config.resolver.disableHierarchicalLookup = true; | ||
// #2 - Try resolving with project modules first, then workspace modules | ||
config.resolver.nodeModulesPaths = [ | ||
path.resolve(projectRoot, 'node_modules'), | ||
path.resolve(workspaceRoot, 'node_modules'), | ||
]; | ||
|
||
// Use turborepo to restore the cache when possible | ||
config.cacheStores = [ | ||
new FileStore({ root: path.join(projectRoot, 'node_modules', '.cache', 'metro') }), | ||
]; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference types="@types/node" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "@taxi/app", | ||
"version": "1.0.0", | ||
"main": "src/main.js", | ||
"scripts": { | ||
"start": "expo start", | ||
"android": "expo start --android", | ||
"ios": "expo start --ios", | ||
"web": "expo start --web" | ||
}, | ||
"dependencies": { | ||
"@react-navigation/bottom-tabs": "^6.5.11", | ||
"@react-navigation/native": "^6.1.9", | ||
"@react-navigation/stack": "^6.3.20", | ||
"expo": "~49.0.15", | ||
"expo-status-bar": "~1.6.0", | ||
"react": "18.2.0", | ||
"react-native": "0.72.6", | ||
"react-native-webview": "^13.6.4", | ||
"shallow-equal": "^3.1.0", | ||
"url-pattern": "^1.0.3", | ||
"uuid": "3.4.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.20.0", | ||
"@types/node": "^20.11.5", | ||
"@types/react": "~18.2.14", | ||
"internal-ip": "^6.2.0", | ||
"typescript": "^5.1.3" | ||
}, | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { RootStack } from "@/screens"; | ||
import { NavigationContainer } from "@react-navigation/native"; | ||
import { StatusBar } from "expo-status-bar"; | ||
import { View } from "react-native"; | ||
|
||
export function App() { | ||
return ( | ||
<View style={{ flex: 1 }}> | ||
<NavigationContainer> | ||
<RootStack /> | ||
</NavigationContainer> | ||
<StatusBar style="auto" /> | ||
</View> | ||
); | ||
} |
Oops, something went wrong.