Permalink
Switch branches/tags
Commits on Sep 17, 2018
  1. react-native: make automated fs-based tests platform-independent

    jeanlauliac authored and facebook-github-bot committed Sep 17, 2018
    Summary:
    @public
    
    These tests are using a mock memory FS to start with, so there is no reason at all they should depend on the host OS or filesystem details. This changeset fixes that so that we fully mock the `fs` and `path` modules dependending on the mock platform (not the host platform). I also added an example of how we can test both platforms (regardless of the host platform) in `findPackageClassName`. Follow up changeset will be to do the same for all the other affected tests.
    
    Related to #20260.
    
    Reviewed By: mjesun
    
    Differential Revision: D9771024
    
    fbshipit-source-id: b368b43e8e54292d33b6183eec9a9ea69f2e6e76
Commits on Sep 7, 2018
  1. local-cli: remove 'unbundle' naming in CLI (#21013)

    jeanlauliac authored and facebook-github-bot committed Sep 7, 2018
    Summary:
    This also relink the require() onto `RamBundle.js` from Metro so we can remove `unbundle.js` from there completely.
    Pull Request resolved: #21013
    
    Reviewed By: hramos
    
    Differential Revision: D9721443
    
    Pulled By: jeanlauliac
    
    fbshipit-source-id: 3e42ebde4cb2c735ef0934ba3b1e20f1054440df
Commits on Jul 20, 2018
  1. BREAKING: metro: rename 'unbundle' to 'ram bundle'

    jeanlauliac authored and facebook-github-bot committed Jul 20, 2018
    Summary:
    @public
    
    Let's get rid of the "unbundle" terminology and instead use "RAM bundle", short for "Random Access Bundle" format. THIS IS A BREAKING CHANGE FOR OSS, as the command becomes `ram-bundle` instead of `unbundle`. It realy shouldn't be a command to start with (only a "format" specifier for the `bundle` command), but I don't want to do that change at this point.
    
    Reviewed By: davidaurelio
    
    Differential Revision: D8894433
    
    fbshipit-source-id: 5565f9ae94c7c2d7f6b25f95ae45b64f27f6aec8
Commits on May 25, 2018
  1. metro-memory-fs: enforce explicit cwd()

    jeanlauliac authored and facebook-github-bot committed May 25, 2018
    Reviewed By: mjesun
    
    Differential Revision: D8137985
    
    fbshipit-source-id: 2154cd758c079678d84f9c371d23bafb9511ec93
Commits on Apr 25, 2018
  1. react-native-github: remove old fs mock implementation

    jeanlauliac authored and facebook-github-bot committed Apr 25, 2018
    Reviewed By: rafeca
    
    Differential Revision: D7652914
    
    fbshipit-source-id: 5494305750e7616b5120169266c519f460ae7e6d
Commits on Apr 20, 2018
  1. cxxreact: executors: insert ID of segment reliably into the bundle path

    jeanlauliac authored and facebook-github-bot committed Apr 20, 2018
    Reviewed By: fromcelticpark
    
    Differential Revision: D7623232
    
    fbshipit-source-id: df833d18f0445d52e3098b58aac347a2e9aa0040
Commits on Apr 17, 2018
  1. cxxreact/RAMBundleRegistry: nit fixes

    jeanlauliac authored and facebook-github-bot committed Apr 17, 2018
    Reviewed By: mhorowitz
    
    Differential Revision: D7587411
    
    fbshipit-source-id: 516753247af585914381308248de9652f18a6cf5
  2. cxxreact/RAMBundleRegistry: prepend segment ID

    jeanlauliac authored and facebook-github-bot committed Apr 17, 2018
    Reviewed By: fromcelticpark
    
    Differential Revision: D7594348
    
    fbshipit-source-id: 0b433de8722f8a952fd056139a350dc481f0af38
Commits on Feb 27, 2018
  1. npmignore: ignore tests and fixtures

    jeanlauliac authored and facebook-github-bot committed Feb 27, 2018
    Summary:
    This try to address #17672 and facebook/metro#139. We should probably not include these folders in the released version of React Native, as they are used only for testing—am I incorrect?
    
    cc MoOx, t4deu.
    
    I ran:
    
    ```
    npm pack
    tar -t -f react-native-1000.0.0.tgz | less
    ```
    
    Then verified that `__fixture__` was not part of the package.
    
    #17672
    
    [GENERAL] [BUGFIX] [.npmignore] - Do not publish test-specific files
    Closes #18019
    
    Differential Revision: D7098211
    
    Pulled By: jeanlauliac
    
    fbshipit-source-id: 0748ad8c064450bd2a9f4d6f49675a7f74fb300f
Commits on Feb 23, 2018
  1. react-native: prefer custom source extensions over default extensions

    jeanlauliac authored and facebook-github-bot committed Feb 23, 2018
    Reviewed By: mjesun
    
    Differential Revision: D7066617
    
    fbshipit-source-id: cdde7451cb817d62d6705071752fce0686cf04dc
Commits on Feb 19, 2018
  1. fix Flow typing for OSS

    jeanlauliac authored and facebook-github-bot committed Feb 19, 2018
    Summary:
    Add ignores for these requires, some of them mistakenly removed by da3424c.
    
    ```
    yarn flow
    ```
    
    CircleCI should be green again.
    Closes #18021
    
    Differential Revision: D7025304
    
    Pulled By: jeanlauliac
    
    fbshipit-source-id: 731232093ae3ab39b3eff6fb2004ff4e7090d5ae
Commits on Jan 22, 2018
  1. xplat/js: asyncRequire: redirect async modules to control modules

    jeanlauliac authored and facebook-github-bot committed Jan 22, 2018
    Reviewed By: davidaurelio
    
    Differential Revision: D6750305
    
    fbshipit-source-id: 4cf3f1b6e0adbe88a9e7afb6a1784d1528e131b2
Commits on Jan 18, 2018
  1. metro: allow dynamic dependencies from within node_modules

    jeanlauliac authored and facebook-github-bot committed Jan 18, 2018
    Summary: Tries to adress facebook/metro#65. We need a reasonnable workaround to support modules like `moment.js` that do dynamic requires but only in some cases. By replacing the call by a function that throws, we move the exception at runtime instead of happening at compile time. We don't want to do that for non-node_modules file because they are fixable directly, while `node_modules` are not fixable by people and they get completely blocked by the error at compile time.
    
    Reviewed By: rafeca
    
    Differential Revision: D6736989
    
    fbshipit-source-id: a6e1fd9b56fa83907400884efd8f8594018b7c37
Commits on Dec 14, 2017
  1. metro-buck: check validity of segments

    jeanlauliac authored and facebook-github-bot committed Dec 14, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D6496312
    
    fbshipit-source-id: 586dc8d9f64d13cfddaf6bfe768e8f7b3442561a
Commits on Dec 11, 2017
  1. metro-buck: add e2e testing of command

    jeanlauliac authored and facebook-github-bot committed Dec 11, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D6533842
    
    fbshipit-source-id: b641559eb3085bac57ab3a1cc80a3f2f86b7ec92
Commits on Dec 7, 2017
  1. metro: introduce asyncRequire function

    jeanlauliac authored and facebook-github-bot committed Dec 7, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D6498107
    
    fbshipit-source-id: a9c4ab634e60f19b7058205eddcd248f57f63500
  2. react-native: BundleSegments: remove async/await

    jeanlauliac authored and facebook-github-bot committed Dec 7, 2017
    Reviewed By: fromcelticpark
    
    Differential Revision: D6508646
    
    fbshipit-source-id: 9e5c05bde5420cb030912eb187f6333af4b580f9
Commits on Nov 23, 2017
  1. packager-worker-for-buck: bundleCommand-test.js: add more consistency

    jeanlauliac authored and facebook-github-bot committed Nov 23, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D6395673
    
    fbshipit-source-id: 24516bd456a231708891e789f1d5aa5c18f4eeca
Commits on Nov 22, 2017
  1. packager-worker-for-buck: refactor and fix source map output

    jeanlauliac authored and facebook-github-bot committed Nov 22, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D6385199
    
    fbshipit-source-id: f104f7b000dde131b57b671d14d4ec4e0d30d7a2
Commits on Nov 7, 2017
  1. metro-bundler: allow different run-before-main-module depending on en…

    jeanlauliac authored and facebook-github-bot committed Nov 7, 2017
    …try point
    
    Reviewed By: davidaurelio
    
    Differential Revision: D6248242
    
    fbshipit-source-id: 9471820fce926e676170e3024bd48c9d7335c1a7
Commits on Nov 6, 2017
  1. react-native: BundleSegments

    jeanlauliac authored and facebook-github-bot committed Nov 6, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D6231309
    
    fbshipit-source-id: 565cbadedc5fd8ab25025b5846c098f24fb15a82
  2. packager-worker-for-buck: transformCommand: add test

    jeanlauliac authored and facebook-github-bot committed Nov 6, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D6232002
    
    fbshipit-source-id: 8bdd0dd0dabff4b92b4c2d7b4c3f7a2d90723bee
Commits on Nov 2, 2017
  1. react-native: BundleSegments

    jeanlauliac authored and facebook-github-bot committed Nov 2, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D6210177
    
    fbshipit-source-id: c39e4118389a9739e9e70ba34feb5d335a7f2546
Commits on Nov 1, 2017
  1. react-native: move out the hardcoded import() transform

    jeanlauliac authored and facebook-github-bot committed Nov 1, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D6196869
    
    fbshipit-source-id: 237cd269a2f382851102e3e1ba3208f1460f8c0a
Commits on Oct 12, 2017
  1. js1 metro-bundler: add script to publish new version

    jeanlauliac authored and facebook-github-bot committed Oct 12, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D6019220
    
    fbshipit-source-id: 97bb53323b29609e192f0e4f4d79b6be6440b98e
Commits on Oct 2, 2017
  1. RN buck: bundleCommand: add test for multiple bundles

    jeanlauliac authored and facebook-github-bot committed Oct 2, 2017
    Reviewed By: davidaurelio
    
    Differential Revision: D5932971
    
    fbshipit-source-id: 317e4503b87224cb3fa4ed7819b8af334d0b186b
Commits on Sep 29, 2017
  1. metro-bundler: add fs#writeFileSync to the mock

    jeanlauliac authored and facebook-github-bot committed Sep 29, 2017
    Reviewed By: rafeca
    
    Differential Revision: D5931412
    
    fbshipit-source-id: 2b51617b57963c424446b04e9381e6500323af56
Commits on Sep 8, 2017
  1. RN local-cli: fix the reporter creation code

    jeanlauliac authored and facebook-github-bot committed Sep 8, 2017
    Reviewed By: mjesun
    
    Differential Revision: D5766153
    
    fbshipit-source-id: 4416e331a7170e49236bcd09555040fd7b5b61b5
Commits on Sep 4, 2017
  1. metro-bunder: v0.14.0

    jeanlauliac authored and facebook-github-bot committed Sep 4, 2017
    Summary: Some breaking changes require a new release.
    
    Reviewed By: cpojer
    
    Differential Revision: D5763898
    
    fbshipit-source-id: 0580c9b1256c2c019adc5fb2f771c54d7e7a0bf1
Commits on Sep 1, 2017
  1. metro-bundler: v0.13

    jeanlauliac authored and facebook-github-bot committed Sep 1, 2017
    Reviewed By: cpojer
    
    Differential Revision: D5754623
    
    fbshipit-source-id: b70bfa105e6752db5350b82433bd64e1ca45f33b
Commits on Aug 31, 2017
  1. metro-bundler: v0.12

    jeanlauliac authored and facebook-github-bot committed Aug 31, 2017
    Reviewed By: cpojer
    
    Differential Revision: D5745702
    
    fbshipit-source-id: 6dc88811525e1595f58b23b7d0ebd5cc9f309785
Commits on Aug 24, 2017
  1. RN local-cli: fix saveAsset scales filtering

    jeanlauliac authored and facebook-github-bot committed Aug 24, 2017
    Reviewed By: fkgozali
    
    Differential Revision: D5688676
    
    fbshipit-source-id: 2cf6d08b626a6e8c55db0b2293e13300f9606332
Commits on Aug 22, 2017
  1. RN local-cli: format and @flow filterPlatformAssetScales

    jeanlauliac authored and facebook-github-bot committed Aug 22, 2017
    Summary: Preparation before using that from elsewhere that's already typed.
    
    Reviewed By: cpojer
    
    Differential Revision: D5678616
    
    fbshipit-source-id: 01ef6e688241e07ae9ce6aba27c6d4980f6a688b
  2. react-native: release new babel-preset version

    jeanlauliac authored and facebook-github-bot committed Aug 22, 2017
    Summary:
    The `3.0.0` contained syntax errors for older versions of Node.
    
    See also #15496
    
    Reviewed By: cpojer
    
    Differential Revision: D5677965
    
    fbshipit-source-id: cae07fdce7e887c6fb1d6087791db8307f6f72f3
Commits on Aug 16, 2017
  1. metro-bundler: transform import() to basic require()

    jeanlauliac authored and facebook-github-bot committed Aug 16, 2017
    Reviewed By: mjesun
    
    Differential Revision: D5631078
    
    fbshipit-source-id: a8d4955a723c1846b9406e734c3e3fa2c0df3fb7