Skip to content

Commit

Permalink
refactor: Converts to TypeScript.
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVann committed Mar 8, 2020
1 parent e24c931 commit f378cc7
Show file tree
Hide file tree
Showing 14 changed files with 1,670 additions and 421 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ example/android/app/src/main/gen

# build
react-native-fast-image-*.tgz
dist/

# coverage reports
coverage
28 changes: 0 additions & 28 deletions .npmignore

This file was deleted.

2 changes: 1 addition & 1 deletion ReactNativeFastImageExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@react-navigation/stack": "^5.1.0",
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-fast-image": "^7.0.2",
"react-native-fast-image": "../react-native-fast-image-8.0.0.tgz",
"react-native-gesture-handler": "^1.6.0",
"react-native-image-picker": "^2.3.1",
"react-native-image-progress": "^1.1.1",
Expand Down
7 changes: 3 additions & 4 deletions ReactNativeFastImageExample/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5368,10 +5368,9 @@ react-is@^16.12.0, react-is@^16.8.1, react-is@^16.8.4, react-is@^16.9.0:
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.0.tgz#0f37c3613c34fe6b37cd7f763a0d6293ab15c527"
integrity sha512-GFMtL0vHkiBv9HluwNZTggSn/sCyEt9n02aM0dSAjGGyqyNlAyftYm4phPxdvCigG15JreC5biwxCgTAJZ7yAA==

react-native-fast-image@^7.0.2:
version "7.0.2"
resolved "https://registry.yarnpkg.com/react-native-fast-image/-/react-native-fast-image-7.0.2.tgz#e06b21f42f4a9786eaa86f3db35d919070fb8403"
integrity sha512-MfuzJbC0RjYobR2gFCdqe1I7jvNOCfDkjQ7VGOHXniqjohhULMkcWNBE9Umovi9Dx93lJ6t5utcE2wf/09zvlg==
react-native-fast-image@../react-native-fast-image-8.0.0.tgz:
version "8.0.0"
resolved "../react-native-fast-image-8.0.0.tgz#9c62a27bbc643ce1cdae634b8a9a7252ced7ed00"

react-native-gesture-handler@^1.6.0:
version "1.6.0"
Expand Down
24 changes: 16 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,35 @@
},
"license": "(MIT AND Apache-2.0)",
"author": "Dylan Vann <[email protected]> (https://dylanvann.com)",
"main": "src/index.js",
"types": "src/index.d.ts",
"main": "dist/index.js",
"module": "dist/react-native-fast-image.esm.js",
"typings": "dist/index.d.ts",
"files": [
"android",
"!android/build",
"ios",
"!ios/build",
"src",
"dist",
"RNFastImage.podspec"
],
"scripts": {
"build": "exit 0",
"build": "tsdx build && cp src/index.js.flow dist/index.js.flow",
"commit": "git-cz",
"format": "yarn prettier --write",
"lint": "eslint src/**/*.js",
"prettier": "prettier './**/*.{js,d.ts,js.flow,yml}'",
"lint": "tsdx lint src",
"semantic-release": "semantic-release",
"test": "jest ./src/*.js"
"test": "jest ./src/*.tsx"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"prettier": {
"semi": false,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all"
},
"jest": {
"modulePathIgnorePatterns": [
"ReactNativeFastImageExample*",
Expand All @@ -59,6 +64,8 @@
"@semantic-release/git": "^9.0.0",
"@semantic-release/npm": "^7.0.3",
"@semantic-release/release-notes-generator": "^9.0.1",
"@types/react": "^16.9.23",
"@types/react-native": "^0.61.17",
"babel-jest": "^24.9.0",
"commitizen": "^4.0.3",
"cz-conventional-changelog": "^3.1.0",
Expand All @@ -75,6 +82,7 @@
"react-native": "0.61.5",
"react-test-renderer": "16.9.0",
"semantic-release": "^17.0.4",
"tsdx": "^0.12.3",
"typescript": "^3.8.3"
},
"peerDependencies": {
Expand Down
6 changes: 0 additions & 6 deletions prettier.config.js

This file was deleted.

File renamed without changes.
154 changes: 0 additions & 154 deletions src/index.d.ts

This file was deleted.

Loading

0 comments on commit f378cc7

Please sign in to comment.