From 63eca091b907e94315dac167b822ffe2fd3ca890 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Thu, 12 Mar 2015 12:51:44 -0700 Subject: [PATCH] Updates from Thu Mar 12 - Fixed sticky section headers in ListView | Nick Lockwood - [ReactNative] AppState cleanup, remove Subscribable, add in OSS examples | Eric Vicenti - [react-packager] package.json cleanup (seperate packager into it's own package) | Amjad Masad - [ReactNative] Move PushNotificationIOS to oss | Tadeu Zagallo - [ReactNative] Fix shake gesture after RedBox is dismissed | Alex Kotliarskyi - [catlyst|madman] fix prop type warning | Jiajie Zhu - [ReactNative] Remove Subscribable from TextInput | Eric Vicenti - Unforked ExceptionsManager, AlertManager and AppState | Nick Lockwood - [ReactNative|MAdMan] Notification Subscribable | Eric Vicenti - [ReactNative] OSS AsyncStorage with example | Spencer Ahrens --- blacklist.js | 10 ++++------ package.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 package.json diff --git a/blacklist.js b/blacklist.js index eb81f452..468a6040 100644 --- a/blacklist.js +++ b/blacklist.js @@ -6,13 +6,11 @@ // Don't forget to everything listed here to `testConfig.json` // modulePathIgnorePatterns. var sharedBlacklist = [ - 'node_modules/JSAppServer', - 'packager/react-packager', + __dirname, 'node_modules/parse/node_modules/xmlhttprequest/lib/XMLHttpRequest.js', 'node_modules/react-tools/src/utils/ImmutableObject.js', 'node_modules/react-tools/src/core/ReactInstanceHandles.js', - 'node_modules/react-tools/src/event/EventPropagators.js', - 'node_modules/jest-cli', + 'node_modules/react-tools/src/event/EventPropagators.js' ]; var webBlacklist = [ @@ -31,9 +29,9 @@ function escapeRegExp(str) { return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); } -function blacklist(isWeb) { +function blacklist(isWeb, additionalBlacklist) { return new RegExp('(' + - sharedBlacklist + (additionalBlacklist || []).concat(sharedBlacklist) .concat(isWeb ? webBlacklist : iosBlacklist) .map(escapeRegExp) .join('|') + diff --git a/package.json b/package.json new file mode 100644 index 00000000..6033c216 --- /dev/null +++ b/package.json @@ -0,0 +1,45 @@ +{ + "name": "react-native", + "version": "0.1.0", + "description": "Build native apps with React!", + "repository": { + "type": "git", + "url": "git@github.com:facebook/react-native.git" + }, + "jest": { + "setupEnvScriptFile": "jestSupport/env.js", + "testPathIgnorePatterns": [ + "/node_modules/" + ], + "testFileExtensions": [ + "js" + ], + "unmockedModulePathPatterns": [ + "source-map" + ] + }, + "scripts": { + "test": "jest", + "lint": "node linter.js Examples/", + "start": "./packager/packager.sh" + }, + "dependencies": { + "absolute-path": "0.0.0", + "debug": "~2.1.0", + "joi": "~5.1.0", + "module-deps": "3.5.6", + "optimist": "0.6.1", + "q": "1.0.1", + "sane": "1.0.1", + "source-map": "0.1.31", + "stacktrace-parser": "0.1.1", + "uglify-js": "~2.4.16", + "underscore": "1.7.0", + "worker-farm": "1.1.0", + "yargs": "1.3.2" + }, + "devDependencies": { + "jest-cli": "0.2.1", + "eslint": "0.9.2" + } +}