Skip to content

Commit

Permalink
Remove @providesModule from all modules
Browse files Browse the repository at this point in the history
Summary:
This PR removes the need for having the `providesModule` tags in all the modules in the repository.

It configures Flow, Jest and Metro to get the module names from the filenames (`Libraries/Animated/src/nodes/AnimatedInterpolation.js` => `AnimatedInterpolation`)

* Checked the Flow configuration by running flow on the project root (no errors):

```
yarn flow
```

* Checked the Jest configuration by running the tests with a clean cache:

```
yarn jest --clearCache && yarn test
```

* Checked the Metro configuration by starting the server with a clean cache and requesting some bundles:

```
yarn run start --reset-cache
curl 'localhost:8081/IntegrationTests/AccessibilityManagerTest.bundle?platform=android'
curl 'localhost:8081/Libraries/Alert/Alert.bundle?platform=ios'
```

[INTERNAL] [FEATURE] [All] - Removed providesModule from all modules and configured tools.
Closes facebook/react-native#18995

Reviewed By: mjesun

Differential Revision: D7729509

Pulled By: rubennorte

fbshipit-source-id: 892f760a05ce1fddb088ff0cd2e97e521fb8e825
  • Loading branch information
rubennorte authored and facebook-github-bot committed Apr 25, 2018
1 parent 06f5f9a commit df0a8bb
Show file tree
Hide file tree
Showing 125 changed files with 0 additions and 125 deletions.
1 change: 0 additions & 1 deletion RNTesterUnitTests/RNTesterUnitTestsBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule RNTesterUnitTestsBundle
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/ARTExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ARTExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/AccessibilityAndroidExample.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule AccessibilityAndroidExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/AccessibilityIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule AccessibilityIOSExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/ActionSheetIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ActionSheetIOSExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/ActivityIndicatorExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ActivityIndicatorExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/AlertExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule AlertExample
*/

'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/AlertIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule AlertIOSExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/AnimatedExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule AnimatedExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/AnimatedGratuitousApp/AnExApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule AnExApp
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/AnimatedGratuitousApp/AnExBobble.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule AnExBobble
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/AnimatedGratuitousApp/AnExChained.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule AnExChained
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/AnimatedGratuitousApp/AnExScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule AnExScroll
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/AnimatedGratuitousApp/AnExSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule AnExSet
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/AnimatedGratuitousApp/AnExTilt.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule AnExTilt
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/AppStateExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule AppStateExample
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/AssetScaledImageExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule AssetScaledImageExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/AsyncStorageExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule AsyncStorageExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/BorderExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule BorderExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/BoxShadowExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule BoxShadowExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/ButtonExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ButtonExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/CameraRollExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule CameraRollExample
* @format
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/CameraRollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule CameraRollView
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/CheckBoxExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule CheckBoxExample
* @format
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/ClipboardExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ClipboardExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/DatePickerAndroidExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule DatePickerAndroidExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/DatePickerIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule DatePickerIOSExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/DimensionsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule DimensionsExample
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/ExampleTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule ExampleTypes
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/FlatListExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule FlatListExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/GeolocationExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule GeolocationExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/ImageCapInsetsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule ImageCapInsetsExample
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/ImageEditingExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ImageEditingExample
*/
1 change: 0 additions & 1 deletion js/ImageExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ImageExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/InputAccessoryViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule InputAccessoryViewExample
* @flow
* @format
*/
Expand Down
1 change: 0 additions & 1 deletion js/KeyboardAvoidingViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule KeyboardAvoidingViewExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/LayoutAnimationExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule LayoutAnimationExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/LayoutEventsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule LayoutEventsExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/LayoutExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule LayoutExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/LinkingExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule LinkingExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/ListExampleShared.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ListExampleShared
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/ListViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ListViewExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/ListViewGridLayoutExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ListViewGridLayoutExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/ListViewPagingExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule ListViewPagingExample
* @flow
*/
'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/MaskedViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule MaskedViewExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/ModalExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule ModalExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/MultiColumnExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule MultiColumnExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/NativeAnimationsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @providesModule NativeAnimationsExample
*/
'use strict';

Expand Down
1 change: 0 additions & 1 deletion js/NavigatorIOSBarStyleExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* @providesModule NavigatorIOSBarStyleExample
*/

'use strict';
Expand Down
1 change: 0 additions & 1 deletion js/NavigatorIOSColorsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule NavigatorIOSColorsExample
*/
'use strict';

Expand Down
Loading

0 comments on commit df0a8bb

Please sign in to comment.