Commit Graph

21 Commits

Author SHA1 Message Date
HenryNguyen5 5d4b36d453 Migrate to Typescript (#224)
* Refactor babel/types

* Refactor entry point

* Refactor actions

* Refactor api

* Full project refactor -- Broad type fixing sweep

* - completely fix merge conflicts
- handle various type errors

* Add tslint to package.json

* Dependency cleanup

* Fix module resolution

* Work on type definitions for untyped libs

* progress commit

* Add more definition typing

* various type additions

* Add unit types

* Fix sagaiterator  + unit types

* various types added

* additional type additions

* Fix typing on Sagas

* remove flowfixmes; swap translate for translateRaw

* Get rid of contracts - awaiting Henry's contract PR

* Remove contracts from routing

* Fix most of actions/reducers

* refactor actions directory structure

* fix reducer action type imports

* Fix most of type errors pre-actions refactor

* fix action creator imports in containers

* Refactor more

* Refactor index of actions

* fix action imports; use module level index export

* package-lock.json updated

* Use action types in props

* Type up action creators

* Fix most of connect errors

* Typefixing progress

* More types

* Fix run-time errors

* Caching improvements for webpack

* Remove path resolve from webpack

* Update non-breaking packages to latest version

* Fix token typing

* Remove unused color code

* Fix wallet decrypt dispatch

* Set redux-form related props/functions to ANY, since we're stripping it out later on

* Revert BigNumber.js package changes

* Extend window to custom object for Perf

* Format Navigation

* Typecase keystore errors as any (since we shouldnt touch this)

* Push wallet context fix

* - find/replace value->payload in swap
- properly type swap state properties
- extract inline reducer into reducer function

* - type local storage retrieved items as generic

* - bind all RPCClient methods with fat arrow

* - reformat

* Change to enums for constants

* Change state into any

* Fix swap errors

* ensure that seconds are passed into state as integers

* Fix rest of errors

* use parseInt explicitly instead of type coercion

* Fix derivation-checker, remove flow command, add tslint command, add tslint-react, tell travis to use tslint instead of flow.

* Whoops, remove those tests.

* Remove unsupported (yet) config option.

* Fix precommit to target ts and tsx files.

* Fix some errors, ignore some silly rules.

* Revert jest to v19, use ts-jest and make all tests typescript. Fixes all but one.

* Get rid of saga tests

* Fix tslint errors
2017-09-24 19:06:28 -07:00
William O'Beirne 5e66cccac5 Command for HTTPS dev server (#212)
* HTTPS dev command.

* Remove unused declaration.

* check-node-version for dev:https
2017-09-19 17:47:46 -07:00
HenryNguyen5 7a460960d7 Build speed v2 (#195)
* Improve build speed by using cheap source maps and dropping eslint loader.

* use old 'source-map' on dev when SLOW_BUILD_SPEED env variable exists

* Increase build speed further via caching and DLL

* Cleanup code

* Add step to readme

* Move DLL loader to dev instead of base

* Add post install script

* Revert readme change

* ignore dll dir
2017-09-14 15:49:15 -07:00
William O'Beirne a5f2c5e2e9 Improve Build Speed (#188)
* Improve build speed by using cheap source maps and dropping eslint loader.

* use old 'source-map' on dev when SLOW_BUILD_SPEED env variable exists
2017-09-13 10:56:20 -07:00
Daniel Ternyak a66337ac0a Swap Part 4 (#101)
### Re-implements:
* min/max validators on initial currency swap selection
* polling of order status
* timer that persists across refreshes via localStorage (computed based on `createdTime` and `validFor` amount)
* swap persists across refreshes once order is created.
* various type refactors

### New additions:
* *SimpleButton* (can be PRd separately on request)
* clear loading state after order create (via SimpleButton and font-awesome)
* buffers for non-BTC swaps (bity does not actually accept 0.01 BTC worth of ETH as they claim they do in their JSON response, so a magic number of 10% is added to the minimum).
2017-07-31 18:14:30 -05:00
crptm 1c7f13c69c fix npm run build (#94) 2017-07-25 18:13:25 -05:00
Daniel Kaspo e0a52ed0f8 Fixed trying to improperly delete our dist folder. (#36)
* Fixed trying to improperly delete our dist folder.
2017-07-17 10:35:25 -05:00
William O'Beirne 8ed09dfa06 First attempt at CSS modules (#48)
* README proposal.

* First pass at implementation of proposal on Footer and Header. Footer could use some work.

* Cleanup, and readme additions
2017-07-14 23:16:36 -05:00
William O'Beirne c9948626d1 Bundle and compress images with Webpack (#49)
* First pass at image loader

* Clean up config, convert some images as example.
2017-07-14 12:04:08 -05:00
Daniel Ternyak 52cbdfbd0f Docker (#40)
* initial attempt at a docker based MEW for dev

* add webpack dev polling which is needed when mounting on windows. https://github.com/webpack/webpack-dev-server/issues/155#issuecomment-159140735

* readme
2017-07-10 22:03:08 -05:00
Daniel Ternyak 12fa008755 reformat everything 2017-07-03 22:28:56 -05:00
Daniel Ternyak 7cf3d26bbe Merge feat/send-page 2017-07-02 00:49:06 -05:00
crptm 1fb4a004ac send wip 2017-06-27 02:27:55 +04:00
Daniel Kaspo d9ec50f859 Use `fs` library so even Windows users can run build. 2017-06-12 20:20:52 -04:00
crptm e9cddb516e actually use friendly errors webpack plugin 2017-05-31 01:00:30 +04:00
crptm 8516b03343 baby translations 2017-05-25 04:06:30 +04:00
crptm 4345497a6d remove config boilerplate 2017-05-25 02:43:41 +04:00
Daniel Ternyak a12d720c8a Resolve broken prod css 2017-04-24 18:36:59 -05:00
Daniel Ternyak 04d17f716e tidy up webpack config 2017-04-14 02:12:20 -05:00
Daniel Ternyak ef10723d0a fix prod webpack build config (less breaking build) 2017-04-14 01:52:58 -05:00
Daniel Ternyak 0fd652ab93 create webpack config with less support for both dev and prod 2017-04-11 23:59:58 -05:00