Permalink
Browse files

Remove react-native/packager folder.

Summary: This folder is not necessary any longer. All the code now lives in https://github.com/facebook/metro-bundler

Reviewed By: davidaurelio, jeanlauliac

Differential Revision: D5199196

fbshipit-source-id: 35bf0f10a9163f53426db9a76f8f853dceb69167
  • Loading branch information...
cpojer authored and facebook-github-bot committed Jun 7, 2017
1 parent 0bc3bb0 commit 236e9e4d01f60225855477b710fd4b5e1b8817fb
Showing with 15 additions and 30,950 deletions.
  1. +2 −5 jest/preprocessor.js
  2. +3 −3 jest/setup.js
  3. +10 −5 local-cli/link/__tests__/ios/writePlist.spec.js
  4. +0 −10 packager/.eslintrc
  5. +0 −22 packager/Glossary.md
  6. +0 −9 packager/README.md
  7. +0 −46 packager/package.json
  8. +0 −4 packager/rn-babelrc.json
  9. +0 −301 packager/src/AssetServer/__tests__/AssetServer-test.js
  10. +0 −253 packager/src/AssetServer/index.js
  11. +0 −370 packager/src/Bundler/Bundle.js
  12. +0 −114 packager/src/Bundler/BundleBase.js
  13. +0 −88 packager/src/Bundler/HMRBundle.js
  14. +0 −494 packager/src/Bundler/__tests__/Bundle-test.js
  15. +0 −460 packager/src/Bundler/__tests__/Bundler-test.js
  16. +0 −873 packager/src/Bundler/index.js
  17. +0 −108 packager/src/Bundler/source-map/B64Builder.js
  18. +0 −195 packager/src/Bundler/source-map/Generator.js
  19. +0 −126 packager/src/Bundler/source-map/__tests__/B64Builder-test.js
  20. +0 −113 packager/src/Bundler/source-map/__tests__/Generator-test.js
  21. +0 −85 packager/src/Bundler/source-map/__tests__/source-map-test.js
  22. +0 −127 packager/src/Bundler/source-map/encode.js
  23. +0 −1 packager/src/Bundler/source-map/package.json
  24. +0 −104 packager/src/Bundler/source-map/source-map.js
  25. +0 −157 packager/src/Bundler/util.js
  26. 0 packager/src/JSTransformer/README.md
  27. +0 −13 packager/src/JSTransformer/__mocks__/lodash.js
  28. +0 −13 packager/src/JSTransformer/__mocks__/worker.js
  29. +0 −95 packager/src/JSTransformer/__tests__/Transformer-test.js
  30. +0 −204 packager/src/JSTransformer/index.js
  31. +0 −19 packager/src/JSTransformer/worker/JsMinification.js
  32. +0 −122 packager/src/JSTransformer/worker/__tests__/constant-folding-test.js
  33. +0 −112 packager/src/JSTransformer/worker/__tests__/extract-dependencies-test.js
  34. +0 −337 packager/src/JSTransformer/worker/__tests__/inline-test.js
  35. +0 −57 packager/src/JSTransformer/worker/__tests__/minify-test.js
  36. +0 −226 packager/src/JSTransformer/worker/__tests__/worker-test.js
  37. +0 −91 packager/src/JSTransformer/worker/constant-folding.js
  38. +0 −52 packager/src/JSTransformer/worker/extract-dependencies.js
  39. +0 −191 packager/src/JSTransformer/worker/index.js
  40. +0 −196 packager/src/JSTransformer/worker/inline.js
  41. +0 −34 packager/src/JSTransformer/worker/minify.js
  42. +0 −33 packager/src/Logger/Types.js
  43. +0 −37 packager/src/Logger/__mocks__/chalk.js
  44. +0 −66 packager/src/Logger/__tests__/Logger-test.js
  45. +0 −90 packager/src/Logger/index.js
  46. +0 −170 packager/src/ModuleGraph/Graph.js
  47. +0 −113 packager/src/ModuleGraph/ModuleGraph.js
  48. +0 −378 packager/src/ModuleGraph/__tests__/Graph-test.js
  49. +0 −109 packager/src/ModuleGraph/__tests__/ModuleGraph-test.js
  50. +0 −28 packager/src/ModuleGraph/module.js
  51. +0 −90 packager/src/ModuleGraph/node-haste/HasteFS.js
  52. +0 −64 packager/src/ModuleGraph/node-haste/Module.js
  53. +0 −71 packager/src/ModuleGraph/node-haste/ModuleCache.js
  54. +0 −135 packager/src/ModuleGraph/node-haste/Package.js
  55. +0 −70 packager/src/ModuleGraph/node-haste/node-haste.flow.js
  56. +0 −149 packager/src/ModuleGraph/node-haste/node-haste.js
  57. +0 −1 packager/src/ModuleGraph/node-haste/package.json
  58. +0 −297 packager/src/ModuleGraph/output/__tests__/indexed-ram-bundle-test.js
  59. +0 −83 packager/src/ModuleGraph/output/__tests__/util-test.js
  60. +0 −106 packager/src/ModuleGraph/output/indexed-ram-bundle.js
  61. +0 −64 packager/src/ModuleGraph/output/plain-bundle.js
  62. +0 −26 packager/src/ModuleGraph/output/source-map.js
  63. +0 −81 packager/src/ModuleGraph/output/util.js
  64. +0 −1 packager/src/ModuleGraph/package.json
  65. +0 −15 packager/src/ModuleGraph/silent-console.js
  66. +0 −23 packager/src/ModuleGraph/test-helpers.js
  67. +0 −172 packager/src/ModuleGraph/types.flow.js
  68. +0 −29 packager/src/ModuleGraph/worker.js
  69. +0 −52 packager/src/ModuleGraph/worker/JsFileWrapping.js
  70. +0 −135 packager/src/ModuleGraph/worker/__tests__/collect-dependencies-test.js
  71. +0 −131 packager/src/ModuleGraph/worker/__tests__/optimize-module-test.js
  72. +0 −277 packager/src/ModuleGraph/worker/__tests__/transform-module-test.js
  73. +0 −89 packager/src/ModuleGraph/worker/__tests__/wrap-worker-fn-test.js
  74. +0 −150 packager/src/ModuleGraph/worker/collect-dependencies.js
  75. +0 −26 packager/src/ModuleGraph/worker/generate.js
  76. +0 −125 packager/src/ModuleGraph/worker/optimize-module.js
  77. +0 −183 packager/src/ModuleGraph/worker/transform-module.js
  78. +0 −62 packager/src/ModuleGraph/worker/wrap-worker-fn.js
  79. +0 −553 packager/src/Resolver/__tests__/Resolver-test.js
  80. +0 −290 packager/src/Resolver/index.js
  81. +0 −86 packager/src/Resolver/polyfills/Array.es6.js
  82. +0 −95 packager/src/Resolver/polyfills/Array.prototype.es6.js
  83. +0 −41 packager/src/Resolver/polyfills/Number.es6.js
  84. +0 −68 packager/src/Resolver/polyfills/Object.es6.js
  85. +0 −59 packager/src/Resolver/polyfills/Object.es7.js
  86. +0 −92 packager/src/Resolver/polyfills/String.prototype.es6.js
  87. +0 −127 packager/src/Resolver/polyfills/__tests__/Object.es7-test.js
  88. +0 −247 packager/src/Resolver/polyfills/babelHelpers.js
  89. +0 −514 packager/src/Resolver/polyfills/console.js
  90. +0 −90 packager/src/Resolver/polyfills/error-guard.js
  91. +0 −18 packager/src/Resolver/polyfills/prelude.js
  92. +0 −18 packager/src/Resolver/polyfills/prelude_dev.js
  93. +0 −292 packager/src/Resolver/polyfills/require.js
  94. +0 −84 packager/src/Server/MultipartResponse.js
  95. +0 −149 packager/src/Server/__tests__/MultipartResponse-test.js
  96. +0 −542 packager/src/Server/__tests__/Server-test.js
  97. +0 −957 packager/src/Server/index.js
  98. +0 −106 packager/src/Server/symbolicate/__tests__/symbolicate-test.js
  99. +0 −157 packager/src/Server/symbolicate/__tests__/util-test.js
  100. +0 −110 packager/src/Server/symbolicate/__tests__/worker-test.js
  101. +0 −1 packager/src/Server/symbolicate/package.json
  102. +0 −81 packager/src/Server/symbolicate/symbolicate.js
  103. +0 −86 packager/src/Server/symbolicate/util.js
  104. +0 −77 packager/src/Server/symbolicate/worker.js
  105. +0 −11 packager/src/__mocks__/debug.js
  106. +0 −38 packager/src/babelRegisterOnly.js
  107. +0 −44 packager/src/blacklist.js
  108. +0 −46 packager/src/defaults.js
  109. +0 −149 packager/src/index.js
  110. +0 −1,275 packager/src/integration_tests/__tests__/__snapshots__/basic_bundle-test.js.snap
  111. +0 −89 packager/src/integration_tests/__tests__/basic_bundle-test.js
  112. +0 −16 packager/src/integration_tests/basic_bundle/Bar.js
  113. +0 −16 packager/src/integration_tests/basic_bundle/Foo.js
  114. +0 −17 packager/src/integration_tests/basic_bundle/TestBundle.js
  115. BIN packager/src/integration_tests/basic_bundle/test.png
  116. +0 −110 packager/src/lib/BatchProcessor.js
  117. +0 −430 packager/src/lib/GlobalTransformCache.js
  118. +0 −43 packager/src/lib/JsonReporter.js
  119. +0 −79 packager/src/lib/ModuleTransport.js
  120. +0 −39 packager/src/lib/SourceMap.js
  121. +0 −166 packager/src/lib/TerminalClass.js
  122. +0 −354 packager/src/lib/TerminalReporter.js
  123. +0 −457 packager/src/lib/TransformCaching.js
  124. +0 −18 packager/src/lib/__mocks__/GlobalTransformCache.js
  125. +0 −47 packager/src/lib/__mocks__/TransformCaching.js
  126. +0 −20 packager/src/lib/__mocks__/declareOpts.js
  127. +0 −68 packager/src/lib/__tests__/BatchProcessor-test.js
  128. +0 −105 packager/src/lib/__tests__/GlobalTransformCache-test.js
  129. +0 −112 packager/src/lib/__tests__/TerminalClass-test.js
  130. +0 −139 packager/src/lib/__tests__/TransformCaching-test.js
  131. +0 −32 packager/src/lib/__tests__/__snapshots__/GlobalTransformCache-test.js.snap
  132. +0 −108 packager/src/lib/formatBanner.js
  133. +0 −40 packager/src/lib/relativizeSourceMap.js
  134. +0 −124 packager/src/lib/reporting.js
  135. +0 −75 packager/src/node-haste/AssetModule.js
  136. +0 −134 packager/src/node-haste/AssetResolutionCache.js
  137. +0 −312 packager/src/node-haste/DependencyGraph.js
  138. +0 −57 packager/src/node-haste/DependencyGraph/DependencyGraphHelpers.js
  139. +0 −46 packager/src/node-haste/DependencyGraph/FileNameResolver.js
  140. +0 −216 packager/src/node-haste/DependencyGraph/HasteMap.js
  141. +0 −899 packager/src/node-haste/DependencyGraph/ResolutionRequest.js
  142. +0 −128 packager/src/node-haste/DependencyGraph/ResolutionResponse.js
  143. +0 −8 packager/src/node-haste/DependencyGraph/assets/empty-module.js
  144. +0 −83 packager/src/node-haste/DependencyGraph/docblock.js
  145. +0 −48 packager/src/node-haste/FilesByDirNameIndex.js
  146. +0 −443 packager/src/node-haste/Module.js
  147. +0 −186 packager/src/node-haste/ModuleCache.js
  148. +0 −159 packager/src/node-haste/Package.js
  149. +0 −59 packager/src/node-haste/Polyfill.js
  150. +0 −11 packager/src/node-haste/__mocks__/fs.js
  151. +0 −308 packager/src/node-haste/__mocks__/graceful-fs.js
  152. +0 −28 packager/src/node-haste/__tests__/AssetModule-test.js
  153. +0 −53 packager/src/node-haste/__tests__/AssetResolutionCache-test.js
  154. +0 −5,824 packager/src/node-haste/__tests__/DependencyGraph-test.js
  155. +0 −343 packager/src/node-haste/__tests__/Module-test.js
  156. +0 −18 packager/src/node-haste/__tests__/__snapshots__/AssetResolutionCache-test.js.snap
  157. +0 −36 packager/src/node-haste/__tests__/__snapshots__/DependencyGraph-test.js.snap
  158. +0 −80 packager/src/node-haste/lib/AssetPaths.js
  159. +0 −36 packager/src/node-haste/lib/AsyncTaskGroup.js
  160. +0 −35 packager/src/node-haste/lib/MapWithDefaults.js
  161. +0 −129 packager/src/node-haste/lib/__tests__/AssetPaths-test.js
  162. +0 −24 packager/src/node-haste/lib/__tests__/MapWithDefaults-test.js
  163. +0 −33 packager/src/node-haste/lib/__tests__/parsePlatformFilePath-test.js
  164. +0 −49 packager/src/node-haste/lib/parsePlatformFilePath.js
  165. +0 −34 packager/src/node-haste/lib/toLocalPath.js
  166. +0 −20 packager/src/node-haste/types.js
  167. +0 −50 packager/src/rn-cli.config.js
  168. +0 −14 packager/src/setupNodePolyfills.js
  169. +0 −83 packager/src/shared/output/bundle.js
  170. +0 −46 packager/src/shared/output/meta.js
  171. +0 −108 packager/src/shared/output/unbundle/as-assets.js
  172. +0 −216 packager/src/shared/output/unbundle/as-indexed-file.js
  173. +0 −40 packager/src/shared/output/unbundle/build-unbundle-sourcemap-with-metadata.js
  174. +0 −46 packager/src/shared/output/unbundle/index.js
  175. +0 −13 packager/src/shared/output/unbundle/magic-number.js
  176. +0 −128 packager/src/shared/output/unbundle/util.js
  177. +0 −29 packager/src/shared/output/unbundle/write-sourcemap.js
  178. +0 −20 packager/src/shared/output/writeFile.js
  179. +0 −44 packager/src/shared/types.flow.js
  180. +0 −169 packager/src/transformer.js
  181. +0 −1 packager/src/worker-farm/.npmignore
  182. +0 −9 packager/src/worker-farm/.travis.yml
  183. +0 −13 packager/src/worker-farm/LICENSE.md
  184. +0 −143 packager/src/worker-farm/README.md
  185. +0 −13 packager/src/worker-farm/examples/basic/child.js
  186. +0 −21 packager/src/worker-farm/examples/basic/index.js
  187. +0 −30 packager/src/worker-farm/examples/pi/calc.js
  188. +0 −49 packager/src/worker-farm/examples/pi/index.js
  189. +0 −58 packager/src/worker-farm/lib/child/index.js
  190. +0 −342 packager/src/worker-farm/lib/farm.js
  191. +0 −40 packager/src/worker-farm/lib/fork.js
  192. +0 −50 packager/src/worker-farm/lib/index.js
  193. +0 −18 packager/src/worker-farm/package.json
  194. +0 −79 packager/src/worker-farm/tests/child.js
  195. +0 −466 packager/src/worker-farm/tests/index.js
