Ruby rails

提供: wikipokpok
2020年6月13日 (土) 18:08時点におけるShudo (トーク | 投稿記録)による版
移動先: 案内検索

gemのインストール先 例えばbootstrap 環境によって違う

~/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/bootstrap-sass-3.4.1/assets/stylesheets/bootstrap

Node.jsのインストール

brew install nodebrew
nodebrew -v
   nodebrew 1.0.1
   Example:
   # install
   nodebrew install v8.9.4
   # use a specific version number
   nodebrew use v8.9.4
mkdir -p ~/.nodebrew/src
nodebrew install stable
nodebrew ls
   v14.4.0
   current: none
nodebrew use 14.4.0
   use v14.4.0
nodebrew ls        
   v14.4.0
   current: v14.4.0
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.zprofile
source ~/.zprofile
node -v                                                            
   v14.4.0

ruby 補完

Plug 'neoclide/coc.nvim', {'branch': 'release'}
:PlugInstall
:CocInstall coc-solargraph
   Installed extension coc-solargraph@1.1.6 at /Users/jq/.config/coc/extensions/node_modules/coc-solargraph
touch ~/.vim/coc-settings.json
{
  "languageserver": {
   "sorbet": {
     "command": "srb",
     "args": ["tc", "--typed", "true", "--enable-all-experimental-lsp-features", "--lsp", "--disable-watchman", "--dir", "."],
     "filetypes": ["ruby"],
     "rootPatterns": ["sorbet/config"],
     "initializationOptions": {},
     "settings": {}
   }
 }
}
Solargraph gem not found. Run `gem install solargraph` or update your Gemfile., Install Now? (y/n)
gem install solargraph

tepnote

rails _6.0.3_ new tepnote -d postgresql