[react-packager] package.json cleanup (seperate packager into it's own package)

This commit is contained in:
Amjad Masad 2015-03-11 17:44:49 -07:00
parent 70d748bf64
commit 449ed58546
2 changed files with 49 additions and 6 deletions

View File

@ -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('|') +

45
package.json Normal file
View File

@ -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"
}
}