-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7a17011
Showing
68 changed files
with
18,445 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* dooboo-cli by dooboolab | ||
* Do not delete this folder and files if you are using dooboo-cli | ||
* https://www.npmjs.com/package/dooboo | ||
*/ |
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,7 @@ | ||
**/*.js | ||
# **/*/__tests__/**/* | ||
node_modules/ | ||
assets/langs/ios/ | ||
|
||
# types | ||
*.d.ts |
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 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'@dooboo/eslint-config-react-native', | ||
'plugin:i18n-json/recommended', | ||
], | ||
rules: { | ||
'eslint-comments/no-unlimited-disable': 0, | ||
'eslint-comments/no-unused-disable': 0, | ||
'i18n-json/identical-keys': [ | ||
2, | ||
{ | ||
filePath: path.resolve('./assets/langs/ko.json'), | ||
}, | ||
], | ||
'i18n-json/sorted-keys': [ | ||
2, | ||
{ | ||
order: 'asc', | ||
indentSpaces: 2, | ||
}, | ||
], | ||
'i18n-json/valid-message-syntax': [ | ||
2, | ||
{ | ||
syntax: path.resolve('./custom-syntax-validator.ts'), | ||
}, | ||
], | ||
}, | ||
}; |
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,5 @@ | ||
{ | ||
"projects": { | ||
"default": "" | ||
} | ||
} |
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,46 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install modules | ||
run: bun install --immutable | ||
|
||
- name: Check linting | ||
run: bun lint:all | ||
|
||
- name: Build typescript | ||
run: bun tsc | ||
|
||
- name: Remove dist | ||
run: rm -rf ./dist | ||
|
||
- name: Test | ||
run: bun run test --coverage --silent | ||
|
||
# - name: Upload coverage to Codecov | ||
# uses: codecov/codecov-action@v1 | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
# directory: ./coverage/ | ||
# flags: unittests | ||
# name: codecov-umbrella | ||
# fail_ci_if_error: false | ||
# path_to_write_report: ./coverage/codecov_report.gz |
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,28 @@ | ||
name: Deploy Web on Release | ||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
- uses: expo/expo-github-action@v8 | ||
with: | ||
expo-version: latest | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: Install modules | ||
run: bun install --immutable | ||
|
||
- name: Build web | ||
run: bun build:web | ||
env: | ||
ROOT_URL: ${{ secrets.ROOT_URL }} | ||
expoProjectId: ${{ secrets.expoProjectId }} |
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,85 @@ | ||
# OSX | ||
# | ||
.DS_Store | ||
|
||
# Xcode | ||
# | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
project.xcworkspace | ||
|
||
# Android/IntelliJ | ||
# | ||
build/ | ||
.idea | ||
.gradle | ||
local.properties | ||
*.iml | ||
*.hprof | ||
|
||
# node.js | ||
# | ||
node_modules/ | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
# BUCK | ||
buck-out/ | ||
\.buckd/ | ||
*.keystore | ||
|
||
# fastlane | ||
# | ||
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the | ||
# screenshots whenever they are needed. | ||
# For more information about the recommended setup visit: | ||
# https://docs.fastlane.tools/best-practices/source-control/ | ||
|
||
*/fastlane/report.xml | ||
*/fastlane/Preview.html | ||
*/fastlane/screenshots | ||
|
||
# Bundle artifacts | ||
*.jsbundle | ||
|
||
# CocoaPods | ||
/ios/Pods/ | ||
|
||
# Expo | ||
.expo/* | ||
web-build/ | ||
|
||
# Yarn | ||
.yarn/* | ||
!.yarn/releases | ||
|
||
.env* | ||
.jest | ||
|
||
# Android | ||
android | ||
|
||
# iOS | ||
ios | ||
|
||
|
||
|
||
# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb | ||
# The following patterns were generated by expo-cli | ||
|
||
expo-env.d.ts | ||
# @end expo-cli |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx commitlint --edit $1 |
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,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
bun lint:ci | ||
bun lint:i18n |
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,8 @@ | ||
// prettier.config.js or .prettierrc.js | ||
module.exports = { | ||
trailingComma: 'all', | ||
arrowParens: 'always', | ||
singleQuote: true, | ||
jsxSingleQuote: false, | ||
bracketSpacing: false, | ||
}; |
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,12 @@ | ||
{ | ||
"recommendations": [ | ||
"formulahendry.auto-rename-tag", | ||
"aaron-bond.better-comments", | ||
"vscode-icons-team.vscode-icons", | ||
"streetsidesoftware.code-spell-checker", | ||
"wix.vscode-import-cost", | ||
"styled-components.vscode-styled-components", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Attach to packager", | ||
"cwd": "${workspaceFolder}", | ||
"type": "reactnative", | ||
"request": "attach" | ||
} | ||
] | ||
} | ||
|
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,45 @@ | ||
{ | ||
"eslint.enable": true, | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact" | ||
], | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "explicit" | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"javascript.preferences.importModuleSpecifier": "relative", | ||
"typescript.preferences.importModuleSpecifier": "relative", | ||
"prettier.configPath": ".prettierrc.js", | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"**/Thumbs.db": true, | ||
"**/.classpath": true, | ||
"**/.project": true, | ||
"**/.settings": true, | ||
"**/.factorypath": true, | ||
}, | ||
"cSpell.words": [ | ||
"crossplatformkorea", | ||
"dooboo", | ||
"Pressable", | ||
"Pretendard" | ||
] | ||
} |
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,27 @@ | ||
# Expo Starter with Router | ||
|
||
[![CI](https://github.com/dooboolab-community/expo-router-starter/actions/workflows/ci.yml/badge.svg)](https://github.com/dooboolab-community/expo-router-starter/actions/workflows/ci.yml) | ||
|
||
The `expo` template generated with `dooboo-cli`. | ||
|
||
We believe that the fastest way to build the app is using [Expo](https://expo.io). | ||
You can create app even more easily with the cli tool [dooboo-cli](https://github.com/dooboolab-community/dooboo-cli). | ||
|
||
## Stacks used | ||
|
||
- [react-native](https://github.com/facebook/react-native) | ||
- [expo-router](https://expo.github.io/router) | ||
- [emotion](https://emotion.sh) | ||
- [dooboo-ui](https://github.com/dooboolab/dooboo-ui) | ||
- [jest](https://github.com/facebook/jest) | ||
- [react-native-testing-library](https://github.com/callstack/react-native-testing-library) | ||
- [typescript](https://github.com/Microsoft/TypeScript) | ||
- [ts-jest](https://github.com/kulshekhar/ts-jest) | ||
- [prettier](https://prettier.io) | ||
- [react-native-web](https://github.com/necolas/react-native-web) | ||
- [expo-localization](https://docs.expo.dev/versions/latest/sdk/localization) | ||
|
||
## Quick News | ||
|
||
- In default, [dooboo-ui](https://github.com/dooboolab/dooboo-ui), a ui framework for [Expo](https://expo.io) is preinstalled in the project. Hope you like it 🧡. | ||
- Default package manager is set to [bun](https://bun.sh) which is fastest in 2023. |
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,3 @@ | ||
export default { | ||
loadSingleFontAsync: jest.fn(), | ||
}; |
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,3 @@ | ||
export const Native = { | ||
captureException: jest.fn(), | ||
}; |
Oops, something went wrong.