Skip to content

Commit b7cf14f

Browse files
committed
feat(index): add createSharedContext function
1 parent 556e871 commit b7cf14f

22 files changed

+16457
-1
lines changed

.babelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"amex"
4+
]
5+
}

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "amex"
3+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report for create-shared-react-context
4+
---
5+
6+
# 🐞 Bug Report
7+
8+
## Describe the bug
9+
10+
A clear and concise description of what the bug is.
11+
12+
## To Reproduce
13+
14+
Steps to reproduce the behavior, please provide code snippets or a repository:
15+
16+
1. Go to '...'
17+
2. Click on '....'
18+
3. Scroll down to '....'
19+
4. See error
20+
21+
## Expected behavior
22+
23+
A clear and concise description of what you expected to happen.
24+
25+
## Screenshots
26+
27+
If applicable, add screenshots to help explain your problem.
28+
29+
## System information
30+
31+
- OS: [e.g. macOS, Windows]
32+
- Browser (if applies) [e.g. chrome, safari]
33+
- Version of faux-cdn: [e.g. 5.0.0]
34+
- Node version:[e.g 10.15.1]
35+
36+
## Additional context
37+
38+
Add any other context about the problem here.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Feature request
3+
about: Create a feature request for create-shared-react-context
4+
---
5+
6+
# 💡 Feature request
7+
8+
## Is your feature request related to a problem? Please describe
9+
10+
A clear and concise description of what you want and what your use case is.
11+
12+
## Example
13+
14+
Please include a basic code example of the new feature. Skip this section if not applicable.
15+
16+
## Describe the solution you'd like
17+
18+
A clear and concise description of what you want to happen.
19+
20+
## Describe alternatives you've considered
21+
22+
A clear and concise description of any alternative solutions or features you've considered.
23+
24+
## Additional context
25+
26+
Add any other context or screenshots about the feature request here.💡

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
test-results
3+
.jest-cache

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.babelrc
2+
.eslintrc.json
3+
__tests__
4+
node_modules
5+
test-results
6+
.jest-cache
7+
*.md
8+
commitlint.config.js
9+
CODEOWNERS
10+
.travis.yml
11+
.github

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: node_js
2+
node_js:
3+
- "12"
4+
- "10"
5+
before_install:
6+
# Create a master branch for commitlint
7+
# https://github.com/conventional-changelog/commitlint/issues/6
8+
- git remote set-branches origin master && git fetch
9+
jobs:
10+
include:
11+
# Define the release stage that runs semantic-release
12+
- stage: release
13+
node_js:
14+
- 10
15+
- 12
16+
deploy:
17+
on:
18+
branch: master
19+
provider: script
20+
skip_cleanup: true
21+
script:
22+
- npx semantic-release

CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://help.github.com/en/articles/about-code-owners
2+
3+
* @americanexpress/one

