-
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 57064bd
Showing
81 changed files
with
27,366 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,47 @@ | ||
{ | ||
"testRunner": "jest", | ||
"runnerConfig": "__e2e__/config.json", | ||
"skipLegacyWorkersInjection": true, | ||
"artifacts": { | ||
"rootDir": "__e2e__/__artifacts__/" | ||
}, | ||
"apps": { | ||
"ios": { | ||
"type": "ios.app", | ||
"binaryPath": "SPECIFY_PATH_TO_YOUR_APP_BINARY" | ||
}, | ||
"android": { | ||
"type": "android.apk", | ||
"binaryPath": "SPECIFY_PATH_TO_YOUR_APP_BINARY" | ||
} | ||
}, | ||
"devices": { | ||
"simulator": { | ||
"type": "ios.simulator", | ||
"device": { | ||
"type": "iPhone 13" | ||
} | ||
}, | ||
"emulator": { | ||
"type": "android.emulator", | ||
"device": { | ||
"avdName": "Pixel_3a_API_30_x86" | ||
} | ||
} | ||
}, | ||
"configurations": { | ||
"ios.sim": { | ||
"binaryPath": "bin/Exponent.app", | ||
"type": "ios.simulator", | ||
"name": "iPhone 13" | ||
}, | ||
"ios": { | ||
"device": "simulator", | ||
"app": "ios" | ||
}, | ||
"android": { | ||
"device": "emulator", | ||
"app": "android" | ||
} | ||
} | ||
} |
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 @@ | ||
ANDROID_BANNER_AD_UNIT_ID=ca-app-pub-3940256099942544/6300978111 | ||
ANDROID_INTERSTITIAL_AD_UNIT_ID=ca-app-pub-3940256099942544/1033173712 | ||
IOS_BANNER_AD_UNIT_ID=ca-app-pub-3940256099942544/2934735716 | ||
IOS_INTERSTITIAL_AD_UNIT_ID=ca-app-pub-3940256099942544/4411468910 | ||
|
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 @@ | ||
ANDROID_BANNER_AD_UNIT_ID= | ||
ANDROID_INTERSTITIAL_AD_UNIT_ID= | ||
IOS_BANNER_AD_UNIT_ID= | ||
IOS_INTERSTITIAL_AD_UNIT_ID= |
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,76 @@ | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: `./tsconfig.json`, | ||
createDefaultProgram: true, | ||
}, | ||
plugins: ["promise"], | ||
extends: [ | ||
"@react-native-community", | ||
"airbnb", | ||
"airbnb-typescript", | ||
"prettier", | ||
], | ||
rules: { | ||
"react/jsx-boolean-value": "off", | ||
"react/jsx-uses-react": 1, | ||
"react/jsx-uses-vars": 1, | ||
"import/prefer-default-export": "off", | ||
"arrow-body-style": ["error", "always"], | ||
"sort-imports": [ | ||
"error", | ||
{ | ||
ignoreCase: false, | ||
ignoreDeclarationSort: true, | ||
ignoreMemberSort: true, | ||
}, | ||
], | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
semi: true, | ||
}, | ||
], | ||
"promise/always-return": "error", | ||
"promise/no-return-wrap": "error", | ||
"promise/param-names": "error", | ||
"promise/catch-or-return": "error", | ||
"promise/no-native": "off", | ||
"promise/no-nesting": "error", | ||
"promise/no-promise-in-callback": "error", | ||
"promise/no-callback-in-promise": "error", | ||
"promise/avoid-new": "error", | ||
"promise/no-new-statics": "error", | ||
"promise/no-return-in-finally": "error", | ||
"promise/valid-params": "error", | ||
"react-native/no-inline-styles": "error", | ||
"react-native/no-unused-styles": "error", | ||
"react/function-component-definition": [ | ||
2, | ||
{ | ||
namedComponents: [ | ||
"function-declaration", | ||
"function-expression", | ||
"arrow-function", | ||
], | ||
unnamedComponents: ["function-expression", "arrow-function"], | ||
}, | ||
], | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
devDependencies: ["**/__e2e__/**", "**/__test__/**", "test-*.{ts,tsx}"], | ||
optionalDependencies: false, | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["**/*.tsx", "**/*.ts"], | ||
rules: { | ||
"react/prop-types": "off", | ||
}, | ||
}, | ||
], | ||
}; |
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 @@ | ||
{ | ||
"2e25d0e8536c49d8e768b828f8af94a758a37ad79eadfb517b4992383902a0b0": true, | ||
"c3bd1ba7faeed0ecf2934f670a981d2936a134de119e7ae78194bf6c50a8bfbf": true, | ||
"5e4f0ad55bd1f3941c59ef94068bc591e040d6ac58b38be56d49c01ae82f5f75": true, | ||
"68bf73b52b6b0c4085a77e62baf9cc51ec9e147fd56f5477be802c9f27cdee09": true, | ||
"267e4ca018b0d9014b755a2caefb10daec750d29a7c127d9747dab1ec4ebb8ad": true | ||
} |
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,29 @@ | ||
## 結論 | ||
|
||
|
||
|
||
## 概要 | ||
|
||
|
||
|
||
### What - 何をするのか | ||
|
||
### Why - なぜ行うのか | ||
|
||
### how - どのように | ||
|
||
### Where - どこに | ||
|
||
### Who - 誰のために | ||
|
||
### When - いつまでに | ||
|
||
|
||
--- | ||
|
||
## マージする前にチェック | ||
|
||
- [ ] テストをパスしている | ||
- [ ] Lint チェックをパスしている | ||
- [ ] snapshot の差異を確認した | ||
|
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,13 @@ | ||
# React Native アプリテンプレート | ||
|
||
React Native + Expo でアプリを素早く作成するためのテンプレート。 | ||
このリポジトリから新しいリポジトリを作成して、開発する。 | ||
|
||
## 設定済みの機能 | ||
|
||
|
||
|
||
## Author | ||
|
||
[twitter @honmushi](https://twitter.com/koshihonmushi) | ||
[honmushi.blog](https://honmushi.com/profile/) |
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,77 @@ | ||
name: Lint & Danger | ||
|
||
on: | ||
push: | ||
branches: | ||
- "template" | ||
#- "**" | ||
#- "!develop" | ||
#- "!renovate/**" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci-skip-check: | ||
runs-on: ubuntu-latest | ||
if: "! contains(github.event.head_commit.message, '[ci skip]')" | ||
steps: | ||
- run: echo "${{ github.event.head_commit.message }}" | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
needs: ci-skip-check | ||
timeout-minutes: 4 | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "12.13.1" | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/node_modules | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Run lint | ||
run: npm run lint | ||
|
||
danger: | ||
runs-on: ubuntu-latest | ||
needs: ci-skip-check | ||
timeout-minutes: 4 | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "12.13.1" | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/node_modules | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Danger | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./node_modules/.bin/danger ci |
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,60 @@ | ||
name: CI Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- "template" | ||
# - "**" | ||
# - "!develop" | ||
# - "!renovate/**" | ||
# schedule: | ||
# - cron: '0 15 * * 1' | ||
|
||
# Triggers the workflow on push or pull request events but only for the develop branch | ||
# pull_request: | ||
# branches: [ develop ] | ||
# push: | ||
# branches: [ develop ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci-skip-check: | ||
runs-on: ubuntu-latest | ||
if: "! contains(github.event.head_commit.message, '[ci skip]')" | ||
steps: | ||
- run: echo "${{ github.event.head_commit.message }}" | ||
|
||
jest: | ||
runs-on: ubuntu-latest | ||
needs: ci-skip-check | ||
timeout-minutes: 4 | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "12.13.1" | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/node_modules | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Run jest | ||
run: npm run test:ci | ||
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
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,23 @@ | ||
# osX | ||
.DS_Store | ||
|
||
# node | ||
node_modules/ | ||
npm-debug.* | ||
yarn-error.log | ||
|
||
# jest | ||
coverage | ||
|
||
# detox | ||
__artifacts__ | ||
|
||
# expo | ||
.expo/* | ||
*.jks | ||
*.p8 | ||
*.p12 | ||
*.key | ||
*.mobileprovision | ||
*.orig.* | ||
bin/ |
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 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"jsxBracketSameLine": true, | ||
"trailingComma": "es5", | ||
"semi": true, | ||
"arrowParens": "always", | ||
} |
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 @@ | ||
{} |
Oops, something went wrong.