Skip to content

Instantly share code, notes, and snippets.

View mindpivot's full-sized avatar

m r mindpivot

  • Washington, DC area
View GitHub Profile
@mindpivot
mindpivot / package.json
Last active October 19, 2017 15:20
Config where DashboardPlugin does not work
{
"name": "rev.engine",
"version": "2.0.0",
"description": "Rev engine",
"scripts": {
"test": "jest --coverage",
"validate": "npm run flow; npm run test",
"dev": "webpack-dashboard -- webpack --env.env=development --config ./webpack.dev.js --progress --profile --colors --display-error-details",
"build": "webpack --env.env=production --config ./webpack.prod.js --progress --profile --colors --display-error-details",
"flow": "flow --show-all-errors; test $? -eq 0 -o $? -eq 2",
@mindpivot
mindpivot / InventorySearchForm.js
Created March 30, 2017 22:18
Redux Thunk doesn't seem to be registered properly
/**
* Created by raumer on 1/24/17.
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { inventorySearch } from './../../../../redux/actions/inventory'
class AdjustmentsForm extends Component {
constructor(props) {
super(props);
@mindpivot
mindpivot / inventoryroutes.js
Last active March 14, 2017 19:03
route tree example for koa.js and react router 4
// CLIENT IMPORTS
const InventoryNav = require('./../shared/screens/inventory/subnav');
const InventoryPage = require('./../shared/screens/inventory/page');
const Adjustments = require('./../shared/screens/inventory/adjustments');
// SERVER IMPORTS
const datarenderer = require('../server/middleware/datarenderer');
const bodyparser = require('../server/middleware/bodyparser');
const renderer = require('../server/middleware/renderer');
const InventoryRoutes = [
@mindpivot
mindpivot / index.js
Last active February 14, 2017 23:27
router function not firing
import { getServerPageRoutes } from './utility/makeServerRoutes';
import {routes} from './../shared/routes/index';
const Koa = require('koa');
const app = new Koa();
const Router = require('koa-router');
//let cleanRoutes = getServerPageRoutes(routes);
let cleanRoutes = [
{ method: 'GET',