I made a list of 20 things I might want out of a monorepo tool for a Design System to use as a basis for comparing some of the options including Lerna, Northbrook, and Rush.
| #!/usr/bin/env bash -eou pipefail | |
| # https://www.backblaze.com/blog/how-many-bytes-are-in-a-megabyte-really/ | |
| size_limit=$((2 * 2**20)) # 2mbs | |
| # https://git-scm.com/docs/git-rev-list#Documentation/git-rev-list.txt---disk-usage | |
| commit_size=$(git rev-list --disk-usage HEAD^..HEAD) | |
| test "$commit_size" -lt "$size_limit" || ( | |
| echo "Commit size is too large: $commit_size > $size_limit" | |
| echo "Force commit using --no-verify" |
"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question. It's a perpetual work-in-progress.
And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)
Before you get started learning about JavaScript and Node.js, there's one very important article you need to read: Teach Yourself Programming in Ten Years.
Understand that it's going to take time to learn Node.js, just like it would take time to learn any other specialized topic - and that you're not going to learn effectively just by reading things, or following tutorials or courses. _Get out there and build things!
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft,elem.offsetTop,elem.offsetWidth,elem.offsetHeight,elem.offsetParent