Skip to content

Instantly share code, notes, and snippets.

@bshyong
bshyong / forge_compile_with_source.ts
Created July 21, 2024 03:29 — forked from ScreamingHawk/forge_compile_with_source.ts
Forge compile with source content
import { exec as execNonPromise } from 'child_process'
import { copyFile, mkdir, readFile, rm, writeFile } from 'fs/promises'
import { join } from 'path'
import util from 'util'
import {
BUILD_DIR,
DEPLOYABLE_CONTRACT_NAMES,
} from './constants'
const exec = util.promisify(execNonPromise)
@bshyong
bshyong / broadcast-channel.md
Created November 27, 2023 01:11 — forked from davestewart/broadcast-channel.md
Example of using BroadcastChannel to communicate with pages in the same domain

screenshot