Skip to content

Commit 9301e82

Browse files
committed
feat: init feature, shamelessly copy from haul
1 parent ca00002 commit 9301e82

File tree

304 files changed

+35666
-606
lines changed

Some content is hidden

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

304 files changed

+35666
-606
lines changed

.flowconfig

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
[ignore]
2-
3-
[include]
1+
[version]
2+
0.57.2
43

5-
[libs]
6-
7-
[lints]
4+
[ignore]
5+
.*/example
6+
.*/node_modules/react-native
7+
.*/node_modules/fbjs/*
8+
<PROJECT_ROOT>/fixtures/.*
89

910
[options]
11+
module.name_mapper='^jest/\(.*\)$' -> '<PROJECT_ROOT>/jest/\1.js'

packages/qix/.babelrc

-9
This file was deleted.

packages/qix/.circleci/config.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
version: 2
2+
jobs:
3+
# Testing Node 8; running Yarn, ESLint, Flow and Jest
4+
test-node-8:
5+
working_directory: ~/haul
6+
docker:
7+
- image: circleci/node:8.6.0
8+
steps:
9+
- checkout
10+
- restore_cache:
11+
keys:
12+
- node8-dependencies-{{ checksum "package.json" }}
13+
- node8-dependencies
14+
- run: yarn install
15+
- save_cache:
16+
paths:
17+
- node_modules
18+
key: node8-dependencies-{{ checksum "package.json" }}
19+
- run: yarn test:ci
20+
21+
# Testing Node 4; running just Jest, as we develop on Node >=6.
22+
test-node-4:
23+
working_directory: ~/haul
24+
docker:
25+
- image: circleci/node:4.8.4
26+
steps:
27+
- checkout
28+
- restore_cache:
29+
keys:
30+
- node4-dependencies-{{ checksum "package.json" }}
31+
- node4-dependencies
32+
- run: |
33+
(export PKG=eslint-config-callstack-io; npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG")
34+
- run: npm install
35+
- save_cache:
36+
paths:
37+
- node_modules
38+
key: node4-dependencies-{{ checksum "package.json" }}
39+
# We use yarn to install integration_tests fixtures
40+
- run: |
41+
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.28.4
42+
export PATH="$HOME/.yarn/bin:$PATH"
43+
- run: npm run jest
44+
45+
# Workflows enables us to run multiple jobs in parallel
46+
workflows:
47+
version: 2
48+
node-8:
49+
jobs:
50+
- test-node-8
51+
# Disable Node 4 because Haul is very buggy there :(
52+
# node-4:
53+
# jobs:
54+
# - test-node-4

packages/qix/.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
flow-typed/**
2+
coverage/**
3+
vendor/**
4+
fixtures/**

packages/qix/.flowconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[version]
2+
0.57.2
3+
4+
[ignore]
5+
.*/example
6+
.*/node_modules/react-native
7+
.*/node_modules/fbjs/*
8+
<PROJECT_ROOT>/fixtures/.*
9+
10+
[options]
11+
module.name_mapper='^jest/\(.*\)$' -> '<PROJECT_ROOT>/jest/\1.js'
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!---
2+
BEFORE YOU SUBMIT please search open/closed issues since someone might have asked the same thing before!
3+
-->
4+
5+
### Current Behavior
6+
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
7+
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
8+
9+
### Expected Behavior
10+
<!--- If you're describing a bug, tell us what should happen -->
11+
<!--- If you're suggesting a change/improvement, tell us how it should work -->
12+
13+
### Haul Configuration (webpack.haul.js)
14+
<!--- If describing a bug, tell us what your Haul configuration looks like -->
15+
16+
### Your Environment
17+
<!--- Include as many relevant details about the environment you experienced the bug in -->
18+
19+
| software | version
20+
| ---------------- | -------
21+
| Haul |
22+
| react-native |
23+
| node |
24+
| npm or yarn |

packages/qix/.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*~
2+
.DS_Store
3+
4+
*.log
5+
/node_modules
6+
fixtures/**/node_modules
7+
8+
.vscode/
9+
jsconfig.json
10+
.idea
11+
dist
12+
/coverage

packages/qix/.npmignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# root dotfiles
2+
/.*
3+
4+
# tests
5+
__tests__
6+
/integration_tests
7+
8+
# docs and tooling
9+
/docs
10+
/flow-typed
11+
/jest

packages/qix/CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
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 [email protected]. 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 [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

packages/qix/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Mike Grabowski
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)