Skip to content

Commit 33b0cb1

Browse files
committed
✨ initial project
1 parent 95706aa commit 33b0cb1

26 files changed

+9843
-0
lines changed

.babelrc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"presets": [
3+
"@babel/flow",
4+
[
5+
"@babel/env",
6+
{
7+
"targets": {
8+
"node": "12.0"
9+
}
10+
}
11+
]
12+
],
13+
"plugins": [
14+
"@babel/plugin-transform-runtime",
15+
"@babel/plugin-transform-regenerator",
16+
"@babel/plugin-proposal-optional-chaining",
17+
"@babel/plugin-proposal-nullish-coalescing-operator",
18+
"lodash",
19+
"@babel/plugin-transform-react-jsx"
20+
],
21+
"env": {
22+
"production": {
23+
"comments": false,
24+
"compact": "auto",
25+
"minified": true,
26+
"ignore": [
27+
"**/__tests__/",
28+
"**/__mocks__/",
29+
"**/*.test.js"
30+
]
31+
}
32+
}
33+
}

.circleci/config.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Javascript Node CircleCI 2.1 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2.1
6+
jobs:
7+
build:
8+
docker:
9+
# Specify the version you desire here
10+
- image: circleci/node:12.10.0
11+
12+
working_directory: ~/repo
13+
14+
steps:
15+
- checkout
16+
17+
# Download and cache de¯pendencies
18+
- restore_cache:
19+
keys:
20+
- v1-dependencies-{{ checksum "package.json" }}
21+
# fallback to using the latest cache if no exact match is found
22+
- v1-dependencies-
23+
24+
- run:
25+
name: Install NPM packages
26+
command: yarn
27+
28+
# Save cache
29+
- save_cache:
30+
paths:
31+
- node_modules
32+
key: v1-dependencies-{{ checksum "package.json" }}
33+
34+
- run:
35+
name: Run tests
36+
command: yarn test --ci --bail
37+
38+
- run:
39+
name: Upload coverage
40+
command: |
41+
bash <(curl -s https://codecov.io/bash)
42+
43+
- run:
44+
name: Build application
45+
command: NODE_ENV=production yarn build
46+
47+
# Copy lib to artifacts
48+
- store_artifacts:
49+
path: ~/repo/lib
50+
destination: /lib
51+
52+
# Copy coverage to artifacts
53+
- store_artifacts:
54+
path: ~/repo/coverage
55+
destination: /coverage
56+
57+
# Copy code report to artifacts
58+
- store_artifacts:
59+
path: ~/repo/code-report
60+
destination: /code-report

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/lib
2+
/flow-typed
3+
/coverage

.eslintrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": [
3+
"airbnb",
4+
"plugin:flowtype/recommended",
5+
"prettier",
6+
"prettier/flowtype"
7+
],
8+
"parser": "babel-eslint",
9+
"env": {
10+
"browser": true,
11+
"es6": true,
12+
"node": true,
13+
"jest": true
14+
},
15+
"plugins": [
16+
"flowtype",
17+
"prettier"
18+
]
19+
}

.flowconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[declarations]
2+
3+
4+
[include]
5+
6+
7+
[ignore]
8+
<PROJECT_ROOT>/lib
9+
<PROJECT_ROOT>/build
10+
<PROJECT_ROOT>/node_modules
11+
12+
[untyped]
13+
14+
15+
[libs]
16+
./flow
17+
18+
[lints]
19+
20+
21+
[options]
22+
23+
24+
[version]
25+

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Main Code owner
2+
* @a-tokyo

.github/CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at ahmed.tokyo1@gmail.com. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

.github/ISSUE_TEMPLATE.md.md

Whitespace-only changes.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
### Description:
2+
-

0 commit comments

Comments
 (0)