- :w - save file
- :q - close file
- :q! - close file without saving
- :x - save and close
- h - left
{ | |
"name": "Lexi-WP-Theme", | |
"version": "0.0.1", | |
"description": "", | |
"license": "MIT", | |
"dependencies": { | |
"history": "^1.9.0", | |
"isomorphic-fetch": "^2.1.1", | |
"react": "^0.14.0-rc1", |
var path = require('path'); | |
var webpack = require('webpack'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
module.exports = { | |
devtool: 'source-map', | |
entry: [ | |
'webpack-dev-server/client?http://localhost:3000', | |
'webpack/hot/only-dev-server', |
var webpack = require('webpack'); | |
var WebpackDevServer = require('webpack-dev-server'); | |
var config = require('./webpack.config'); | |
new WebpackDevServer(webpack(config), { | |
publicPath: config.output.publicPath, | |
hot: true, | |
historyApiFallback: true, | |
stats: { | |
colors: true |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div id="root"></div> | |
</body> | |
</html> |
import React, { Component } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import createBrowserHistory from 'history/lib/createBrowserHistory'; | |
import { Provider } from 'react-redux'; | |
import { Router, Route, IndexRoute } from 'react-router'; | |
import configureStore from './store/configureStore'; | |
import LexiTheme from './containers/LexiTheme'; | |
import ArticlePage from './containers/ArticlePage'; | |
import ArticleListingPage from './containers/ArticleListingPage'; | |
import AboutPageContainer from './containers/AboutPageContainer'; |
import React, { Component } from 'react'; | |
export default class Header extends Component { | |
render() { | |
return ( | |
<div className="blog-header"> | |
<div className="container"> | |
<h1 className="blog-title">The Bootstrap Blog</h1> | |
<p className="lead blog-description">An example blog template built with Bootstrap.</p> | |
</div> |
import React, { Component } from 'react'; | |
// Dumb component | |
export default class AboutPage extends Component { | |
createMarkup(html) { | |
return { | |
__html: html | |
} | |
} |