asdf
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 { globby } from 'globby' | |
import pMap from 'p-map' | |
import execa from 'execa' | |
// typical high end is about 350mb (based on watching "xo" processes inside Activity Monitor) | |
// ~~lets go with 400mb to be safe~~ | |
// Since we are grouping files together - we should have less oveerhead | |
// (node, yarn, xo wrapper, eslint wrapper, 1 ts process?) - lets go with just 350. | |
const TYPICAL_XO_MEMORY_USAGE = 0.35 |
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
/** | |
* Calls `callback`, catches any errors and returns `returnValue | Error` | |
* | |
* TODO: create npm package | |
* | |
* See: https://dev.to/devinrhode2/comment/1fcga | |
*/ | |
export const safeCall = < | |
TCallback extends ( | |
...args: unknown[] |
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
{"lastUpload":"2021-11-05T18:07:14.610Z","extensionVersion":"v3.4.3"} |
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
in bitbucket, turn on notifications for all pushes... | |
or somehow be notified of pushes to a branch, or something | |
basically, pushed commits could imply "this is ready for review" | |
and then others can review them | |
I think it might be easier to review commits one by one spaced out over time | |
assumes you have a worktree for each co-worker, each co-worker is focused on one branch at a time | |
whole thing could be in a dropbox, everything syncs, no need to ever git push/pull.. |
A squash merge will merge a branch, but leave behind a commit log of the squashed commits. So, inside of a squash merge commit, you have a message like:
Merge branch foo into bar
commit 1861807 (HEAD -> feature-1234)
Author: D.R <D.R@company.com>
Date: Thu 09:05
refactor(registraton/noop): no-op tweak (move hasWelcomeMessage)
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
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby | |
# chmod +x install.rb | |
# ./install.rb | |
YOUR_HOME = ENV['HOME'] | |
HOMEBREW_PREFIX = "#{YOUR_HOME}/usr/local" | |
system "mkdir -p #{HOMEBREW_PREFIX}" | |
HOMEBREW_CACHE = "#{YOUR_HOME}/Library/Caches/Homebrew" | |
HOMEBREW_REPO = 'https://github.com/Homebrew/brew' |
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
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby | |
# chmod +x install.rb | |
# ./install.rb | |
YOUR_HOME = ENV['HOME'] | |
HOMEBREW_PREFIX = "#{YOUR_HOME}/usr/local" | |
system "mkdir -p #{HOMEBREW_PREFIX}" | |
HOMEBREW_CACHE = "#{YOUR_HOME}/Library/Caches/Homebrew" | |
HOMEBREW_REPO = 'https://github.com/Homebrew/brew' |
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
# from here: | |
# https://medium.com/@pablorsk/be-a-git-ninja-the-gitattributes-file-e58c07c9e915 | |
# package-lock.json | |
# yarn.lock | |
build/** -diff | |
# from here: https://github.com/alexkaratarakis/gitattributes/blob/master/Web.gitattributes | |
# with a few extra bits from here: https://rehansaeed.com/gitattributes-best-practices/ | |
## GITATTRIBUTES FOR WEB PROJECTS |