react-native/local-cli/bundle
Jean Lauliac a4badb8471 packager: TransformCaching: make choice of cache explicit in the API
Summary:
This changeset moves the creation of the transform cache at the top-level of the bundler so that:

* we can use alternative folders, such as the project path itself, that I think will be more robust especially for OSS;
* we can disable the cache completely, that is useful in some cases (for example, the script that fills the global cache).

The reasons I believe a local project path is more robust are:

* there are less likely conflicts between different users and different projects on a single machine;
* the cache is de facto cleaned up if you clone a fresh copy of a project, something I think is desirable;
* some people have been reporting that `tmpDir` just returns nothing;
* finally, it prevents another user from writing malicious transformed code in the cache into the shared temp dir—only people with write access to the project have write access to the cache, that is consistent.

Reviewed By: davidaurelio

Differential Revision: D5113121

fbshipit-source-id: 74392733a0be306a7119516d7905fc43cd8c778e
2017-05-25 04:31:08 -07:00
..
__mocks__ Move `private-cli` commands to `local-cli` 2015-10-26 15:36:04 -07:00
__tests__ Don't include assets that are not used on the platform 2017-02-09 11:15:25 -08:00
assetPathUtils.js packager: assetPathUtils: @flow 2017-04-19 10:41:08 -07:00
buildBundle.js packager: TransformCaching: make choice of cache explicit in the API 2017-05-25 04:31:08 -07:00
bundle.js Move packager core logic from `local-cli` to `packager` 2017-05-24 08:06:10 -07:00
bundleCommandLineArgs.js Use the absolute path to the sourcemap in the CS bundle 2017-04-06 09:30:31 -07:00
filterPlatformAssetScales.js Don't include assets that are not used on the platform 2017-02-09 11:15:25 -08:00
getAssetDestPathAndroid.js packager: buck library: expose asset content 2017-04-25 12:04:01 -07:00
getAssetDestPathIOS.js packager: buck library: expose asset content 2017-04-25 12:04:01 -07:00
saveAssets.js Don't include assets that are not used on the platform 2017-02-09 11:15:25 -08:00
types.flow.js Move packager core logic from `local-cli` to `packager` 2017-05-24 08:06:10 -07:00
unbundle.js Move packager core logic from `local-cli` to `packager` 2017-05-24 08:06:10 -07:00