react-native/package.json

240 lines
6.8 KiB
JSON
Raw Normal View History

{
"name": "react-native",
"version": "1000.0.0",
2015-03-28 05:18:47 +00:00
"description": "A framework for building native apps using React",
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "git@github.com:facebook/react-native.git"
},
"engines": {
"node": ">=4"
},
"jest": {
"automock": true,
"transform": {
".*": "jest/preprocessor.js"
},
"setupFiles": [
"jest/setup.js"
],
"timers": "fake",
"moduleNameMapper": {
"^React$": "<rootDir>/Libraries/react-native/React.js",
"^image![a-zA-Z0-9$_-]+$": "GlobalImageStub",
"^[./a-zA-Z0-9$_-]+\\.png$": "RelativeImageStub"
},
"testPathIgnorePatterns": [
"/node_modules/",
"/website/",
"local-cli/generator/templates/"
],
"haste": {
"defaultPlatform": "ios",
"providesModuleNodeModules": [
"react-native",
"parse"
],
"platforms": [
"ios",
"android"
]
},
"modulePathIgnorePatterns": [
"Libraries/react-native/",
"/node_modules/(?!react|fbjs|react-native|parse|react-transform-hmr|core-js|promise)/",
"node_modules/react/node_modules/fbjs/",
"node_modules/react/lib/ReactDOM.js",
"node_modules/fbjs/lib/Map.js",
"node_modules/fbjs/lib/Promise.js",
"node_modules/fbjs/lib/fetch.js",
"node_modules/fbjs/lib/ErrorUtils.js",
"node_modules/fbjs/lib/URI.js",
"node_modules/fbjs/lib/Deferred.js",
"node_modules/fbjs/lib/PromiseMap.js",
"node_modules/fbjs/lib/UserAgent.js",
"node_modules/fbjs/lib/areEqual.js",
"node_modules/fbjs/lib/base62.js",
"node_modules/fbjs/lib/crc32.js",
"node_modules/fbjs/lib/everyObject.js",
"node_modules/fbjs/lib/fetchWithRetries.js",
"node_modules/fbjs/lib/filterObject.js",
"node_modules/fbjs/lib/flattenArray.js",
"node_modules/fbjs/lib/forEachObject.js",
"node_modules/fbjs/lib/isEmpty.js",
"node_modules/fbjs/lib/nullthrows.js",
"node_modules/fbjs/lib/removeFromArray.js",
"node_modules/fbjs/lib/resolveImmediate.js",
"node_modules/fbjs/lib/someObject.js",
"node_modules/fbjs/lib/sprintf.js",
"node_modules/fbjs/lib/xhrSimpleDataSerializer.js",
"downstream/core/CSSCore.js",
"downstream/core/TouchEventUtils.js",
"downstream/core/camelize.js",
"downstream/core/createArrayFromMixed.js",
"downstream/core/createNodesFromMarkup.js",
"downstream/core/dom/containsNode.js",
"downstream/core/dom/focusNode.js",
"downstream/core/dom/getActiveElement.js",
"downstream/core/dom/getUnboundedScrollPosition.js",
"downstream/core/dom/isNode.js",
"downstream/core/dom/isTextNode.js",
"downstream/core/emptyFunction.js",
"downstream/core/emptyObject.js",
"downstream/core/getMarkupWrap.js",
"downstream/core/hyphenate.js",
"downstream/core/hyphenateStyleName.js",
"downstream/core/invariant.js",
"downstream/core/nativeRequestAnimationFrame.js",
"downstream/core/toArray.js",
"node_modules/jest-cli",
"node_modules/react/dist",
"node_modules/fbjs/.*/__mocks__/",
"node_modules/fbjs/node_modules/",
"<rootDir>/website/"
],
2015-02-25 20:57:33 +00:00
"unmockedModulePathPatterns": [
"promise",
"source-map",
"fastpath",
"denodeify",
"fbjs",
"sinon"
]
},
"main": "Libraries/react-native/react-native.js",
"files": [
".flowconfig",
Consume Android artifacts from npm Summary: This lets us say goodbye to Maven Central. This will greatly simplify and speed up the release process as releasing Android artifacts to Maven Central adds a lot of [complexity](https://github.com/facebook/react-native/blob/master/Releases-publish.md) and delays the whole release by several hours when we have to wait for the artifacts to propagate. This diff assumes there's a local Maven repo at `node_modules/react-native/android`. The second part once this lands is to change our `release.sh` script to output the artifacts under `react-native/android` before publishing to npm. This adds 3.7MB to the size of `node_modules` of any app. However, we just download eagerly what we'd normally download later via Gradle. **Test plan** Released RN including a local Maven repo into Sinopia: $ cd react-native # Updated version in gradle.properties to 0.21.0 $ ./gradlew ReactAndroid:installArchives # Moved everything in .m2/repository/com/facebook/react to react-native/android $ ls react-native/android com/facebook/react/react-native/0.21.0/react-native-0.21.0.aar com/facebook/react/react-native/0.21.0/react-native-0.21.0.pom com/facebook/react/react-native/maven-metadata.xml ... # Set version in package.json to 0.21.0 $ npm set registry http://localhost:4873/ $ npm publish Created and ran an app: $ cd /tmp $ react-native init AndroidNpm $ cd AndroidNpm $ react-native run-android It worked. Checked that we're using the artifacts from node_modules/react-native/android: $ cd android $ ./gradlew app:dependencies compile - Classpath for compiling the main sources. +--- com.android.support:appcompat-v7:23.0.1 | \--- com.android.support:support-v4:23.0.1 | \--- com.android.support:support-annotations:23.0.1 \--- com.facebook.react:react-native:+ -> 0.21.0 +--- com.google.code.findbugs:jsr305:3.0.0 +--- com.facebook.stetho:stetho-okhttp:1.2.0 ... Checked that Android Studio can find the source jars (you can navigate to RN sources in Android Studio). Opened the new project as described in the [docs](https://facebook.github.io/react-native/docs/android-setup.html#editing-your-app-s-java-code-in-android-studio). public Reviewed By: bestander Differential Revision: D2912557 fb-gh-sync-id: 251c180518a3fb9bb8e80963b236e982d65533be shipit-source-id: 251c180518a3fb9bb8e80963b236e982d65533be
2016-02-09 14:36:30 +00:00
"android",
"cli.js",
"flow",
"init.sh",
"jest-preset.json",
"jest",
"lib",
"Libraries",
"LICENSE",
"local-cli",
"packager",
2015-03-28 05:18:47 +00:00
"PATENTS",
"react.gradle",
"React.podspec",
"React",
"ReactAndroid",
"ReactCommon",
"README.md"
],
"scripts": {
"test": "jest",
"flow": "flow",
2015-12-22 18:32:20 +00:00
"lint": "eslint Examples/ Libraries/",
"start": "/usr/bin/env bash -c './packager/packager.sh \"$@\" || true' --"
},
"bin": {
"react-native": "local-cli/wrong-react-native.js"
},
"peerDependencies": {
"react": "~15.4.0-rc.4"
},
"dependencies": {
"absolute-path": "^0.0.0",
"art": "^0.10.0",
"async": "^2.0.1",
"babel-core": "^6.18.2",
"babel-generator": "^6.18.0",
"babel-plugin-external-helpers": "^6.18.0",
"babel-plugin-syntax-trailing-function-commas": "^6.13.0",
"babel-plugin-transform-flow-strip-types": "^6.18.0",
"babel-plugin-transform-object-rest-spread": "^6.16.0",
"babel-polyfill": "^6.16.0",
"babel-preset-es2015-node": "^6.1.1",
"babel-preset-fbjs": "^2.1.0",
"babel-preset-react-native": "^1.9.0",
"babel-register": "^6.18.0",
"babel-types": "^6.18.0",
"babylon": "^6.13.1",
"base64-js": "^1.1.2",
"bser": "^1.0.2",
"chalk": "^1.1.1",
"commander": "^2.9.0",
"connect": "^2.8.3",
"core-js": "^2.2.2",
"debug": "^2.2.0",
"denodeify": "^1.2.1",
"event-target-shim": "^1.0.5",
"fbjs": "^0.8.5",
"fbjs-scripts": "^0.7.0",
"flow-bin": "^0.34.0",
"fs-extra": "^0.26.2",
"glob": "^5.0.15",
"graceful-fs": "^4.1.3",
"image-size": "^0.3.5",
"immutable": "~3.7.6",
"imurmurhash": "^0.1.4",
"inquirer": "^0.12.0",
"jest-haste-map": "^17.0.0",
"joi": "^6.6.1",
"json-stable-stringify": "^1.0.1",
"json5": "^0.4.0",
"lodash": "^4.16.6",
"mime": "^1.3.4",
"mime-types": "2.1.11",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"node-fetch": "^1.3.3",
"npmlog": "^2.0.4",
"opn": "^3.0.2",
"optimist": "^0.6.1",
"plist": "^1.2.0",
"progress": "^1.1.8",
"promise": "^7.1.1",
"react-clone-referenced-element": "^1.0.1",
"react-timer-mixin": "^0.13.2",
"react-transform-hmr": "^1.0.4",
"rebound": "^0.0.13",
"regenerator-runtime": "^0.9.5",
"rimraf": "^2.5.4",
"sane": "~1.4.1",
"semver": "^5.0.3",
"shell-quote": "1.6.1",
"source-map": "^0.5.6",
"stacktrace-parser": "^0.1.3",
"temp": "0.8.3",
"throat": "^3.0.0",
"uglify-js": "^2.6.2",
"whatwg-fetch": "^1.0.0",
"wordwrap": "^1.0.0",
"worker-farm": "^1.3.1",
"write-file-atomic": "^1.2.0",
"ws": "^1.1.0",
"xcode": "^0.8.9",
"xmldoc": "^0.4.0",
"yargs": "^3.24.0",
"yeoman-environment": "1.5.3",
"yeoman-generator": "0.21.2"
},
"devDependencies": {
"JSONStream": "1.2.1",
"babel-eslint": "^7.0.0",
"duplexer": "0.1.1",
"eslint": "^3.8.1",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-flowtype": "^2.20.0",
"eslint-plugin-react": "^6.4.1",
"flow-bin": "^0.34.0",
"graphql": "0.6.2",
"jest": "^17.0.0",
"jest-repl": "^17.0.0",
"jest-runtime": "^17.0.0",
"mock-fs": "^3.11.0",
"opener": "1.4.2",
"portfinder": "0.4.0",
"react": "~15.4.0-rc.4",
"react-dom": "~15.4.0-rc.4",
"react-test-renderer": "~15.4.0-rc.4",
"shelljs": "0.6.0",
"sinon": "^2.0.0-pre.2",
"split": "1.0.0"
}
}