File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import reducer from './reducer'
22import { createStore } from 'redux'
3+
34// import React from 'react'
45// import { compose } from 'redux'
56// import { devTools, persistState } from 'redux-devtools'
67// import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'
78
8- console . log ( process . env )
9+ // let finalCreateStore = compose(devTools(), persistState(window.location.href.match(/[?&]debug_session=([^&]+)\b/)))(createStore)
10+ // let store = finalCreateStore(reducer)
11+
12+ // devToolEl = (
13+ // <DebugPanel top right bottom>
14+ // <DevTools store={store} monitor={LogMonitor} visibleOnLoad={false}/>
15+ // </DebugPanel>
16+ // )
917
10- var store , devToolEl
11- // if (process.env.NODE_ENV !== 'production') {
12- // let finalCreateStore = compose(devTools(), persistState(window.location.href.match(/[?&]debug_session=([^&]+)\b/)))(createStore)
13- // let store = finalCreateStore(reducer)
18+ // export let devToolElement = devToolEl
19+ // export default store
1420
15- // devToolEl = (
16- // <DebugPanel top right bottom>
17- // <DevTools store={store} monitor={LogMonitor} visibleOnLoad={false}/>
18- // </DebugPanel>
19- // )
20- // } else {
21- // }
22- devToolEl = null
23- store = createStore ( reducer )
21+ let store = createStore ( reducer )
2422
25- export let devToolElement = devToolEl
23+ export let devToolElement = null
2624export default store
Original file line number Diff line number Diff line change 11{
22 "name" : " boost" ,
3- "version" : " 0.4.0-alpha" ,
3+ "version" : " 0.4.0-alpha.1 " ,
44 "description" : " Boost App" ,
55 "main" : " main.js" ,
66 "scripts" : {
77 "start" : " electron ./main.js" ,
8- "webpack" : " webpack-dev-server --inline" ,
9- "compile" : " NODE_ENV=production webpack --config webpack.config.production.js" ,
8+ "webpack" : " webpack-dev-server --inline --config webpack.config.js " ,
9+ "compile" : " NODE_ENV=production webpack --config webpack.config.production.js -p " ,
1010 "build" : " electron-packager ./ Boost $npm_package_config_platform $npm_package_config_version $npm_package_config_ignore --overwrite" ,
1111 "codesign" : " codesign --verbose --deep --force --sign \" MAISIN solutions Inc.\" Boost-darwin-x64/Boost.app"
1212 },
Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ module.exports = {
4141 'redbox-react' ,
4242 'react-transform-hmr' ,
4343 'react-transform-catch-errors' ,
44- 'redux-devtools' ,
45- 'redux-devtools/lib/react' ,
4644 'react-select' ,
4745 'markdown-it' ,
4846 'moment'
Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ module.exports = {
2929 new webpack . optimize . OccurenceOrderPlugin ( ) ,
3030 new webpack . DefinePlugin ( {
3131 'process.env' : {
32- 'NODE_ENV' : JSON . stringify ( 'production' ) ,
33- 'BABEL_ENV' : JSON . stringify ( 'production' )
32+ 'NODE_ENV' : JSON . stringify ( 'production' )
3433 }
3534 } )
3635 // new webpack.optimize.UglifyJsPlugin({
@@ -44,17 +43,12 @@ module.exports = {
4443 'md5' ,
4544 'superagent' ,
4645 'superagent-promise' ,
47- // 'react',
48- // 'redux',
49- // 'react-redux',
50- // 'react-router',
46+ 'react' ,
47+ 'redux' ,
48+ 'react-redux' ,
49+ 'react-router' ,
5150 'lodash' ,
52- // 'redbox-react',
53- // 'react-transform-hmr',
54- // 'react-transform-catch-errors',
55- // 'redux-devtools',
56- // 'redux-devtools/lib/react',
57- // 'react-select',
51+ 'react-select' ,
5852 'markdown-it' ,
5953 'moment' ,
6054 'fs' ,
You can’t perform that action at this time.
0 commit comments