Skip to content

[#157113003] Migrate app code to TypeScript #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 135 commits into from
Apr 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
06a1265
Adds TypeScript
Apr 23, 2018
6a78f8d
Adds ts config
Apr 23, 2018
911a18f
Converts constants.js to TS
Apr 23, 2018
740c297
Skip config-chain from Flow
Apr 23, 2018
9dff772
Converts utils/api to TS
Apr 24, 2018
837933c
WIP (does not compile yet)
Apr 24, 2018
ed47361
Better react types
Apr 24, 2018
fdcf238
WIP components / 1
Apr 24, 2018
990776b
Converts sagas to TS
Apr 24, 2018
178bd0c
Converted all app files to TS
Apr 24, 2018
f39d487
extension of components must be .tsx
Apr 24, 2018
bb4c053
Fixes
Apr 24, 2018
c1636b5
Fixes
Apr 24, 2018
3cc0ce9
Fixes redux types
Apr 24, 2018
3b115f9
Fixes store
Apr 24, 2018
749f25b
Fixes registerComponent
Apr 24, 2018
1e09b77
Adds type guard for ApiFetchFailure
Apr 24, 2018
fd44fff
fix: FontStyleSpec
Apr 24, 2018
4aa0309
Merge branch 'experimental-typescript' of https://github.com/teamdigi…
Apr 24, 2018
ff7e7c1
Adds type guard for ApiFetchFailure/2
Apr 24, 2018
9844956
fix: SessionState
Apr 24, 2018
8be57eb
Merge branch 'experimental-typescript' of https://github.com/teamdigi…
Apr 24, 2018
b8156bf
Extends NativeBase components interfaces with new properties
francescopersico Apr 24, 2018
c058774
Fix NativeBase Button interface
francescopersico Apr 24, 2018
2ba4280
Remove unused onPress property
francescopersico Apr 24, 2018
203777f
fix: react-native imports
Apr 24, 2018
d5dc833
Merge branch 'experimental-typescript' of https://github.com/teamdigi…
Apr 24, 2018
b962efa
Fix Props of AppHeader component
francescopersico Apr 24, 2018
68716e8
fix: spid button + global var
Apr 24, 2018
3ed0d8a
Merge branch 'experimental-typescript' of https://github.com/teamdigi…
Apr 24, 2018
d041c9c
Remove unused components
francescopersico Apr 24, 2018
1316232
fix: session typeguard
Apr 24, 2018
f5fa9d7
Fix Modal props
francescopersico Apr 24, 2018
0aa1bf0
fix: added react-navigation types
Apr 24, 2018
200a7ae
Merge branch 'experimental-typescript' of https://github.com/teamdigi…
Apr 24, 2018
1815d71
fix: added redux-saga types
Apr 24, 2018
4226361
Remove unused LoginScreen
francescopersico Apr 24, 2018
a6e015b
Merge branch 'experimental-typescript' of https://github.com/teamdigi…
Apr 24, 2018
077e6f7
Remove unused components
francescopersico Apr 24, 2018
34ed425
Fix errors
francescopersico Apr 24, 2018
f782176
Fix AppHeader component
francescopersico Apr 24, 2018
5297d1a
Fix unused imports and tests
francescopersico Apr 24, 2018
11a6741
Fix ProfileScreen
francescopersico Apr 24, 2018
fd1c4ec
fix: types
Apr 24, 2018
47de8c6
Converts react-native-source-maps to TS
Apr 26, 2018
3fd25ca
Upgrades redux to 4.0.0
Apr 25, 2018
4a0c046
Upgrades redux to 4.0.0 and react-redux
Apr 25, 2018
401662f
Fixes store typings
Apr 25, 2018
572d535
Include ApplicationActions in dispatchable actions
Apr 25, 2018
4d383ea
Temporarily disable form reducer since there's no form attribute in G…
Apr 25, 2018
6385933
Removes js sources
Apr 26, 2018
28089e3
Removes flow, eslint
Apr 26, 2018
29af8a4
Configures react-native-typescript-transformer
Apr 26, 2018
cf85f03
Updates sources for build
Apr 26, 2018
9de7c03
Refreshes yarn.lock
Apr 26, 2018
9d7a624
Fix App boot
francescopersico Apr 26, 2018
e3a4f39
Fix imports
francescopersico Apr 26, 2018
bbebca9
Configures jest
Apr 26, 2018
6da70c8
Converts tests to TS
Apr 26, 2018
35b43af
Configures jest to run TS tests
Apr 26, 2018
ba2a783
Use tslib to reduce bundle size
Apr 26, 2018
5fd5293
Fixes circleci build
Apr 26, 2018
b29d536
Adds TypeScript
Apr 23, 2018
99d5e6b
Adds ts config
Apr 23, 2018
6b9e5a3
Converts constants.js to TS
Apr 23, 2018
140619a
Skip config-chain from Flow
Apr 23, 2018
d2af620
Converts utils/api to TS
Apr 24, 2018
25a43b3
WIP (does not compile yet)
Apr 24, 2018
1927a79
Better react types
Apr 24, 2018
3e38a71
WIP components / 1
Apr 24, 2018
ca661d8
Converts sagas to TS
Apr 24, 2018
25637d1
Converted all app files to TS
Apr 24, 2018
73abb03
extension of components must be .tsx
Apr 24, 2018
1b5b545
Fixes
Apr 24, 2018
b8880f6
Fixes
Apr 24, 2018
a4c8ba1
Fixes redux types
Apr 24, 2018
c1fa3c4
Fixes store
Apr 24, 2018
9cd1442
Fixes registerComponent
Apr 24, 2018
1a13ac8
Adds type guard for ApiFetchFailure
Apr 24, 2018
c9ebfa8
fix: FontStyleSpec
Apr 24, 2018
957ad0c
Adds type guard for ApiFetchFailure/2
Apr 24, 2018
0688cbe
fix: SessionState
Apr 24, 2018
b170196
Extends NativeBase components interfaces with new properties
francescopersico Apr 24, 2018
07941b3
Fix NativeBase Button interface
francescopersico Apr 24, 2018
61956c8
Remove unused onPress property
francescopersico Apr 24, 2018
4f38ec8
fix: react-native imports
Apr 24, 2018
c994c66
Fix Props of AppHeader component
francescopersico Apr 24, 2018
aa8f852
fix: spid button + global var
Apr 24, 2018
ac099c7
Remove unused components
francescopersico Apr 24, 2018
8685a27
fix: session typeguard
Apr 24, 2018
1987ffe
Fix Modal props
francescopersico Apr 24, 2018
725b8e3
fix: added react-navigation types
Apr 24, 2018
27baa3e
fix: added redux-saga types
Apr 24, 2018
d7afc3f
Remove unused LoginScreen
francescopersico Apr 24, 2018
4e19cee
Remove unused components
francescopersico Apr 24, 2018
d2c7597
Fix errors
francescopersico Apr 24, 2018
a01a472
Fix AppHeader component
francescopersico Apr 24, 2018
0930bba
Fix unused imports and tests
francescopersico Apr 24, 2018
2146d39
Fix ProfileScreen
francescopersico Apr 24, 2018
8b7f778
fix: types
Apr 24, 2018
2ce409a
Converts react-native-source-maps to TS
Apr 26, 2018
9d716c8
Upgrades redux to 4.0.0
Apr 25, 2018
a51a2bb
Upgrades redux to 4.0.0 and react-redux
Apr 25, 2018
0cdfae8
Fixes store typings
Apr 25, 2018
5c608fe
Include ApplicationActions in dispatchable actions
Apr 25, 2018
50bdd73
Temporarily disable form reducer since there's no form attribute in G…
Apr 25, 2018
b4d2957
Removes js sources
Apr 26, 2018
6309020
Removes flow, eslint
Apr 26, 2018
551d5dc
Configures react-native-typescript-transformer
Apr 26, 2018
f6af8a9
Updates sources for build
Apr 26, 2018
80020af
Refreshes yarn.lock
Apr 26, 2018
1a61900
Fix App boot
francescopersico Apr 26, 2018
2cc5537
Fix imports
francescopersico Apr 26, 2018
5439d8e
Configures jest
Apr 26, 2018
f2e48ff
Converts tests to TS
Apr 26, 2018
1518a15
Configures jest to run TS tests
Apr 26, 2018
d456aa6
Use tslib to reduce bundle size
Apr 26, 2018
026f172
Fixes circleci build
Apr 26, 2018
354308b
Merge branch 'experimental-typescript' of github.com:teamdigitale/ita…
Apr 26, 2018
0b6da4f
Fix redux-form state and reducer
francescopersico Apr 26, 2018
4887d17
Removes flow-typed dir
Apr 26, 2018
fb6f5d9
Adds tslint (only recommended rules enabled)
Apr 26, 2018
ec89a99
Adds @types/react-native-mixpanel
Apr 26, 2018
9c9082b
Adds @types/redux-logger
Apr 26, 2018
63a59b3
Adds @types/validator
Apr 26, 2018
7956370
Adds @types/lodash
Apr 26, 2018
c383523
Adds @types/react-native-fs
Apr 26, 2018
f5cd359
Adds @types/stacktrace-js
Apr 26, 2018
975532d
Temporarily disable tslint
Apr 26, 2018
bb4c661
Enabled noImplicitAny and started to fix issues
Apr 26, 2018
fade013
Fix redux-form forms
francescopersico Apr 26, 2018
2229a45
Add @types
francescopersico Apr 26, 2018
32f94f2
Disabling noImplictAny until we have definitions for all libraries
Apr 26, 2018
9b798a2
Merge branch 'experimental-typescript-strict' into experimental-types…
Apr 26, 2018
6c6255e
Removes eslint config
Apr 26, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}

# Run Flow check
- run: yarn flow
# Run TSLint
# - run: yarn lint

# Run ESLint
- run: yarn lint
# Build app
- run: yarn tsc:noemit

# Run tests
- run: yarn test
Expand Down Expand Up @@ -130,12 +130,12 @@ jobs:

macos:
xcode: "9.0"

shell: /bin/bash --login -o pipefail

steps:
- checkout

# Download node packages
- run: yarn install

Expand All @@ -147,7 +147,7 @@ jobs:

# Fetch CocoaPods specs
- run: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf

# Move to the ios project directory and run the test_build lane
- run: cd ios && bundle exec fastlane test_build

Expand Down
66 changes: 0 additions & 66 deletions .eslintrc.json

This file was deleted.

55 changes: 0 additions & 55 deletions .flowconfig

This file was deleted.

2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"parser": "flow",
"parser": "typescript",
"singleQuote": true,
"semi": false
}
File renamed without changes.
123 changes: 0 additions & 123 deletions flow-typed/npm/babel-eslint_vx.x.x.js

This file was deleted.

32 changes: 0 additions & 32 deletions flow-typed/npm/babel-jest_vx.x.x.js

This file was deleted.

Loading