Skip to content

Commit d215702

Browse files
Initial commit
1 parent 8b545f2 commit d215702

101 files changed

Lines changed: 21618 additions & 2 deletions

File tree

Some content is hidden

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

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
// This tells ESLint to load the config from the package `eslint-config-custom`
3+
extends: ['custom'],
4+
5+
root: true,
6+
settings: {
7+
next: {
8+
rootDir: ['apps/*/'],
9+
},
10+
},
11+
};

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
# Enable version updates for npm
4+
- package-ecosystem: 'npm'
5+
# Look for `package.json` and `lock` files in the `root` directory
6+
directory: '/'
7+
# Check the npm registry for updates every day
8+
schedule:
9+
interval: 'weekly'
10+
time: '11:00'
11+
timezone: 'Asia/Seoul'
12+
reviewers:
13+
- 'mononoke-choi'
14+
# Raise all npm pull requests with an assignee
15+
assignees:
16+
- 'mononoke-choi'

.gitignore

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# vercel
4+
.vercel
5+
6+
# dependencies
7+
node_modules
8+
.pnp
9+
.pnp.js
10+
.idea
11+
12+
# testing
13+
coverage
14+
15+
# next.js
16+
.next/
17+
.swc/
18+
out/
19+
build
20+
21+
# expo
22+
*.jks
23+
*.p8
24+
*.p12
25+
*.key
26+
*.mobileprovision
27+
*.orig.*
28+
.expo*
29+
web-build/
30+
ios
31+
android
32+
33+
# misc
34+
.DS_Store
35+
*.pem
36+
dist
37+
38+
# debug
39+
npm-debug.log*
40+
yarn-debug.log*
41+
yarn-error.log*
42+
43+
# local env files
44+
.env
45+
.env.development.local
46+
.env.test.local
47+
.env.production.local
48+
env.json
49+
50+
# turbo
51+
.turbo
52+
53+
# codegen
54+
__generated__
55+
.tamagui
56+
.metro-health-check*

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn run lint
5+
yarn run prettier

.prettierignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Add files here to ignore them from prettier formatting
2+
.bundle
3+
coverage
4+
ios
5+
android
6+
dist
7+
.vercel
8+
.next
9+
.expo*
10+
__generated__
11+
.tamagui

.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
singleQuote: true,
4+
trailingComma: 'all',
5+
};

@types/eas.d.ts

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
interface EASBuildPayload {
2+
id: string;
3+
accountName: string;
4+
projectName: string;
5+
buildDetailsPageUrl: string;
6+
parentBuildId?: string;
7+
appId: string;
8+
initiatingUserId: string;
9+
cancelingUserId?: null;
10+
platform: 'android' | 'ios';
11+
status: 'errored' | 'finished' | 'canceled';
12+
artifacts: {
13+
buildUrl?: string;
14+
logsS3KeyPrefix: string;
15+
};
16+
metadata: {
17+
appName: string;
18+
username: string;
19+
workflow: string;
20+
appVersion: string;
21+
appBuildVersion: string;
22+
cliVersion: string;
23+
sdkVersion: string;
24+
buildProfile: 'development' | 'preview' | 'production';
25+
distribution: string;
26+
appIdentifier: string;
27+
gitCommitHash: string;
28+
gitCommitMessage: string;
29+
runtimeVersion: string;
30+
channel?: string;
31+
releaseChannel?: string;
32+
reactNativeVersion: string;
33+
trackingContext: {
34+
platform: string;
35+
account_id: string;
36+
dev_client: false;
37+
project_id: string;
38+
tracking_id: string;
39+
project_type: string;
40+
dev_client_version: string;
41+
};
42+
credentialsSource: string;
43+
isGitWorkingTreeDirty: false;
44+
message: string;
45+
runFromCI: false;
46+
};
47+
metrics: {
48+
memory: number;
49+
buildEndTimestamp: number;
50+
totalDiskReadBytes: number;
51+
buildStartTimestamp: number;
52+
totalDiskWriteBytes: number;
53+
cpuActiveMilliseconds: number;
54+
buildEnqueuedTimestamp: number;
55+
totalNetworkEgressBytes: number;
56+
totalNetworkIngressBytes: number;
57+
};
58+
error?: {
59+
message: string;
60+
errorCode: string;
61+
};
62+
createdAt: string;
63+
enqueuedAt: string;
64+
provisioningStartedAt: string;
65+
workerStartedAt: string;
66+
completedAt: string;
67+
updatedAt: string;
68+
expirationDate: string;
69+
priority: 'high' | 'normal' | 'low';
70+
resourceClass: string;
71+
actualResourceClass: string;
72+
maxRetryTimeMinutes: number;
73+
}

