Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove existing code * Copy files over from mobile repo - Recreate .gitignore - Remove package-cleanup script * Add ci config * Fix build - Re-add dot files - Split tests in CI config - Add test to verify generators - Remove app-key.gen.js file - Regenerate stories.gen.js/templates.gen.js * Fix templates generator script
- Loading branch information
1 parent
351e6df
commit d9f36b9
Showing
331 changed files
with
19,451 additions
and
4,251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"presets": ["babel-preset-expo"], | ||
"env": { | ||
"development": { | ||
"plugins": ["transform-react-jsx-source"] | ||
} | ||
} | ||
"presets": ["react-native"], | ||
"plugins": [ | ||
["module-resolver", { | ||
"root": ["."], | ||
"alias": {"hyperview": "./"} | ||
}] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: 2 | ||
|
||
jobs: | ||
test: | ||
docker: | ||
- image: circleci/node:8.7 | ||
steps: | ||
- checkout | ||
- run: yarn | ||
- run: yarn test:generators | ||
- run: yarn test:flow | ||
- run: yarn test:lint | ||
- run: yarn test:render | ||
- run: yarn test:unit | ||
|
||
workflows: | ||
version: 2 | ||
test-pr: | ||
jobs: | ||
- test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
flow-typed | ||
*.gen.js | ||
website/ | ||
/App.js | ||
/VisibilityDetectingView.js | ||
/mask.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"extends": "plugin:instawork/recommended", | ||
"plugins": [ "instawork" ], | ||
"rules": { | ||
"instawork/props-no-function": "error", | ||
"no-underscore-dangle": ["error"], | ||
"import/no-extraneous-dependencies": [ | ||
"warn", | ||
{ | ||
"devDependencies": [ | ||
"**/*.stories.js", | ||
"**/stories/*.js", | ||
"**/*.test.js", | ||
"**/stories.js", | ||
"**/scripts/*", | ||
"**/scripts/*/*", | ||
"**/scripts/*/*/*", | ||
"**/storybook/*", | ||
"**/test", | ||
"**/test/*", | ||
"**/test/**/*" | ||
] | ||
} | ||
], | ||
"import/no-internal-modules": [ | ||
"warn", { | ||
"allow": [ | ||
"hyperview/**", | ||
"react-native/Libraries/StyleSheet/StyleSheetTypes" | ||
] | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ "**/types.js" ], | ||
"rules": { | ||
"no-use-before-define": "off", | ||
"max-len": "off" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[ignore] | ||
; We fork some components by platform | ||
.*/*[.]android.js | ||
|
||
; Ignore unexpected extra "@providesModule" | ||
.*/node_modules/.*/node_modules/fbjs/.* | ||
|
||
; Ignore these libraries | ||
.*/node_modules/react-navigation/.* | ||
|
||
; Ignore duplicate module providers | ||
; For RN Apps installed via npm, "Libraries" folder is inside | ||
; "node_modules/react-native" but in the source repo it is in the root | ||
.*/Libraries/react-native/React.js | ||
|
||
; Ignore metro | ||
.*/node_modules/metro/.* | ||
App.js | ||
|
||
[include] | ||
src/Services/ | ||
|
||
[libs] | ||
node_modules/react-native/Libraries/react-native/react-native-interface.js | ||
node_modules/react-native/flow/ | ||
node_modules/react-native/flow-github/ | ||
|
||
[options] | ||
emoji=false | ||
|
||
module.system=haste | ||
|
||
munge_underscores=true | ||
|
||
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' | ||
module.name_mapper='^hyperview/\(.*\)$' -> '<PROJECT_ROOT>/\1' | ||
|
||
module.file_ext=.js | ||
module.file_ext=.jsx | ||
module.file_ext=.json | ||
module.file_ext=.native.js | ||
|
||
suppress_type=$FlowIssue | ||
suppress_type=$FlowFixMe | ||
suppress_type=$FlowFixMeProps | ||
suppress_type=$FlowFixMeState | ||
|
||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) | ||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ | ||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy | ||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError | ||
|
||
unsafe.enable_getters_and_setters=true | ||
esproposal.export_star_as=enable | ||
|
||
[version] | ||
^0.61.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
.DS_Store | ||
yarn-error.log | ||
|
||
# expo | ||
.expo/ | ||
node_modules | ||
|
||
# dependencies | ||
/node_modules | ||
lib/core/metadata.js | ||
lib/core/MetadataBlog.js | ||
|
||
# misc | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
storybook/app-key.gen.js | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
website/translated_docs | ||
website/build/ | ||
website/yarn.lock | ||
website/node_modules | ||
website/i18n/* |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.