Skip to content

Commit

Permalink
Init react-native-macos project.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 1, 2018
1 parent f5cf189 commit 65152a1
Show file tree
Hide file tree
Showing 57 changed files with 6,279 additions and 4,451 deletions.
18 changes: 6 additions & 12 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
{
"presets": [
[
"latest", {
"es2015": {
"modules": false
}
}
],
"react",
"stage-0"
],
"presets": ["react-native"],
"plugins": [
"react-hot-loader/babel"
["module-resolver", {
"alias": {
"react-native": "react-native-macos",
}
}]
]
}
13 changes: 0 additions & 13 deletions .editorconfig

This file was deleted.

55 changes: 55 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js
.*/*[.]ios.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*

; 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 polyfills
.*/Libraries/polyfills/.*

; Ignore metro
.*/node_modules/metro/.*

[include]

[libs]
node_modules/react-native-macos/Libraries/react-native/react-native-interface.js
node_modules/react-native-macos/flow
flow-github/

[options]
emoji=true

module.system=haste

munge_underscores=true
module.name_mapper='react-native' -> 'react-native-macos'
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.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

[version]
^0.63.0
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pbxproj -text
69 changes: 47 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,53 @@
# Logs
logs
out
dist
*.log
npm-debug.log*
# OSX
#
.DS_Store

# Runtime data
pids
*.pid
*.seed
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# Dependency directories
node_modules
jspm_packages
# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# Optional npm cache directory
.npm
# BUCK
buck-out/
\.buckd/
*.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

#IDE
.idea
*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"javascript.validate.enable": false
}
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

42 changes: 0 additions & 42 deletions README.md

This file was deleted.

12 changes: 12 additions & 0 deletions __tests__/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import 'react-native';
import React from 'react';
import App from '../App';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

it('renders correctly', () => {
const tree = renderer.create(
<App />
);
});
12 changes: 12 additions & 0 deletions __tests__/index.macos.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import 'react-native';
import React from 'react';
import Index from '../index.macos.js';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
Loading

0 comments on commit 65152a1

Please sign in to comment.