Skip to content

Commit 72b1982

Browse files
Merge branch 'thecodingmachine:master' into master
2 parents dca4209 + ef1364b commit 72b1982

34 files changed

+5029
-3417
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

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

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 🐛 Bug Report
2+
description: Report a reproducible bug on this React Native Boilerplate.
3+
labels: [ ":bug: bug" ]
4+
title: "[BUG]: "
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
⚠️ Please provide all the information requested. ⚠️
10+
- type: checkboxes
11+
id: environment
12+
attributes:
13+
label: react-native environment setup
14+
options:
15+
- label: I verified that I have not react-native-cli installed globally and be up to date about the React Native environment setup.
16+
required: true
17+
- type: textarea
18+
id: description
19+
attributes:
20+
label: Description
21+
description: Please provide a clear and concise description of what the bug is. Include screenshots and code snippet if needed.
22+
validations:
23+
required: true
24+
- type: input
25+
id: version
26+
attributes:
27+
label: Version
28+
description: What boilerplate version does this appear on?
29+
validations:
30+
required: true
31+
- type: checkboxes
32+
id: device
33+
attributes:
34+
label: On which OS this issue appear on?
35+
options:
36+
- label: IOS
37+
- label: Android
38+
- type: input
39+
id: os
40+
attributes:
41+
label: Desktop OS
42+
description: What is the OS of your machine?
43+
validations:
44+
required: true

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 💡 Feature request
2+
description: Suggest an idea for this project.
3+
labels: [ "💡 feature request/idea" ]
4+
title: "[NEW FEATURE REQUEST/IDEA]: "
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
ℹ️️ We want a simple and easy to use boilerplate with the best community ! So if you have an idea of a new feature you're in the right space !
10+
- type: textarea
11+
id: issue
12+
attributes:
13+
label: Is your feature request related to a problem?
14+
description: Please provide a clear and concise description of what the problem is. Include screenshots and code snippet if needed.
15+
placeholder: I'm always frustrated when [...]
16+
- type: textarea
17+
id: solution
18+
attributes:
19+
label: Describe the solution you'd like
20+
description: Please provide a clear and concise solution. Include screenshots and code snippet if needed.
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: alternatives
25+
attributes:
26+
label: Describe alternatives you've considered.
27+
description: Please provide a clear and concise alternatives. Include screenshots and code snippet if needed.

.github/stale.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
daysUntilStale: 20
2+
daysUntilClose: 7
3+
exemptLabels:
4+
- ":bulb: feature request/idea"
5+
- ":bug: bug"
6+
- ":white_check_mark: PR accepted"
7+
staleLabel: 💤 stale
8+
markComment: >
9+
This issue has been automatically marked as stale because it has not had
10+
recent activity. It will be closed if no further activity occurs. Thank you
11+
for your contributions.
12+
closeComment: false

.github/workflows/CD.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: CD workflow to NPM publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
if: "!github.event.release.prerelease"
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
ref: ${{ github.event.release.target_commitish }}
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 14
18+
- run: |
19+
git config --global user.name "JeremyDolle"
20+
git config --global user.email "[email protected]"
21+
npm --no-git-tag-version version ${{ github.event.release.tag_name }}
22+
- name: Install dependencies
23+
run: |
24+
if [ -e yarn.lock ]; then
25+
yarn install --frozen-lockfile
26+
elif [ -e package-lock.json ]; then
27+
npm ci
28+
else
29+
npm i
30+
fi
31+
- uses: JS-DevTools/npm-publish@v1
32+
with:
33+
token: ${{ secrets.NPM_TOKEN }}
34+
- name: Commit and push
35+
run: |
36+
git add .
37+
git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
38+
git push
39+
env:
40+
github-token: ${{ secrets.GITHUB_TOKEN }}
41+
publish-candidate:
42+
if: "github.event.release.prerelease"
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v2
46+
with:
47+
ref: ${{ github.event.release.target_commitish }}
48+
- uses: actions/setup-node@v1
49+
with:
50+
node-version: 14
51+
- run: |
52+
git config --global user.name "JeremyDolle"
53+
git config --global user.email "[email protected]"
54+
npm --no-git-tag-version version ${{ github.event.release.tag_name }}
55+
- name: Install dependencies
56+
run: |
57+
if [ -e yarn.lock ]; then
58+
yarn install --frozen-lockfile
59+
elif [ -e package-lock.json ]; then
60+
npm ci
61+
else
62+
npm i
63+
fi
64+
- uses: JS-DevTools/npm-publish@v1
65+
with:
66+
token: ${{ secrets.NPM_TOKEN }}
67+
tag: ${{ github.event.release.tag_name }}
68+
- name: Commit and push
69+
run: |
70+
git add .
71+
git commit -am "🏷️(version) Update boilerplate to rc version ${{ github.event.release.tag_name }}"
72+
git push
73+
env:
74+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v1
1515
- uses: actions/setup-node@v1
1616
with:
17-
node-version: '12.x'
17+
node-version: '14.x'
1818
- name: Test Build
1919
run: |
2020
cd documentation
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v1
2828
- uses: actions/setup-node@v1
2929
with:
30-
node-version: '12.x'
30+
node-version: '14.x'
3131
- name: Add key to allow access to repository
3232
env:
3333
SSH_AUTH_SOCK: /tmp/ssh_agent.sock

