1. Install create-element-class
npm install create-element-class --savenpm install create-element-class --saveDisclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
| //assumes you have the following environment variables setup for AWS session creation | |
| // AWS_SDK_LOAD_CONFIG=1 | |
| // AWS_ACCESS_KEY_ID=XXXXXXXXXX | |
| // AWS_SECRET_ACCESS_KEY=XXXXXXXX | |
| // AWS_REGION=us-west-2( or AWS_DEFAULT_REGION=us-east-1 if you are having trouble) | |
| package main | |
| import ( | |
| "fmt" |
| #!/usr/bin/env node | |
| const path = require('path') | |
| const exec = require('child_process').exec | |
| const cmd = `ag "import .* from '" -G "${process.argv[2] || 'lib/'}" --nogroup | sed -e "s/:.*from//g" -e "s/'//g" | sed "s/^\\(.*\\.js\\) \\(.*\\)$/\\1 \\2/"` | |
| exec(cmd, (error, stdout, stderr) => { | |
| if (error) { | |
| console.error('Error ocurred:', error) | |
| } else { |