This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59f3f90
commit eea9156
Showing
11 changed files
with
118 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
|
||
// Exported from redux-devtools | ||
import { createDevTools } from 'redux-devtools'; | ||
|
||
// Monitors are separate packages, and you can make a custom one | ||
import LogMonitor from 'redux-devtools-log-monitor'; | ||
import DockMonitor from 'redux-devtools-dock-monitor'; | ||
|
||
// createDevTools takes a monitor and produces a DevTools component | ||
const DevTools = createDevTools( | ||
// Monitors are individually adjustable with props. | ||
// Consult their repositories to learn about those props. | ||
// Here, we put LogMonitor inside a DockMonitor. | ||
<DockMonitor toggleVisibilityKey='ctrl-h' | ||
changePositionKey='ctrl-q'> | ||
<LogMonitor theme='tomorrow' /> | ||
</DockMonitor> | ||
); | ||
|
||
export default DevTools; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
import React from 'react'; | ||
|
||
// Exported from redux-devtools | ||
import { createDevTools } from 'redux-devtools'; | ||
|
||
// Monitors are separate packages, and you can make a custom one | ||
import LogMonitor from 'redux-devtools-log-monitor'; | ||
import DockMonitor from 'redux-devtools-dock-monitor'; | ||
|
||
// createDevTools takes a monitor and produces a DevTools component | ||
const DevTools = createDevTools( | ||
// Monitors are individually adjustable with props. | ||
// Consult their repositories to learn about those props. | ||
// Here, we put LogMonitor inside a DockMonitor. | ||
<DockMonitor toggleVisibilityKey='ctrl-h' | ||
changePositionKey='ctrl-q'> | ||
<LogMonitor theme='tomorrow' /> | ||
</DockMonitor> | ||
); | ||
|
||
export default DevTools; | ||
if (process.env.NODE_ENV !== 'production') { | ||
module.exports = require('./DevTools.dev'); | ||
} else { | ||
module.exports = require('./DevTools.prod'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
var webpack = require('webpack'); | ||
|
||
module.exports = { | ||
context: __dirname, | ||
entry: ['./app/app.jsx'], | ||
output: { | ||
filename: 'molten.js', | ||
path: './release/molten', | ||
publicPath: 'assets' | ||
}, | ||
module: { | ||
preLoaders: [ | ||
{ | ||
test: /\.jsx$|\.js$/, | ||
loader: 'eslint-loader', | ||
include: __dirname + '/app' | ||
} | ||
], | ||
loaders: [ | ||
{ | ||
test: /\.jsx$|\.js$/, | ||
exclude: /(node_modules|bower_components)/, | ||
loader: 'babel', | ||
query: { | ||
cacheDirectory: true, | ||
presets: ['es2015', 'react'] | ||
} | ||
}, | ||
{ | ||
test: /\.less$/, | ||
loader: 'style!css!less' | ||
}, | ||
{ | ||
test: /\.png$/, | ||
loader: 'url-loader?limit=100000&mimetype=image/png' | ||
} | ||
] | ||
}, | ||
resolve: { | ||
alias: { | ||
react: __dirname + '/node_modules/react', | ||
'react/addons': __dirname + '/node_modules/react/addons' | ||
}, | ||
root: __dirname + '/app', | ||
extensions: ['', '.js', '.jsx'], | ||
modulesDirectories: ['node_modules'] | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify('production') | ||
}) | ||
] | ||
}; |