.husky/prepare-commit-msg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
echo "Husky: prepare-commit-msg"
5+
exec < /dev/tty && yarn commit --hook || true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you love this boilerplate, give us a star, you will be a ray of sunshine in o
2323

2424
## Requirements
2525

26-
Node 10 or greater is required. Development for iOS requires a Mac and Xcode 9.4 or up, and will target iOS 9 and up.
26+
Node 12 or greater is required. Development for iOS requires a Mac and Xcode 10 or up, and will target iOS 11 and up.
2727

2828
You also need to install the dependencies required by React Native.
2929
Go to the [React Native environment setup](https://reactnative.dev/docs/environment-setup), then select `React Native CLI Quickstart` tab.

commitlint.config.js

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
module.exports = {
2+
parserPreset: 'conventional-changelog-conventionalcommits',
3+
rules: {
4+
'body-leading-blank': [1, 'always'],
5+
'body-max-line-length': [2, 'always', 100],
6+
'footer-leading-blank': [1, 'always'],
7+
'footer-max-line-length': [2, 'always', 100],
8+
'header-max-length': [2, 'always', 100],
9+
'subject-case': [
10+
2,
11+
'never',
12+
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
13+
],
14+
'subject-empty': [2, 'never'],
15+
'subject-full-stop': [2, 'never', '.'],
16+
'type-case': [2, 'always', 'lower-case'],
17+
'type-empty': [2, 'never'],
18+
'type-enum': [
19+
2,
20+
'always',
21+
[
22+
'✨',
23+
'🐛',
24+
'📚',
25+
'💎',
26+
'♻️',
27+
'🐙',
28+
],
29+
],
30+
},
31+
prompt: {
32+
questions: {
33+
type: {
34+
description: "Select the TYPE of change that you're committing",
35+
enum: {
36+
'✨': {
37+
description: 'A new feature',
38+
title: 'Features',
39+
emoji: '✨',
40+
},
41+
'🐛': {
42+
description: 'A bug fix',
43+
title: 'Bug Fixes',
44+
emoji: '🐛',
45+
},
46+
'📚': {
47+
description: 'Documentation only changes',
48+
title: 'Documentation',
49+
emoji: '📚',
50+
},
51+
'💎': {
52+
description:
53+
'Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)',
54+
title: 'Code Styles',
55+
emoji: '💎',
56+
},
57+
'♻️': {
58+
description:
59+
'A code change that neither fixes a bug nor adds a feature',
60+
title: 'Code Refactoring',
61+
emoji: '♻️',
62+
},
63+
'🐙': {
64+
description: 'Changes to the git configuration files and scripts (example scope: GitHub Actions)',
65+
title: 'Github configuration',
66+
emoji: '🐙',
67+
},
68+
},
69+
},
70+
scope: {
71+
description:
72+
'What is the SCOPE of this change (e.g. component or file name)',
73+
},
74+
subject: {
75+
description:
76+
'Write a short, imperative tense DESCRIPTION of the change',
77+
},
78+
body: {
79+
description: 'Provide a longer description of the change',
80+
},
81+
isBreaking: {
82+
description: 'Are there any breaking changes?',
83+
},
84+
breakingBody: {
85+
description:
86+
'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself',
87+
},
88+
breaking: {
89+
description: 'Describe the breaking changes',
90+
},
91+
isIssueAffected: {
92+
description: 'Does this change affect any open issues?',
93+
},
94+
issuesBody: {
95+
description:
96+
'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself',
97+
},
98+
issues: {
99+
description: 'Add issue references (e.g. "fix #123", "re #123".)',
100+
},
101+
},
102+
},
103+
};

0 commit comments

Comments
 (0)