Skip to content

Commit

Permalink
Prepare public launch (#1)
Browse files Browse the repository at this point in the history
* 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
flochtililoch committed Nov 29, 2018
1 parent 351e6df commit d9f36b9
Show file tree
Hide file tree
Showing 331 changed files with 19,451 additions and 4,251 deletions.
13 changes: 7 additions & 6 deletions .babelrc
@@ -1,8 +1,9 @@
{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": ["transform-react-jsx-source"]
}
}
"presets": ["react-native"],
"plugins": [
["module-resolver", {
"root": ["."],
"alias": {"hyperview": "./"}
}]
]
}
20 changes: 20 additions & 0 deletions .circleci/config.yml
@@ -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
6 changes: 6 additions & 0 deletions .eslintignore
@@ -0,0 +1,6 @@
flow-typed
*.gen.js
website/
/App.js
/VisibilityDetectingView.js
/mask.js
43 changes: 43 additions & 0 deletions .eslintrc
@@ -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"
}
}
]
}
57 changes: 57 additions & 0 deletions .flowconfig
@@ -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
24 changes: 11 additions & 13 deletions .gitignore
@@ -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/*
1 change: 0 additions & 1 deletion .watchmanconfig

This file was deleted.

0 comments on commit d9f36b9

Please sign in to comment.