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
#!/usr/bin/env node | |
// Symlink aliases into node_modules | |
// Aliases are defined in td-console/config/project.yaml | |
const fs = require('fs') | |
const path = require('path') | |
const { aliases, paths } = require('../config') | |
for (const [name, source] of Object.entries(aliases)) { | |
const destination = path.join(paths.node_modules, name) | |
if (fs.existsSync(destination)) { |
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
const fs = require('fs') | |
const path = require('path') | |
module.exports = { | |
get data () { | |
return fs.readdirSync(...).map(...).filter(...).map(...) | |
} | |
} |
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 IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | |
# yarn lockfile v1 | |
abbrev@1, abbrev@1.0.x: | |
version "1.0.9" | |
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135" | |
accepts@~1.3.3, accepts@1.3.3: | |
version "1.3.3" | |
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.3.tgz#c3ca7434938648c3e0d9c1e328dd68b622c284ca" | |
dependencies: |
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 App.SignUpMutationTest do | |
use App.MutationCase, async: true | |
defp mutation({query, input}) do | |
body = Poison.encode!(%{ | |
query: query, | |
variables: %{input: input} | |
}) | |
build_conn() |
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
/** | |
* Process uploaded images | |
*/ | |
import Rx from 'rx' | |
import mime from 'mime' | |
import pump from 'pump' | |
import sharp from 'sharp' | |
import debug from 'debug' | |
const log = debug('worker:processImages') |
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 { applyMiddleware } from 'redux' | |
/** | |
* Default browser search class implementation | |
* This is in order to allow being replaced for testing and server-side rendering | |
* Since you need to communicate with web workers, this is best modeled as an observable | |
* I don't think onComplete makes sense for something like search, so it can probably be ignored | |
* Anyway, I really suggest requiring it implement the observable interface: | |
* { subscribe(onNext, onError, onComplete) => { dispose() } } | |
* Dunno about the rest of the API |
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
/** | |
* AppLayout | |
* @flow | |
*/ | |
import { Layout, LayoutContent, LayoutHeader, LayoutTitle } from '../Layout' | |
import shouldPureComponentUpdate from 'react-pure-render/function' | |
import React, { Component, PropTypes } from 'react' | |
export class AppLayout extends Component { | |
constructor (props) { |
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
'use strict'; | |
var assert = require('assert'), | |
path = require('path'), | |
glob = require('glob'); | |
// If it's not a CI environment return the glob | |
// If it's a CI environment return the globs for the container | |
// Given a root path, get the full sorted list of specs using the glob | |
module.exports = function specList (rootPath, specGlob) { |
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 app from '../app' | |
import React from 'react' | |
import debug from 'debug' | |
import Html from '../components/Html' | |
import serialize from 'serialize-javascript' | |
import {navigateAction} from 'fluxible-router' | |
const log = debug('quad-blog:client:renderer') | |
export default function renderer ({scripts=[], styles=[]}={}) { | |
return async function rendererMiddleware () { |