Rollup | SWC | esbuild | tsup | Vite | Parcel | Webpack | |
---|---|---|---|---|---|---|---|
Monorepo support | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ✅ | ⛔️ |
Performance esbuid/swc | esbuid/swc | ✅ | ✅ | esbuid/swc | esbuid/swc | ✅ | esbuid/swc |
Type declaration (.d.ts) | rollup-plugin-dts | ⛔️ | ⛔️ | rollup-plugin-dts | rollup-plugin-dts | ✅ | ts-loader |
Declaration map (.d.ts.map) | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ✅ | ts-loader |
Treeshaking | ✅ | ✅ | ✅ | esbuild + rollup | esbuild + rollup | ✅ | ✅ |
Type-check |
Rollup | SWC | esbuild | tsup | Vite | Parcel | Webpack | |
---|---|---|---|---|---|---|---|
Monorepo support | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ✅ | ⛔️ |
Performance esbuid/swc | esbuid/swc | ✅ | ✅ | esbuid/swc | esbuid/swc | ✅ | esbuid/swc |
Type declaration (.d.ts) | rollup-plugin-dts | ⛔️ | ⛔️ | rollup-plugin-dts | rollup-plugin-dts | ✅ | ts-loader |
Declaration map (.d.ts.map) | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ⛔️ | ✅ | ts-loader |
Treeshaking | ✅ | ✅ | ✅ | esbuild + rollup | esbuild + rollup | ✅ | ✅ |
Type-check |
This gist contains code samples for the blog post "How we compress Pub/Sub messages and more, saving a load of money".
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 python | |
# -*- coding: utf-8 -*- | |
"""Cookiecutter PyPackage development tasks | |
""" | |
# To add a task, create a function with name starting with 'do_' that | |
# receives one argument (the parsed cmdline arguments object). | |
# Use a short docstring to serve as help. | |
# | |
# Example: | |
# |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
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
{ | |
"scripts": { | |
"build": "npm run build:es2015 && npm run build:esm && npm run build:cjs && npm run build:umd && npm run build:umd:min", | |
"build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015", | |
"build:esm": "tsc --module es2015 --target es5 --outDir dist/esm", | |
"build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs", | |
"build:umd": "rollup dist/esm/index.js --format umd --name YourLibrary --sourceMap --output dist/umd/yourlibrary.js", | |
"build:umd:min": "cd dist/umd && uglifyjs --compress --mangle --source-map --screw-ie8 --comments --o yourlibrary.min.js -- yourlibrary.js && gzip yourlibrary.min.js -c > yourlibrary.min.js.gz", | |
} | |
} |
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
--- | |
version: '2' | |
services: | |
zk1: | |
image: confluentinc/cp-zookeeper:3.0.1 | |
ports: | |
- "22181:22181" | |
environment: | |
ZOOKEEPER_SERVER_ID: 1 | |
ZOOKEEPER_CLIENT_PORT: 22181 |
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
/* global chrome, MediaRecorder, FileReader */ | |
chrome.runtime.onConnect.addListener(port => { | |
let recorder = null | |
port.onMessage.addListener(msg => { | |
console.log(msg); | |
switch (msg.type) { | |
case 'REC_STOP': | |
console.log('Stopping recording') | |
if (!port.recorderPlaying || !recorder) { |
NewerOlder