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
{ | |
"components": { | |
"requestBodies": { | |
"AssetCreateRequest": { | |
"content": { | |
"application/json": { | |
"examples": {}, | |
"schema": { | |
"properties": { | |
"description": { |
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
defmodule PopularityStoreServer do | |
@moduledoc """ | |
Our emoji popularity store, implemented as a GenServer. A GenServer is a | |
generic approach for implementing a stateful process. In this store module, we | |
bundle both the client API for interacting with our GenServer and the internal | |
process callbacks used to respond to inbound messages. | |
""" | |
use GenServer |
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
import React from 'react'; | |
import omit from 'lodash/object/omit'; | |
export default function renderRouteChildren(props) { | |
const { children } = props; | |
return children && React.cloneElement(children, {...omit(props, 'children')}); | |
} | |
// EXAMPLE | |
class App extends React.Component { |
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
<!DOCTYPE html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>React Flux Boilerplate</title> | |
{% if (o.htmlWebpackPlugin.options.env !== 'development') { %} |
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
// config/webpack.base.js | |
var path = require(‘path’); | |
var config = require(‘config’); | |
var webpack = require(‘webpack’); | |
var HtmlWebpackPlugin = require(‘html-webpack-plugin’); | |
module.exports = { | |
cache: true, | |
output: { |
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
var path = require(‘path’); | |
module.exports = { | |
env: (process.env.NODE_ENV || ‘development’), | |
server: { | |
port: (process.env.PORT || 5000) | |
}, | |
webpack: { | |
output: { | |
path: path.join(__dirname, ‘../build/assets’), |
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
var path = require('path'); | |
module.exports = { | |
env: (process.env.NODE_ENV || 'development'), | |
webpackServer: { | |
port: (process.env.WEBPACK_PORT || 8888) | |
}, | |
server: { | |
port: (process.env.PORT || 5000) | |
}, |
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
import config from 'config'; | |
import express from 'express'; | |
import proxy from 'proxy-middleware'; | |
import request from 'request'; | |
import url from 'url'; | |
import webpack from 'webpack'; | |
import WebpackDevServer from 'webpack-dev-server'; | |
import WebpackDevConfig from './config/webpack.development'; | |
const APP_PORT = config.get('server.port'); |
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
var webpack = require('webpack'); | |
var merge = require('webpack-config-merger'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var baseConfig = require('./webpack.base.js'); | |
var config = require('config'); | |
var patterns = require('css-patterns'); | |
var path = require('path'); | |
module.exports = merge(baseConfig, { | |
entry: { |
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
{ | |
"parser": "babel-eslint", | |
"plugins": [ | |
"react" | |
], | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, |
NewerOlder