Skip to content

Commit

Permalink
feat: add expo SDK 51 template
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed May 16, 2024
1 parent 93685bd commit 656d12f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/const.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const EXPO_48_BRANCH = 'release/48';
export const EXPO_49_BRANCH = 'release/49';
export const EXPO_50_BRANCH = 'release/50';
export const EXPO_51_BRANCH = 'release/51';
export const LATEST = 'main';
13 changes: 12 additions & 1 deletion bin/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ import {
} from '../utils/functions.js';

import {cbResultExpo} from './cb.js';
import {EXPO_48_BRANCH, EXPO_49_BRANCH, LATEST} from './const.js';
import {
EXPO_48_BRANCH,
EXPO_49_BRANCH,
EXPO_50_BRANCH,
LATEST,
} from './const.js';

const __filename = fileURLToPath(import.meta.url);
export const __dirname = path.dirname(__filename);
Expand All @@ -40,6 +45,7 @@ export enum TYPE_OF_APP {
EXPO_48 = 1,
EXPO_49 = 2,
EXPO_50 = 3,
EXPO_51 = 4,
}

export enum TYPE_OF_RN_NAVIGATION {
Expand Down Expand Up @@ -106,6 +112,7 @@ program

list
.option(' Latest ', 0)
.option(' Expo SDK 51 ', TYPE_OF_APP.EXPO_51)
.option(' Expo SDK 50 ', TYPE_OF_APP.EXPO_50)
.option(' Expo SDK 49 ', TYPE_OF_APP.EXPO_49)
.option(' Expo SDK 48 ', TYPE_OF_APP.EXPO_48)
Expand Down Expand Up @@ -139,6 +146,10 @@ program
case TYPE_OF_APP.EXPO_49:
template = `-b ${EXPO_49_BRANCH} https://github.com/dooboolab-community/expo-router-starter.git`;

break;
case TYPE_OF_APP.EXPO_50:
template = `-b ${EXPO_50_BRANCH} https://github.com/dooboolab-community/expo-router-starter.git`;

break;
default:
template = `-b ${LATEST} https://github.com/dooboolab-community/expo-router-starter.git`;
Expand Down

0 comments on commit 656d12f

Please sign in to comment.