CODE_OF_CONDUCT.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
### American Express Open Source Community Guidelines
2+
3+
#### Last Modified: January 29, 2016
4+
5+
Welcome to the American Express Open Source Community on GitHub! These American Express Community Guidelines outline our expectations for Github participating members within the American Express community, as well as steps for reporting unacceptable behavior. We are committed to providing a welcoming and inspiring community for all and expect our community Guidelines to be honored.
6+
7+
**IMPORTANT REMINDER:**
8+
9+
When you visit American Express on any third party sites such as GitHub your activity there is subject to that site’s then current terms of use., along with their privacy and data security practices and policies. The Github platform is not affiliated with us and may have practices and policies that are different than are our own.
10+
Please note, American Express is not responsible for, and does not control, the GitHub site’s terms of use, privacy and data security practices and policies. You should, therefore, always exercise caution when posting, sharing or otherwise taking any action on that site and, of course, on the Internet in general.
11+
Our open source community strives to:
12+
- **Be friendly and patient**.
13+
- **Be welcoming**: We strive to be a community that welcomes and supports people of all
14+
backgrounds and identities. This includes, but is not limited to members of any race, ethnicity, culture, national origin, color, immigration status, social and economic class, educational level, sex, sexual orientation, gender identity and expression, age, size, family status, political belief, religion, and mental and physical ability.
15+
- **Be considerate**: Your work will be used by other people, and you in turn will depend on the work of others. Any decision you take will affect users and colleagues, and you should take those consequences into account when making decisions. Remember that we're a world-wide community, so you might not be communicating in someone else's primary language.
16+
- **Be respectful**: Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important to remember that a community where people feel uncomfortable or threatened is not a productive one.
17+
- **Be careful in the words that we choose**: We are a community of professionals, and we conduct ourselves professionally. Be kind to others. Do not insult or put down other participants. Harassment and other exclusionary behavior aren't acceptable.
18+
- **Try to understand why we disagree**: Disagreements, both social and technical, happen all the time. It is important that we resolve disagreements and differing views constructively. Remember that we’re all different people. The strength of our community comes from its diversity, people from a wide range of backgrounds. Different people have different perspectives on issues. Being unable to understand why someone holds a viewpoint doesn’t mean that they’re wrong. Don’t forget that it is human to err and blaming each other doesn’t get us anywhere. Instead, focus on helping to resolve issues and learning from mistakes.
19+
20+
### Definitions
21+
Harassment includes, but is not limited to:
22+
- Offensive comments related to gender, gender identity and expression, sexual orientation, disability, mental illness, neuro(a)typicality, physical appearance, body size, race, age, regional discrimination, political or religious affiliation
23+
- Unwelcome comments regarding a person’s lifestyle choices and practices, including those related to food, health, parenting, drugs, and employment
24+
- Deliberate misgendering. This includes deadnaming or persistently using a pronoun that does not correctly reflect a person's gender identity. You must address people by the name they give you when not addressing them by their username or handle
25+
- Physical contact and simulated physical contact (eg, textual descriptions like “hug” or “backrub”) without consent or after a request to stop
26+
- Threats of violence, both physical and psychological
27+
- Incitement of violence towards any individual, including encouraging a person to commit suicide
28+
or to engage in self-harm
29+
- Deliberate intimidation
30+
- Stalking or following
31+
- Harassing photography or recording, including logging online activity for harassment purposes
32+
- Sustained disruption of discussion
33+
- Unwelcome sexual attention, including gratuitous or off-topic sexual images or behaviour
34+
- Pattern of inappropriate social contact, such as requesting/assuming inappropriate levels of
35+
intimacy with others
36+
- Continued one-on-one communication after requests to cease
37+
- Deliberate “outing” of any aspect of a person’s identity without their consent except as necessary
38+
to protect others from intentional abuse
39+
- Publication of non-harassing private communication
40+
41+
Our open source community prioritizes marginalized people’s safety over privileged people’s comfort. We will not act on complaints regarding:
42+
- ‘Reverse’ -isms, including ‘reverse racism,’ ‘reverse sexism,’ and ‘cisphobia’
43+
- Reasonable communication of boundaries, such as “leave me alone,” “go away,” or “I’m not
44+
discussing this with you”
45+
- Refusal to explain or debate social justice concepts
46+
- Communicating in a ‘tone’ you don’t find congenial
47+
- Criticizing racist, sexist, cissexist, or otherwise oppressive behavior or assumptions
48+
49+
### Diversity Statement
50+
We encourage everyone to participate and are committed to building a community for all. Although we will fail at times, we seek to treat everyone both as fairly and equally as possible. Whenever a participant has made a mistake, we expect them to take responsibility for it. If someone has been harmed or offended, it is our responsibility to listen carefully and respectfully, and do our best to right the wrong.
51+
52+
Although this list cannot be exhaustive, we explicitly honor diversity in age, gender, gender identity or expression, culture, ethnicity, language, national origin, political beliefs, profession, race, religion, sexual orientation, socioeconomic status, and technical ability. We will not tolerate discrimination based on any of the protected characteristics above, including participants with disabilities.
53+
54+
### Reporting Issues
55+
If you experience or witness unacceptable behavior—or have any other concerns—please report it by contacting us at opensource@aexp.com. All reports will be handled with discretion. In your report please include:
56+
- Your contact information.
57+
- Names (real, nicknames, or pseudonyms) of any individuals involved. If there are additional
58+
witnesses, please include them as well. Your account of what occurred, and if you believe the incident is ongoing. If there is a publicly available record (e.g. a mailing list archive or a public IRC logger), please include a link.
59+
- Any additional information that may be helpful.
60+
61+
After filing a report, a representative of our community will contact you personally, review the incident, follow up with any additional questions, and make a decision as to how to respond. If the person who is harassing you is part of the response team, they will recuse themselves from handling your incident. If the complaint originates from a member of the response team, it will be handled by a different member of the response team. We will respect confidentiality requests for the purpose of protecting victims of abuse.
62+
63+
### Removal of Posts
64+
We will not review every comment or post, but we reserve the right to remove any that violates these Guidelines or that, in our sole discretion, we otherwise consider objectionable and we may ban offenders from our community.
65+
66+
### Suspension/Termination/Reporting to Authority
67+
In certain instances, we may suspend, terminate or ban certain repeat offenders and/or those committing significant violations of these Guidelines. When appropriate, we may also, on our own or as required by the GitHub terms of use, be required to refer and/or work with GitHub and/or the appropriate authorities to review and/or pursue certain violations.
68+
69+
### Attribution & Acknowledgements
70+
These Guidelines have been adapted from the [Code of Conduct of the TODO group](http://todogroup.org/opencodeofconduct/). They are subject to revision by American Express and may be revised from time to time.
71+
72+
Thank you for your participation!

0 commit comments

Comments
 (0)