Skip to content

Instantly share code, notes, and snippets.

View sandalsoft's full-sized avatar
🏖️
Working from the beach

Eric Nelson sandalsoft

🏖️
Working from the beach
View GitHub Profile
{
"name": "__NAME__",
"description": "Description of something or other",
"version": "0.1.0",
"author": {
"name": "Eric Nelson <[email protected]>"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"private": true,
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
src
.babelrc
.eslintignore
.eslintrc
.vscode

How we incorporate next and cloudfront (2018-04-21)

Feel free to contact me at [email protected] or tweet at me @statisticsftw

This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!

It assumes some knowledge of AWS.

Goals

@sandalsoft
sandalsoft / Makefile
Last active September 24, 2018 02:37 — forked from subfuzion/Makefile.md
Makefile for Go projects
SHELL := /bin/bash
# The name of the executable (default is current directory name)
TARGET := $(shell echo $${PWD\#\#*/})
.DEFAULT_GOAL: $(TARGET)
# These will be provided to the target
VERSION := 1.0.0
BUILD := `git rev-parse HEAD`
{
"compilerOptions": {
"pretty": true,
"target": "esnext",
"module": "commonjs",
"lib": ["esnext"],
"declaration": true,
"outDir": "dist",
// "noEmit": true,
"strict": true,
FUCK YOU! USE https://gist.github.com/sandalsoft/2d28597c7f665f6822d30ef340ef7e18 INSTEAD
// https://kulshekhar.github.io/ts-jest/user/config/babelConfig
// Make jest work with optional chaining and other babel-enabled detritus
module.exports = {
roots: ['<rootDir>/src'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
}
DUMMY_ENV=dummyenv
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/dist/client.js",
"cwd": "${workspaceRoot}",
"preLaunchTask": "npm: build",