From dfc635b45154ab32871b0e624e694e83d731c78f Mon Sep 17 00:00:00 2001 From: fragosti Date: Tue, 22 May 2018 16:08:04 -0700 Subject: Add redux-devtools-extension to project --- packages/website/package.json | 3 ++- packages/website/ts/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/website/package.json b/packages/website/package.json index f1b2a1750..21bcd2ad8 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -2,7 +2,7 @@ "name": "@0xproject/website", "version": "0.0.32", "engines": { - "node" : ">=6.12" + "node": ">=6.12" }, "private": true, "description": "Website and 0x portal dapp", @@ -81,6 +81,7 @@ "json-loader": "^0.5.4", "less-loader": "^2.2.3", "raw-loader": "^0.5.1", + "redux-devtools-extension": "^2.13.2", "shx": "^0.2.2", "source-map-loader": "^0.1.6", "style-loader": "0.13.x", diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx index 7fc180449..f01b1bc6c 100644 --- a/packages/website/ts/index.tsx +++ b/packages/website/ts/index.tsx @@ -6,6 +6,7 @@ import { Provider } from 'react-redux'; import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom'; import * as injectTapEventPlugin from 'react-tap-event-plugin'; import { createStore, Store as ReduxStore } from 'redux'; +import { devToolsEnhancer } from 'redux-devtools-extension'; import { Redirecter } from 'ts/components/redirecter'; import { About } from 'ts/containers/about'; import { FAQ } from 'ts/containers/faq'; @@ -74,7 +75,7 @@ const LazyOrderUtilsDocumentation = createLazyComponent('Documentation', async ( analytics.init(); // tslint:disable-next-line:no-floating-promises analytics.logProviderAsync((window as any).web3); -const store: ReduxStore = createStore(reducer); +const store: ReduxStore = createStore(reducer, devToolsEnhancer({ name: '0x Website Redux Store' })); render(
-- cgit v1.2.3 From 49ee56b22c7f8da43dd3050270e01bedb864ef5d Mon Sep 17 00:00:00 2001 From: fragosti Date: Tue, 22 May 2018 16:32:26 -0700 Subject: Move to deps from devDeps and use in development only --- packages/website/package.json | 2 +- packages/website/ts/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/website/package.json b/packages/website/package.json index 21bcd2ad8..4e3141663 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -48,6 +48,7 @@ "react-tap-event-plugin": "^2.0.1", "react-tooltip": "^3.2.7", "redux": "^3.6.0", + "redux-devtools-extension": "^2.13.2", "semver-sort": "0.0.4", "thenby": "^1.2.3", "truffle-contract": "2.0.1", @@ -81,7 +82,6 @@ "json-loader": "^0.5.4", "less-loader": "^2.2.3", "raw-loader": "^0.5.1", - "redux-devtools-extension": "^2.13.2", "shx": "^0.2.2", "source-map-loader": "^0.1.6", "style-loader": "0.13.x", diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx index f01b1bc6c..4fe81a91e 100644 --- a/packages/website/ts/index.tsx +++ b/packages/website/ts/index.tsx @@ -6,7 +6,7 @@ import { Provider } from 'react-redux'; import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom'; import * as injectTapEventPlugin from 'react-tap-event-plugin'; import { createStore, Store as ReduxStore } from 'redux'; -import { devToolsEnhancer } from 'redux-devtools-extension'; +import { devToolsEnhancer } from 'redux-devtools-extension/developmentOnly'; import { Redirecter } from 'ts/components/redirecter'; import { About } from 'ts/containers/about'; import { FAQ } from 'ts/containers/faq'; -- cgit v1.2.3