Skip to content

Commit 7b5cc90

Browse files
authored
Migrate [SwitchToggle] to v2 (#43)
Upgrade reliability and maintenance structures.
1 parent 1797f40 commit 7b5cc90

Some content is hidden

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

74 files changed

+8049
-3917
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
node_modules
2-
Example/__tests__

.eslintrc.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
module.exports = {
2-
extends: 'standard',
3-
env: {
4-
browser: true
5-
},
2+
root: true,
3+
extends: '@dooboo/eslint-config',
64
rules: {
7-
'no-unused-vars': 0,
8-
'comma-dangle': ['error', 'always-multiline'],
9-
'semi': [2, 'always'],
10-
'arrow-parens': ['error', 'always'],
11-
'space-before-function-paren': ['error', 'never'],
12-
'no-new-object': 'error',
13-
'no-array-constructor': 'error'
5+
'eslint-comments/no-unlimited-disable': 0,
6+
'eslint-comments/no-unused-disable': 0,
147
},
15-
'parser': 'babel-eslint'
168
};
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
31+
32+
**Smartphone (please complete the following information):**
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
38+
39+
**Additional context**
40+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Milestone
3+
about: Features or requirements in our milestone which will be funded.
4+
title: ''
5+
labels: milestone
6+
assignees: ''
7+
---
8+
9+
**Related to plan**
10+
Is the issue dedicated to plan? Otherwise please use other issue boards or [stackoverflow](https://stackoverflow.com).

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Description
2+
3+
_Replace this paragraph with a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change. If you're changing visual properties, consider including before/after screenshots (and runnable code snippets to reproduce them)._
4+
5+
## Related Issues
6+
7+
_Replace this paragraph with a list of issues related to this PR from our [issue database]. Indicate, which of these issues are resolved or fixed by this PR._
8+
9+
## Tests
10+
11+
I added the following tests:
12+
13+
_Replace this with a list of the tests that you added as part of this PR. A change in behavior with no test covering it
14+
will likely get reverted accidentally sooner or later. PRs must include tests for all changed/updated/fixed behaviors. See [Test Coverage](https://app.codecov.io/gh/hyochan/react-native-masonry-list)._
15+
16+
## Checklist
17+
18+
Before you create this PR confirms that it meets all requirements listed below by checking the relevant checkboxes (`[x]`). This will ensure a smooth and quick review process.
19+
20+
- [ ] I read the [Contributor Guide](https://github.com/hyochan/react-native-masonry-list/blob/master/CONTRIBUTING.md) and followed the process outlined there for submitting PRs.
21+
- [ ] Run `yarn lint && yarn tsc`
22+
- [ ] Run `yarn test` or `yarn test -u` if you need to update snapshot.
23+
- [ ] I am willing to follow-up on review comments in a timely manner.

.github/stale.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
# Number of days of inactivity before an issue becomes stale
3+
daysUntilStale: 90
4+
# Number of days of inactivity before a stale issue is closed
5+
daysUntilClose: 30
6+
# Issues with these labels will never be considered stale
7+
exemptLabels:
8+
- Good first issue
9+
- For Discussion
10+
- Core Team
11+
- 'Help Wanted :octocat:'
12+
- ':warning:Regression'
13+
- ':clock1:PR Pending'
14+
# Label to use when marking an issue as stale
15+
staleLabel: Stale
16+
# Comment to post when marking an issue as stale. Set to `false` to disable
17+
markComment: >
18+
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs.
19+
You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open.
20+
Thank you for your contributions.
21+
# Comment to post when closing a stale issue. Set to `false` to disable
22+
closeComment: >
23+
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
24+
only: issues

.github/workflows/ci-example.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- 'Example/**'
8+
pull_request:
9+
types: [opened, synchronize, reopened]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Install modules
19+
run: yarn
20+
21+
- name: Check linting
22+
run: yarn lint
23+
24+
- name: Build typescript
25+
run: yarn build

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Install modules
17+
run: yarn
18+
19+
- name: Check linting
20+
run: yarn lint
21+
22+
- name: Build typescript
23+
run: yarn build
24+
25+
- name: Remove dist (to test `tsx`)
26+
run: rm -rf ./lib
27+
28+
- name: Test
29+
run: yarn test --coverage
30+
31+
- name: Upload coverage to Codecov
32+
uses: codecov/codecov-action@v1
33+
with:
34+
token: ${{ secrets.CODECOV_TOKEN }}
35+
directory: ./coverage/
36+
flags: unittests
37+
name: codecov-umbrella
38+
fail_ci_if_error: false
39+
path_to_write_report: ./coverage/codecov_report.gz
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: publish-package
2+
3+
on:
4+
release:
5+
types: [created]
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
# Setup .npmrc file to publish to npm
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: '12.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
scope: '@react-native-seoul'
17+
- run: yarn
18+
- run: yarn build
19+
- run: yarn publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)