View
@@ -13,17 +13,14 @@
const babel = require('babel-core');
const babelRegisterOnly = require('metro-bundler/build/babelRegisterOnly');
const createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction');
const path = require('path');
const transformer = require('metro-bundler/build/transformer.js');
const nodeFiles = RegExp([
'/local-cli/',
'/packager/(?!src/Resolver/polyfills/)',
].join('|'));
const nodeOptions = babelRegisterOnly.config([nodeFiles]);
babelRegisterOnly([]);
// has to be required after setting up babelRegisterOnly
const transformer = require('metro-bundler/build/transformer.js');
module.exports = {
process(src/*: string*/, file/*: string*/) {
@@ -49,7 +46,7 @@ module.exports = {
getCacheKey: createCacheKeyFunction([
__filename,
path.join(__dirname, '../packager/src/transformer.js'),
require.resolve('metro-bundler/build/transformer.js'),
require.resolve('babel-core/package.json'),
]),
};
View
@@ -10,9 +10,9 @@
const mockComponent = require.requireActual('./mockComponent');
require.requireActual('../packager/src/Resolver/polyfills/babelHelpers.js');
require.requireActual('../packager/src/Resolver/polyfills/Object.es7.js');
require.requireActual('../packager/src/Resolver/polyfills/error-guard');
require.requireActual('metro-bundler/build/Resolver/polyfills/babelHelpers.js');
require.requireActual('metro-bundler/build/Resolver/polyfills/Object.es7.js');
require.requireActual('metro-bundler/build/Resolver/polyfills/error-guard');
global.__DEV__ = true;
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
jest.autoMockOff();
@@ -16,11 +25,7 @@ const writePlist = require('../../ios/writePlist');
const projectPath = path.join(__dirname, '../../__fixtures__/project.pbxproj');
const infoPlistPath = path.join(__dirname, '../../__fixtures__/Info.plist');
fs.__setMockFilesystem({
'Basic': {
'project.pbxproj': readFileSync(projectPath).toString(),
}
});
fs.readFileSync = jest.fn(() => readFileSync(projectPath).toString());
const project = xcode.project('/Basic/project.pbxproj');
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 236e9e4

Please sign in to comment.