Skip to content

Instantly share code, notes, and snippets.

@chnirt
Last active April 19, 2023 03:05
Show Gist options
  • Save chnirt/7cbfa0e8d1aaeb37ed699fdc455029a5 to your computer and use it in GitHub Desktop.
Save chnirt/7cbfa0e8d1aaeb37ed699fdc455029a5 to your computer and use it in GitHub Desktop.
Setup from scratch your new MacBook for Develop
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

nano ~/.zshrc
PROMPT='%n~$'
export NVM_DIR="${HOME}/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
export PATH=${PATH}:$HOME/Library/Android/sdk/platform-tools/
    
brew doctor
brew uninstall --ignore-dependencies node 
brew uninstall --force node
brew update

brew install nvm

nvm ls-remote
nvm install 16.14.2
nvm use 16.14.2
nvm alias default 16.14.2

brew install yarn
brew install pnpm

brew install git

brew install pkg-config cairo pango libpng jpeg giflib librsvg 
brew install cocoapods

brew install rbenv

brew tap AdoptOpenJDK/openjdk
brew install --cask adoptopenjdk8
javac -version

export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools

brew tap homebrew/cask-versions
brew install --cask zulu11

brew tap microsoft/git 
brew cask install git-credential-manager-core

vscode

compact folder

https://flaviocopes.com/fix-node-canvas-error-pre-gyp-macos/

https://dev-yakuza.posstree.com/en/react-native/install-on-mac/

https://devqa.io/brew-install-java/

https://www.youtube.com/watch?v=-xXc7qeiC8I

#!/usr/bin/env node
import inquirer from 'inquirer'
import { execSync } from 'child_process'
console.log('Hi, welcome to Node Build App by Chnirt')
const questions = [
{
type: 'list',
name: 'developmentTarget',
message: 'What develop target do you need?',
choices: ['Development', 'Staging', 'Production'],
},
{
type: 'password',
name: 'encryptedKey',
message: 'What\'s your encrypted key?',
},
{
type: 'list',
name: 'buildType',
message: 'What build type do you need?',
choices: ['installRelease', 'assembleRelease', 'bundleRelease', 'installDebug', 'assembleDebug'],
},
]
inquirer.prompt(questions).then((answers) => {
console.log('Creating assets')
console.log('Done')
console.log('Happy cheating')
});
// brew ls --versions $lib || brew install $lib
{
"dependencies": {
"inquirer": "^9.0.0"
},
"name": "chnirt-setup-your-new-macbook",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "module",
"description": "",
"bin": "./index.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment