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'; | |
module.exports = { | |
provider: { | |
name: 'aws', | |
runtime: 'nodejs6.10', | |
stage: '${opt:stage, "dev"}', | |
region: '${opt:region, "us-east-1"}', | |
memorySize: 128, | |
timeout: 10, |
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
module.exports = { | |
hello: { | |
handler: 'index.hello', | |
events: [ | |
{ | |
http: { | |
path: 'hello', | |
method: 'get' | |
} | |
} |
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'; | |
const program = require('commander'); | |
program | |
.option('--stage <n>', 'stage') | |
.option('--region <n>', 'region') | |
.option('--bucket <n>', 'bucket') | |
.parse(process.argv); |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"baseUrl": "./", | |
"rootDir": "./", | |
"paths": { | |
"@/*": ["./app/*"] | |
}, | |
"module": "commonjs", | |
"target": "es5", | |
"lib": ["es6", "esnext.asynciterable"], |
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 * as request from "request-promise-native"; | |
const BASE_URL = "https://api.github.com"; | |
export interface Person { | |
login: string; | |
id: number; | |
avatar_url: string; | |
gravatar_id: string; | |
url: string; |
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 { Bar as NBar } from "@nivo/bar"; | |
import * as React from "react"; | |
import { render } from "react-dom"; | |
interface Item { | |
author: string; | |
added: number; | |
deleted: number; | |
changed: number; | |
} |
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 { Bars } from "@/shared/api/chart/bar" | |
import { storiesOf } from "@storybook/react" | |
import * as React from "react" | |
import data from "./bars.data" | |
storiesOf("bars chart", module).add("default", () => { | |
return ( | |
<Bars data={data} /> | |
) | |
}) |
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 { createDomForChart } from "../utils"; | |
export default (data: Data, options: Options = {}): string => { | |
const { target, dom } = createDomForChart(); | |
render(<Bars data={data} options={options} />, target); | |
return dom.serialize(); | |
}; |
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 system = require('system'); | |
var html = system.args[1]; | |
var width = system.args[2]; | |
var height = system.args[3]; | |
var page = require('webpage').create(); |
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 * as CopyWebpackPlugin from "copy-webpack-plugin"; | |
import * as path from "path"; | |
import * as PermissionsOutputPlugin from "webpack-permissions-plugin"; | |
import getBaseConfig from "../../webpack.dev"; | |
const baseConfig = getBaseConfig(__dirname); | |
module.exports = Object.assign( | |
{ | |
plugins: [ |
OlderNewer