@types/process.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare namespace NodeJS {
2+
export interface ProcessEnv {
3+
APP_ENV: 'production' | 'development' | 'preview';
4+
SECRET_WEBHOOK_KEY: string;
5+
}
6+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
declare module '*.svg' {
2+
// eslint-disable-next-line import/no-namespace
3+
import * as React from 'react';
4+
import type { SvgProps } from 'react-native-svg';
5+
6+
export type ExtendedSVGProps = SvgProps & {
7+
color1?: string;
8+
color2?: string;
9+
color3?: string;
10+
color4?: string;
11+
};
12+
13+
const content: React.FC<ExtendedSVGProps>;
14+
export default content;
15+
}

@types/service-worker.d.ts

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
interface ExtendableEvent extends Event {
2+
waitUntil(fn: Promise<any>): void;
3+
}
4+
5+
interface PushSubscriptionChangeEvent extends ExtendableEvent {
6+
readonly newSubscription?: PushSubscription;
7+
readonly oldSubscription?: PushSubscription;
8+
}
9+
10+
// Client API
11+
12+
declare class Client {
13+
frameType: ClientFrameType;
14+
id: string;
15+
url: string;
16+
focused: boolean;
17+
18+
focus(): void;
19+
20+
postMessage(message: any): void;
21+
}
22+
23+
interface Clients {
24+
claim(): Promise<any>;
25+
26+
get(id: string): Promise<Client>;
27+
28+
matchAll(options?: ClientMatchOptions): Promise<Client[]>;
29+
30+
openWindow(url: string): Promise<void>;
31+
}
32+
33+
interface ClientMatchOptions {
34+
includeUncontrolled?: boolean;
35+
type?: ClientMatchTypes;
36+
}
37+
38+
interface WindowClient {
39+
focused: boolean;
40+
visibilityState: WindowClientState;
41+
42+
focus(): Promise<WindowClient>;
43+
44+
navigate(url: string): Promise<WindowClient>;
45+
}
46+
47+
type ClientFrameType = 'auxiliary' | 'top-level' | 'nested' | 'none';
48+
type ClientMatchTypes = 'window' | 'worker' | 'sharedworker' | 'all';
49+
type WindowClientState = 'hidden' | 'visible' | 'prerender' | 'unloaded';
50+
51+
// Fetch API
52+
53+
interface FetchEvent extends ExtendableEvent {
54+
clientId: string | null;
55+
request: Request;
56+
57+
respondWith(response: Promise<Response> | Response): Promise<Response>;
58+
}
59+
60+
interface InstallEvent extends ExtendableEvent {
61+
activeWorker: ServiceWorker;
62+
}
63+
64+
interface ActivateEvent extends ExtendableEvent {}
65+
66+
// Notification API
67+
68+
interface NotificationEvent extends ExtendableEvent {
69+
action: string;
70+
notification: Notification;
71+
}
72+
73+
// Push API
74+
75+
interface PushEvent extends ExtendableEvent {
76+
data: PushMessageData;
77+
}
78+
79+
interface PushMessageData {
80+
arrayBuffer(): ArrayBuffer;
81+
82+
blob(): Blob;
83+
84+
json(): any;
85+
86+
text(): string;
87+
}
88+
89+
// Sync API
90+
91+
interface SyncEvent extends ExtendableEvent {
92+
lastChance: boolean;
93+
tag: string;
94+
}
95+
96+
interface ExtendableMessageEvent extends ExtendableEvent {
97+
data: any;
98+
source: Client | object;
99+
}
100+
101+
// ServiceWorkerGlobalScope
102+
103+
interface ServiceWorkerGlobalScope {
104+
__WB_DISABLE_DEV_LOGS: boolean;
105+
106+
caches: CacheStorage;
107+
clients: Clients;
108+
registration: ServiceWorkerRegistration;
109+
110+
addEventListener(
111+
event: 'activate',
112+
fn: (event?: ExtendableEvent) => any,
113+
): void;
114+
115+
addEventListener(
116+
event: 'message',
117+
fn: (event?: ExtendableMessageEvent) => any,
118+
): void;
119+
120+
addEventListener(event: 'fetch', fn: (event?: FetchEvent) => any): void;
121+
122+
addEventListener(
123+
event: 'install',
124+
fn: (event?: ExtendableEvent) => any,
125+
): void;
126+
127+
addEventListener(event: 'push', fn: (event?: PushEvent) => any): void;
128+
129+
addEventListener(
130+
event: 'notificationclick',
131+
fn: (event?: NotificationEvent) => any,
132+
): void;
133+
134+
addEventListener(event: 'sync', fn: (event?: SyncEvent) => any): void;
135+
136+
fetch(request: Request | string): Promise<Response>;
137+
138+
skipWaiting(): Promise<void>;
139+
}

0 commit comments

Comments
 (0)