Skip to content

Instantly share code, notes, and snippets.

@adesurirey
adesurirey / solution.ts
Created July 29, 2020 23:42
Centralizing routes declaration and usage in a React app
const ROUTES = {
SHIPMENTS: "/shipments",
SHIPMENT: "/shipments/:id",
};
interface RouteParams {
SHIPMENT: { id: number };
}
type Routes = typeof ROUTES;
@adesurirey
adesurirey / wercker.yml
Last active June 26, 2019 03:27
Wercker setup for Rails 5.x with Webpack (tests + system tests + rubocop + eslint + stylelint)
box: ruby:2.5.0
# http://devcenter.wercker.com/docs/services/index.html
services:
- redis
- id: postgres
env:
POSTGRES_PASSWORD: ourlittlesecret
POSTGRES_USER: testuser
build: