Skip to content

Commit ae16d7e

Browse files
authored
feat: rewrite project using Expo 52 template with Expo Router (#74)
1 parent 71972ca commit ae16d7e

File tree

113 files changed

+3435
-3075
lines changed

Some content is hidden

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

113 files changed

+3435
-3075
lines changed

.env.dev.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Env variables
2+
ENV=development
3+
API_URL=https://example.com
4+
5+
# EXPO
6+
EXPO_SLUG=react-native-boilerplate-dev
7+
EXPO_NAME="DEV - React Native Boilerplate"
8+
EXPO_PROJECT_ID=3a2f44a2-b2cb-4445-91e0-5e41dad0b0c4
9+
EXPO_IOS_BUNDLE_IDENTIFIER=com.watarumaeda.react-native-boilerplate-dev
10+
EXPO_ANDROID_PACKAGE=com.watarumaeda.react_native_boilerplate.dev

.env.development

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

.env.prod.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Env variables
2+
ENV=production
3+
API_URL=https://example.com
4+
5+
# EXPO
6+
EXPO_SLUG=react-native-boilerplate
7+
EXPO_NAME="React Native Boilerplate"
8+
EXPO_PROJECT_ID=18adc0d0-eb1d-11e9-8009-d524ed5cc4a7
9+
EXPO_IOS_BUNDLE_IDENTIFIER=com.watarumaeda.react-native-boilerplate
10+
EXPO_ANDROID_PACKAGE=com.watarumaeda.react_native_boilerplate

.env.production

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

.env.test

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

.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import("eslint").Linter.Config} */
2+
module.exports = {
3+
extends: ['expo', 'prettier'],
4+
plugins: ['prettier'],
5+
rules: {
6+
'prettier/prettier': 'error',
7+
},
8+
};

.eslintrc.json

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

.github/workflows/preview.yml

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI - APP Preview
1+
name: Preview Channel CI
22

33
on:
44
pull_request:
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
update:
11-
name: Publish Preview Channel
11+
name: Publish Preview Channel on Push / Pull-Request
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
@@ -24,19 +24,19 @@ jobs:
2424
2525
# checkout the repository
2626
- name: Checkout repository
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2828

2929
# setup node
3030
- name: Setup Node
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
3333
cache-dependency-path: package-lock.json
3434
node-version: ${{ matrix.node-version }}
3535
cache: npm
3636

3737
# setup expo
3838
- name: Setup Expo
39-
uses: expo/expo-github-action@v7
39+
uses: expo/expo-github-action@v8
4040
with:
4141
expo-version: latest
4242
eas-version: latest
@@ -49,43 +49,14 @@ jobs:
4949
# get branch name
5050
- name: Get branch name
5151
id: branch-name
52-
uses: tj-actions/branch-names@v7
53-
54-
# set environment variables
55-
- name: Load .env file
56-
if: steps.branch-name.outputs.current_branch != 'main'
57-
uses: xom9ikk/dotenv@v2
58-
with:
59-
mode: development
60-
61-
- name: Load .env file
62-
if: steps.branch-name.outputs.current_branch == 'main'
63-
uses: xom9ikk/dotenv@v2
64-
with:
65-
mode: production
52+
uses: tj-actions/branch-names@v8
6653

6754
# eas update (PR)
6855
- name: EAS update
69-
if: github.event_name == 'pull_request' && steps.branch-name.outputs.current_branch != 'main'
70-
run: eas update --branch ${{ steps.branch-name.outputs.current_branch }} --message "${{ github.event.pull_request.title }}"
71-
env:
72-
NODE_ENV: development
73-
74-
- name: EAS update
75-
if: github.event_name == 'pull_request' && steps.branch-name.outputs.current_branch == 'main'
56+
if: github.event_name == 'pull_request'
7657
run: eas update --branch ${{ steps.branch-name.outputs.current_branch }} --message "${{ github.event.pull_request.title }}"
77-
env:
78-
NODE_ENV: production
7958

8059
# eas update (PUSH)
8160
- name: EAS update
82-
if: github.event_name == 'push' && steps.branch-name.outputs.current_branch != 'main'
83-
run: eas update --branch ${{ steps.branch-name.outputs.current_branch }} --message "${{ github.event.head_commit.message }}"
84-
env:
85-
NODE_ENV: development
86-
87-
- name: EAS update
88-
if: github.event_name == 'push' && steps.branch-name.outputs.current_branch == 'main'
61+
if: github.event_name == 'push'
8962
run: eas update --branch ${{ steps.branch-name.outputs.current_branch }} --message "${{ github.event.head_commit.message }}"
90-
env:
91-
NODE_ENV: production

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI - APP
1+
name: Test CI
22

33
on:
44
pull_request:
@@ -8,19 +8,19 @@ on:
88

99
jobs:
1010
test:
11-
name: App Test
11+
name: Test on Push / Pull-Request
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
1515
node-version: [20.x]
1616
steps:
1717
# checkout the repository
1818
- name: Checkout repository
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020

2121
# setup node
2222
- name: Setup Node
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
cache-dependency-path: package-lock.json
2626
node-version: ${{ matrix.node-version }}

.gitignore

100755100644
Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,42 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
14
node_modules/
5+
6+
# Expo
27
.expo/
38
dist/
4-
coverage/
5-
npm-debug.*
9+
web-build/
10+
expo-env.d.ts
11+
12+
# Native
13+
*.orig.*
614
*.jks
715
*.p8
816
*.p12
917
*.key
1018
*.mobileprovision
11-
*.orig.*
12-
web-build/
19+
20+
# Metro
21+
.metro-health-check*
22+
23+
# debug
24+
npm-debug.*
25+
yarn-debug.*
26+
yarn-error.*
1327

1428
# macOS
1529
.DS_Store
30+
*.pem
1631

17-
# Temporary files created by Metro to check the health of the file watcher
18-
.metro-health-check*
32+
# local env files
33+
.env*
34+
!.env.dev.example
35+
!.env.prod.example
1936

20-
.env*.local
37+
# typescript
38+
*.tsbuildinfo
39+
40+
# coverage or example directories
41+
coverage/
42+
app-example

0 commit comments

Comments
 (0)