Skip to content

Instantly share code, notes, and snippets.

View bnb's full-sized avatar

Tierney Cyren bnb

View GitHub Profile

bad practice

sudo npm i -g <module>

good practice

npm config set prefix 
  • each week focus on a single working group, initiative or team
    • tweet out their repo and name them
    • point out some of the things they're currently working on / open to having help on
  • have the wg/initiative/team open an issue offering to help onboard folks

commands

  • npm init -y
  • npm install react@npm:preact@8
  • npm outdated
  • npm install react@npm:preact@latest
  • npm outdated
  • cat package.json

package.json

commands

  • npm init -y
  • npm install react@npm:preact@8
  • npm outdated
  • npm install react@npm:preact@latest
  • npm outdated
  • cat package.json

package.json

defaults:

  • npm config set init-author-name ""
  • npm config set init-author-url ""
  • npm config set init-author-email ""
  • npm config set init-license "ISC"
  • npm config set init-version "1.0.0"

custom (example)

  • npm config set init-author-name "Tierney Cyren"
  • npm config set init-author-url "https://bnb.im"
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/home/bnb/.nvm/versions/node/v14.4.0/bin/node',
1 verbose cli '/home/bnb/.nvm/versions/node/v14.4.0/bin/npm',
1 verbose cli 'install'
1 verbose cli ]
2 info using npm@6.14.5
3 info using node@v14.4.0
4 verbose npm-session 3b025512bca24198
5 silly install runPreinstallTopLevelLifecycles
  • roadmapping for Node.js
  • meet GitHub Action updates
    • figure out node_modules bundling for PRs
  • normal issue maintenance in CommComm / examples
  • extract version diffing from nodev into a module
  • Build GitHub Actions
    • "new PR" label Action
    • voting via 👍 and 👎 reactions
  • prerequisites.dev
  • esminnodejs.com
@bnb
bnb / alt-arrow-for-terminal-switching.default.json
Created May 15, 2020 22:42
VS Code's default keybinds for switching between open terminals (Windows, maybe cross-platform!)
{ "key": "alt+down", "command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus" },
{ "key": "alt+right", "command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus" },
{ "key": "alt+up", "command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus" },
{ "key": "alt+left", "command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus" },

Jest and the --changedSince flag in GitHub Actions

Recently, I've been working a lot more with GitHub Actions - both writing actions and creating CI pipelines for projects.

Last week I picked up a project I started a bit ago: the nodejs/examples repository.

Note: The examples repository is still in early stages. As such, there's still a bunch of WIP work we're doing - we've intentionally not talked a bunch publicly about it yet. That said, if you're interested in helping, feel free to reach out to me on Twitter or the OpenJS Slack ❤️

The goal of this repository is to be home to a bunch of distinct and well-tested examples of real-world Node.js that go beyond "hello, world!". This means there's hopefully going to be a boatload of distinct projects in there.