Skip to content

Commit

Permalink
Merge pull request #611 from Adslot/doc-cleanup
Browse files Browse the repository at this point in the history
WIP: Doc cleanup
  • Loading branch information
lteacher authored Oct 12, 2017
2 parents 45ba8cd + c665cb7 commit 438a7b4
Show file tree
Hide file tree
Showing 81 changed files with 2,909 additions and 2,141 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"no-mixed-operators": ["error", {"groups": [["&", "|", "^", "~", "<<", ">>", ">>>"], ["&&", "||"]]}],
"quote-props": 0,
"import/no-extraneous-dependencies": 0,
"react/prefer-stateless-function": 0,
"react/self-closing-comp": ["error", {
"component": true,
"html": false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Upload the new `stats.json` file to [Webpack Analyse Tool](http://webpack.github
Optimizing Performance of Stateless Components
---------------

Add the following to Main.js:
Add the following to /docs/Layout/index.jsx:

```js
import Perf from 'react-addons-perf';
Expand Down
1 change: 0 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ coverage:
ignore:
- "src/components/**/*.spec.*"
- "src/components/**/mocks.*"
- "src/components/**/example.jsx"
14 changes: 10 additions & 4 deletions component-template/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ import './styles.scss';
// Define xxx here as either:

// Stateless Functional Component
const xxx = () => <div className="x-x-x"></div>;
// const xxx = () => <div className="x-x-x"></div>;

// Stateless Pure Component
// class xxx extends React.PureComponent { render() { return <div className="x-x-x"></div>; } };
// Stateless Pure Component (preferred)
class xxx extends React.PureComponent {
render() {
return (<div className="x-x-x">
{'// Your component here :)'}
</div>);
}
}

// Stateful Component
// class xxx extends React.Component { render() { return <div className="x-x-x"></div>; } };
// class xxx extends React.Component { render() { return <div className="x-x-x"></div>; } }

xxx.propTypes = {

Expand Down
5 changes: 3 additions & 2 deletions config/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { resolve } = require('path');

const commonConfig = require('./common');

const HOST = process.env.HOST || 'localhost';
const HOST = process.env.HOST || '0.0.0.0';
const PORT = process.env.PORT || '8888';

const publicPath = '/assets/';
Expand Down Expand Up @@ -55,6 +55,7 @@ module.exports = merge(commonConfig, {
publicPath, // match the output `publicPath`
port: PORT,
host: HOST,
disableHostCheck: true,
noInfo: true,
historyApiFallback: true,
stats: {
Expand All @@ -67,7 +68,7 @@ module.exports = merge(commonConfig, {
timings: false,
warnings: true,
},
open: `http://${HOST}:${PORT}/webpack-dev-server/`,
open: `http://${HOST}:${PORT}`,
},
devtool: 'cheap-module-eval-source-map',
plugins: [
Expand Down
90 changes: 0 additions & 90 deletions docs/Layout.jsx

This file was deleted.

Loading

0 comments on commit 438a7b4

Please sign in to comment.