-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lucas Bento
committed
Apr 12, 2019
1 parent
73a2e76
commit e80ff06
Showing
11 changed files
with
4,359 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
.codemod-update-imports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.codemod-update-imports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "rn-update-deprecated-modules", | ||
"description": "Codemod to update import declarations as per react-native > 0.59.x deprecations.", | ||
"version": "0.0.6", | ||
"version": "0.59.0", | ||
"author": { | ||
"name": "Lucas Bento", | ||
"email": "[email protected]", | ||
|
@@ -15,6 +15,10 @@ | |
"command-exists": "^1.2.8", | ||
"read-pkg-up": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"jest": "^24.7.1", | ||
"jscodeshift": "^0.6.3" | ||
}, | ||
"homepage": "https://github.com/lucasbento/rn-update-deprecated-modules", | ||
"keywords": [ | ||
"cli", | ||
|
@@ -23,5 +27,8 @@ | |
], | ||
"license": "MIT", | ||
"main": "index.js", | ||
"repository": "https://github.com/lucasbento/rn-update-deprecated-modules" | ||
"repository": "https://github.com/lucasbento/rn-update-deprecated-modules", | ||
"scripts": { | ||
"test": "jest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import React from "react"; | ||
import { WebView, AsyncStorage, Image } from "react-native"; | ||
|
||
const MyComponent = () => {}; | ||
|
||
export default MyComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from "react"; | ||
import { Image } from "react-native"; | ||
import AsyncStorage from "@react-native-community/async-storage"; | ||
import { WebView } from "react-native-website"; | ||
|
||
const MyComponent = () => {}; | ||
|
||
export default MyComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import React from "react"; | ||
import { AsyncStorage, Image } from "react-native"; | ||
|
||
const MyComponent = () => {}; | ||
|
||
export default MyComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
import { Image } from "react-native"; | ||
import AsyncStorage from "@react-native-community/async-storage"; | ||
|
||
const MyComponent = () => {}; | ||
|
||
export default MyComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import React from "react"; | ||
import { AsyncStorage } from "react-native"; | ||
|
||
const MyComponent = () => {}; | ||
|
||
export default MyComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import React from "react"; | ||
import AsyncStorage from "@react-native-community/async-storage"; | ||
|
||
const MyComponent = () => {}; | ||
|
||
export default MyComponent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const tests = [ | ||
'OneImport', | ||
]; | ||
|
||
const defineTest = require('jscodeshift/dist/testUtils').defineTest; | ||
|
||
describe('Codemod', () => { | ||
tests.forEach(test => | ||
defineTest( | ||
__dirname, | ||
'codemod', | ||
null, | ||
test, | ||
) | ||
); | ||
}); |
Oops, something went wrong.