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 {Account} from '../../../mocks/account'; | |
import {Table} from '../table/table'; | |
export type AccountListProps = { | |
accounts: Account[]; | |
}; | |
export const AccountList = ({accounts}: AccountListProps) => ( |
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 {logger} from './lib/logger'; | |
class X { | |
get lgr() { | |
return logger; | |
} | |
method() { | |
this.lgr.info('called'); | |
} |
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 | |
'use strict'; | |
const {execSync} = require('child_process'); | |
const querystring = require('querystring'); | |
const {debug, format: f} = require('@ianwremmel/debug'); | |
const fetch = require('cross-fetch'); |
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 bash | |
echo "It Works!" |
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 bash | |
set -euo pipefail | |
BRANCHES=$(git branch -r | grep origin | grep greenkeeper) | |
for BRANCH in $BRANCHES; do | |
echo "Deleting $BRANCH" | |
git push origin --delete "${BRANCH//origin\//}" | |
echo "Done" |
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 bash | |
set -euo pipefail | |
NAMES=$(curl -n 'https://api.github.com/user/repos?affiliation=owner&per_page=100' | jq -r .[].name) | |
for NAME in $NAMES; do | |
echo $NAME | |
git clone "[email protected]:$GITHUB_USERNAME/$NAME.git" | |
done |
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
#!/bin/bash | |
# This script creates a consolidate Pull Request for all outstanding dependabot | |
# Pull Requests. | |
# | |
# Motivation: Sometimes, dependabot opens a large number of PRs that all need to | |
# be merged. Each time one merges, it causes the rest to be out of date, making | |
# it a slow, manual process of clicking upate, waiting for ci, then clicking | |
# merge for each subsequent PR. | |
# |
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 bash | |
# TODO do not push package.json until circle ci is following the repo | |
# TODO add local template for package.json | |
# TODO every curl needs better success checking | |
# TODO non-interactive mode | |
# TODO create CONTRIBUTE.md | |
# TODO create github issue template | |
# TODO create editorconfig | |
# TODO create eslintrc.yml |
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
/** | |
* Adds a copyright banner to all files, removing any copyright banner that may | |
* have already existed. | |
* | |
* Note: You'll need to run `eslint --fix` afterwards to remove the stray | |
* whitespace that this transform adds. | |
*/ | |
module.exports = function transform({source}, {jscodeshift}) { | |
const j = jscodeshift; | |
// apply trim to remove any leading whitespace that may already exist |
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
/** | |
* turns e.g. | |
* | |
* ``` | |
* const wrapHandler = require(`../lib/wrap-handler`); | |
* const {list, spawn} = require(`../util/package`); | |
* | |
* module.exports = { | |
* command: `exec cmd [args...]`, | |
* desc: `Run a command in each package directory`, |
NewerOlder