[react-packager] package.json cleanup (seperate packager into it's own package)
This commit is contained in:
parent
df9874de6f
commit
eabe9f43c8
16
package.json
16
package.json
|
@ -23,25 +23,15 @@
|
|||
"scripts": {
|
||||
"test": "jest",
|
||||
"lint": "node linter.js Examples/",
|
||||
"start": "./packager/packager.sh"
|
||||
"start": "./packager/packager.sh",
|
||||
"postinstall": "cd packager && npm install"
|
||||
},
|
||||
"dependencies": {
|
||||
"absolute-path": "0.0.0",
|
||||
"connect": "2.8.3",
|
||||
"debug": "~2.1.0",
|
||||
"joi": "~5.1.0",
|
||||
"jstransform": "10.0.1",
|
||||
"module-deps": "3.5.6",
|
||||
"optimist": "0.6.1",
|
||||
"q": "1.0.1",
|
||||
"react-tools": "0.13.0-rc2",
|
||||
"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"
|
||||
"react-tools": "0.13.0-rc2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest-cli": "0.2.1",
|
||||
|
|
|
@ -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('|') +
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue