Skip to content

Commit

Permalink
Merge pull request #125 from YukiOnishi1129/feature/mobile-start
Browse files Browse the repository at this point in the history
Feature/mobile start
  • Loading branch information
YukiOnishi1129 authored Jul 12, 2024
2 parents 60504ff + 5ce7cd4 commit 6d6e4b8
Show file tree
Hide file tree
Showing 42 changed files with 3,579 additions and 702 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/mobile_rn_client_pr_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: mobile_rn_client_pr_check

on:
push:
branches:
- "main"
- "develop"
- "feature/*"
- "feat/*"
- "YL-*"
paths:
- "mobile/rn-client/**"
- ".github/workflows/mobile_rn_client_pr_check.yml"
#
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

defaults:
run:
working-directory: ./mobile/rn-client

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: ./web/client/package-lock.json

- name: Install dependencies
run: npm install --frozen-lockfile

- name: Lint
run: npm run lint

- name: Test
run: npm run test:ci

# - name: Build
# run: npm run build
35 changes: 0 additions & 35 deletions mobile/customer/app/modal.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions mobile/customer/components/StyledText.tsx

This file was deleted.

1 change: 0 additions & 1 deletion mobile/customer/components/useColorScheme.ts

This file was deleted.

19 changes: 0 additions & 19 deletions mobile/customer/constants/Colors.ts

This file was deleted.

17 changes: 0 additions & 17 deletions mobile/customer/tsconfig.json

This file was deleted.

6 changes: 6 additions & 0 deletions mobile/rn-client/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

/.expo

node_modules

*.d.ts
88 changes: 88 additions & 0 deletions mobile/rn-client/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
// https://docs.expo.dev/guides/using-eslint/
module.exports = {
extends: [
"universe",
"universe/shared/typescript-analysis",
"universe/native",
"prettier",
],
plugins: ["prettier", "import", "unused-imports"],
rules: {
"import/order": [
"error",
{
groups: [
"builtin",
"external",
"internal",
["parent", "sibling"],
"object",
"type",
"index",
],
"newlines-between": "always",
alphabetize: {
order: "asc",
caseInsensitive: true,
},
pathGroups: [
{
pattern: "@/features/**",
group: "internal",
position: "before",
},
{
pattern: "@/components/**",
group: "internal",
position: "before",
},
{
pattern: "@/hooks/**",
group: "internal",
position: "before",
},
{
pattern: "@/lib/**",
group: "internal",
position: "before",
},
{
pattern: "@/constants/**",
group: "internal",
position: "before",
},
{
pattern: "@/types/**",
group: "internal",
position: "before",
},
],
},
],
"prettier/prettier": "error",
"react-native/no-inline-styles": 0,
"import/namespace": 0,
"no-duplicate-imports": "error",
"unused-imports/no-unused-imports": "error",
},
overrides: [
{
files: ["*.ts", "*.tsx", "*.d.ts"],
parserOptions: {
project: "./tsconfig.json",
},
},
],
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
typescript: { project: "./" },
alias: {
extensions: [".ts", ".tsx"],
map: [["@/", "./src"]],
},
},
},
};
8 changes: 8 additions & 0 deletions mobile/customer/.gitignore → mobile/rn-client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ yarn-error.*

# typescript
*.tsbuildinfo

# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
# The following patterns were generated by expo-cli

expo-env.d.ts
# @end expo-cli

# __snapshots__
10 changes: 10 additions & 0 deletions mobile/rn-client/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules/**
# package.json
yarn.lock
ios/**
android/**
assets/**
# .vscode
.expo-shared
# .prettirrc
# .eslintrc.js
9 changes: 9 additions & 0 deletions mobile/rn-client/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": false,
"jsxSingleQuote": false,
"tabWidth": 2,
"bracketSameLine": true,
"useTabs": false
}
10 changes: 10 additions & 0 deletions mobile/rn-client/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": [
"source.addMissingImports",
"source.fixAll.eslint"
]
}
7 changes: 7 additions & 0 deletions mobile/rn-client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Mobile client Application (React Native)

## Tech stacks

- [React Native](https://reactnative.dev/)
- [expo](https://expo.dev/)
- [supabase-js](https://github.com/supabase/supabase-js)
4 changes: 2 additions & 2 deletions mobile/customer/app.json → mobile/rn-client/app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"expo": {
"name": "customer",
"slug": "customer",
"name": "rn-client",
"slug": "rn-client",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo']
presets: ["babel-preset-expo"],
};
};
Loading

0 comments on commit 6d6e4b8

Please sign in to comment.