This file contains hidden or 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
{ | |
"compileOnSave": true, | |
"compilerOptions": { | |
"target": "es6", | |
"module": "es6", | |
"declaration": false, | |
"noImplicitAny": true, | |
"removeComments": false, | |
"noLib": false, | |
"preserveConstEnums": true, |
This file contains hidden or 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 Helmet from 'react-helmet'; | |
import { style } from 'typestyle'; | |
import { i18n } from 'es2015-i18n-tag'; | |
const content = style({ margin: '30px' }); | |
export class Layout extends React.Component { | |
static contextTypes = { | |
Ui: React.PropTypes.object |
This file contains hidden or 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 { BrowserRoute, Match, Miss } from 'react-router'; | |
import { MainLayout, HomePage, Other } from './components'; | |
const MatchWithMainLayout = ({ exactly, pattern, component: Component }: any) => { | |
return ( | |
<Match exactly={exactly} pattern={pattern} render={(props: any) => ( | |
<MainLayout><Component {...props} /></MainLayout> | |
)} /> | |
); | |
}; |
This file contains hidden or 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
{ | |
"name": "YOUR NAME", | |
"version": "1.0.0", | |
"description": "Boilerplate", | |
"main": "index.js", | |
"scripts": { | |
"start": "./node_modules/webpack-dashboard/bin/webpack-dashboard.js -t 'React-Redux Boilerplate' -- ./node_modules/webpack-dev-server/bin/webpack-dev-server.js", | |
"build": "rm -rf ./build && NODE_ENV=\"production\" ./node_modules/webpack/bin/webpack.js", | |
"preview": "NODE_ENV=\"production\" ./node_modules/webpack-dashboard/bin/webpack-dashboard.js -t 'Preview Mode - React-Redux Boilerplate' -- ./node_modules/webpack-dev-server/bin/webpack-dev-server.js", | |
}, |
This file contains hidden or 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'); | |
var express = require('express'); | |
var webpack = require('webpack'); | |
var config = require('./webpack.config'); | |
var app = express(); | |
var compiler = webpack(config); | |
var port = process.env.PORT || 3000; | |
app.use(require('webpack-dev-middleware')(compiler, { |
This file contains hidden or 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'); | |
var express = require('express'); | |
var webpack = require('webpack'); | |
var config = require('./webpack.config'); | |
var app = express(); | |
var compiler = webpack(config); | |
var port = process.env.PORT || 3000; | |
app.use(require('webpack-dev-middleware')(compiler, { |
This file contains hidden or 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
interface IFileOwner { | |
files: App.Collections.ITextFileDAO[]; | |
} | |
export const ClassUtils = { | |
alphanumSort<T>(array: Array<T>, selector?: (obj: T) => string, sensitivity = 'base') { | |
return array.sort((a, b) => selector(a).localeCompare(selector(b), undefined, {numeric: true, sensitivity})); | |
}, | |
indexArray(arr: any[]): any[] { | |
if (arr.length === 0) { |
This file contains hidden or 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
βββββ[Info]βββββ Wed, 08 Feb 2017 08:11:18 GMT wallaby:project Running postprocessor | |
βββββ[Info]βββββ Wed, 08 Feb 2017 08:11:18 GMT wallaby:testTask Test files from affected: 0, from deleted or manually requested: 1, from recently changed: 0, from loaded by: 0, from failing: 0 | |
βββββ[Info]βββββ Wed, 08 Feb 2017 08:11:18 GMT wallaby:project Preparing to process src/client/configs/accounts.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 08:11:18 GMT wallaby:project Preparing to process src/client/configs/apollo.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 08:11:18 GMT wallaby:project Preparing to process src/client/configs/caches.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 08:11:19 GMT wallaby:project Preparing to process src/client/configs/config.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 08:11:19 GMT wallaby:project Preparing to process src/client/configs/context.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 08:11:19 GMT wallaby:project Preparing to process src/client/configs/i18n.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 08:11:19 GMT wallaby:project Prep |
This file contains hidden or 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
[Info]βββββ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Running postprocessor | |
βββββ[Info]βββββ Wed, 08 Feb 2017 22:49:34 GMT wallaby:testTask Test files from affected: 0, from deleted or manually requested: 1, from recently changed: 0, from loaded by: 0, from failing: 0 | |
βββββ[Info]βββββ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/accounts.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/apollo.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/caches.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/config.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/context.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing to process src/client/configs/i18n.js | |
βββββ[Info]βββββ Wed, 08 Feb 2017 22:49:34 GMT wallaby:project Preparing |
This file contains hidden or 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
describe('User', () => { | |
describe('Profile', () => { | |
decorator((story) => ( | |
<ContextProvider> | |
{ story() } | |
</ContextProvider> | |
)); | |
story('Default', () => { |