Open5

Salesforce 開発環境セットアップメモ

Hiroki TanakaHiroki Tanaka

ツール / ライブラリ

Command Line Tools (CLT) for Xcode

nvm のインストールに必要なので入れておく

$ xcode-select --install 

nvm

https://github.com/nvm-sh/nvm の手順に従う。

Homebrew installation is not supported.

なので推奨の手順通りにインストールする。
zsh を使ってるので指定してあげる。

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | zsh
$ command -v nvm
nvm

ちなみに NPM も NVM とか使って Node をインストールすることを推奨している

We strongly recommend using a Node version manager like nvm to install Node.js and npm. We do not recommend using a Node installer, since the Node installation process installs npm in a directory with local permissions and can cause permissions errors when you run npm packages globally.

https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

npm と Node.js nstall Node.js

長期サポート (Active LTS) バージョンをインストールする

$ nvm install --lts
$ npm -v
6.14.12
Hiroki TanakaHiroki Tanaka

エディタ

setting.json
{
    "telemetry.enableCrashReporter": false,
    "salesforcedx-vscode-apex.java.home": "/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home",
    "editor.defaultFormatter": "esbenp.prettier-vscode",

    "salesforcedx-vscode-core.show-cli-success-msg": true,
    "window.zoomLevel": 1,
    "workbench.colorTheme": "Quiet Light",
    "editor.fontFamily": "Ricty Diminished Discord",
    "editor.renderWhitespace": "all",
    "window.openFilesInNewWindow": "on",
    "window.openFoldersInNewWindow": "on",
    "git.enableSmartCommit": true
}